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

How many Gold does the Nation in Rank 12 with less than 2 Total medals have?
SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2
SELECT MAX("gold") FROM "table_name_45" WHERE "12" = "rank" AND "total" < 2