Schema: CREATE TABLE table_name_45 (gold INTEGER, rank VARCHAR, total VARCHAR)
Question: How many Gold does the Nation in Rank 12 with less than 2 Total medals have?
SQL: SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2