What is the average amount of gold medals for a country with more than 12 total medals?
CREATE TABLE table_name_45 (gold INTEGER, total INTEGER)
SELECT AVG(gold) FROM table_name_45 WHERE total > 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (gold INTEGER, total INTEGER) Question: What is the average amount of gold medals for a country with more than 12 total medals? [/INST] SELECT AVG(gold) FROM table_name_45 WHERE total > 12 </s>