CREATE TABLE table_name_64 (total INT, rank VARCHAR)

What is the maximum total medals when the rank is 8?
SELECT MAX(total) FROM table_name_64 WHERE rank = "8"
SELECT MAX("total") FROM "table_name_64" WHERE "8" = "rank"