what is the average gold when rank is total and silver is more than 20?
CREATE TABLE table_name_32 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT AVG(gold) FROM table_name_32 WHERE rank = "total" AND silver > 20
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (gold INTEGER, rank VARCHAR, silver VARCHAR) Question: what is the average gold when rank is total and silver is more than 20? [/INST] SELECT AVG(gold) FROM table_name_32 WHERE rank = "total" AND silver > 20 </s>