What is the lowest medal total with less than 3 gold medals?
CREATE TABLE table_name_89 (total INTEGER, gold INTEGER)
SELECT MIN(total) FROM table_name_89 WHERE gold < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (total INTEGER, gold INTEGER) Question: What is the lowest medal total with less than 3 gold medals? [/INST] SELECT MIN(total) FROM table_name_89 WHERE gold < 3 </s>