How many gold medals does the country ranked higher than 2 with more than 8 bronze have?
CREATE TABLE table_name_56 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_56 WHERE rank < 2 AND bronze > 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (gold INTEGER, rank VARCHAR, bronze VARCHAR) Question: How many gold medals does the country ranked higher than 2 with more than 8 bronze have? [/INST] SELECT SUM(gold) FROM table_name_56 WHERE rank < 2 AND bronze > 8 </s>