How many Gold does the Nation in Rank 12 with less than 2 Total medals have?
CREATE TABLE table_name_45 (gold INTEGER, rank VARCHAR, total VARCHAR)
SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2
<s>[INST] Write mssql query to answer the following question given the database schema. 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? [/INST] SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2 </s>