Who scored the lowest with 8 gold medals and less than 4 silver medals?
CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_40 WHERE gold = 8 AND silver < 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, silver VARCHAR) Question: Who scored the lowest with 8 gold medals and less than 4 silver medals? [/INST] SELECT MIN(total) FROM table_name_40 WHERE gold = 8 AND silver < 4 </s>