When rank is 7 and silver is less than 0, what is the total gold?
CREATE TABLE table_name_17 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT SUM(gold) FROM table_name_17 WHERE rank = "7" AND silver < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (gold INTEGER, rank VARCHAR, silver VARCHAR) Question: When rank is 7 and silver is less than 0, what is the total gold? [/INST] SELECT SUM(gold) FROM table_name_17 WHERE rank = "7" AND silver < 0 </s>