CREATE TABLE table_name_31 (total INT, rank VARCHAR, gold VARCHAR)

What is the largest total when the rank is 6 and there's less than 1 gold?
SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND gold < 1
SELECT MAX("total") FROM "table_name_31" WHERE "6" = "rank" AND "gold" < 1