What is the average silver with more than 0 gold, a Rank of 1, and a Total smaller than 30?
CREATE TABLE table_name_82 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_82 WHERE gold > 0 AND rank = "1" AND total < 30
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR) Question: What is the average silver with more than 0 gold, a Rank of 1, and a Total smaller than 30? [/INST] SELECT AVG(silver) FROM table_name_82 WHERE gold > 0 AND rank = "1" AND total < 30 </s>