What is the average Total, when Silver is greater than 4, and when Gold is greater than 16?
CREATE TABLE table_name_2 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_2 WHERE silver > 4 AND gold > 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (total INTEGER, silver VARCHAR, gold VARCHAR) Question: What is the average Total, when Silver is greater than 4, and when Gold is greater than 16? [/INST] SELECT AVG(total) FROM table_name_2 WHERE silver > 4 AND gold > 16 </s>