What is the average total number of medals for a nation with 2 silver medals and a rank larger than 7?
CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, rank VARCHAR)
SELECT AVG(total) FROM table_name_97 WHERE silver = 2 AND rank > 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, rank VARCHAR) Question: What is the average total number of medals for a nation with 2 silver medals and a rank larger than 7? [/INST] SELECT AVG(total) FROM table_name_97 WHERE silver = 2 AND rank > 7 </s>