What is the total medals for nation with more than 0 silvers and more than 0 golds?
CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_97 WHERE silver > 0 AND gold > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, gold VARCHAR) Question: What is the total medals for nation with more than 0 silvers and more than 0 golds? [/INST] SELECT AVG(total) FROM table_name_97 WHERE silver > 0 AND gold > 0 </s>