What's the smallest total with a bronze count of 5 and a gold count less than 8?
CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_89 WHERE bronze = 5 AND gold < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, gold VARCHAR) Question: What's the smallest total with a bronze count of 5 and a gold count less than 8? [/INST] SELECT MIN(total) FROM table_name_89 WHERE bronze = 5 AND gold < 8 </s>