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