Which nation has more than 6 Silver medals and fewer than 8 Gold medals?
CREATE TABLE table_name_59 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_59 WHERE silver > 6 AND gold < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (total INTEGER, silver VARCHAR, gold VARCHAR) Question: Which nation has more than 6 Silver medals and fewer than 8 Gold medals? [/INST] SELECT AVG(total) FROM table_name_59 WHERE silver > 6 AND gold < 8 </s>