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