What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals?
CREATE TABLE table_name_7 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MIN(gold) FROM table_name_7 WHERE rank = "total" AND bronze > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (gold INTEGER, rank VARCHAR, bronze VARCHAR) Question: What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals? [/INST] SELECT MIN(gold) FROM table_name_7 WHERE rank = "total" AND bronze > 4 </s>