What is the sum of the gold medals for the nation of Great britain who had more than 8 silvers and a total of less than 61 medals?
CREATE TABLE table_name_18 (gold INTEGER, total VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT SUM(gold) FROM table_name_18 WHERE silver > 8 AND nation = "great britain" AND total < 61
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (gold INTEGER, total VARCHAR, silver VARCHAR, nation VARCHAR) Question: What is the sum of the gold medals for the nation of Great britain who had more than 8 silvers and a total of less than 61 medals? [/INST] SELECT SUM(gold) FROM table_name_18 WHERE silver > 8 AND nation = "great britain" AND total < 61 </s>