I want the average bronze for total of 19 and silver of 8 with rank of 31
CREATE TABLE table_name_12 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_12 WHERE total = 19 AND silver = 8 AND rank = "31"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR) Question: I want the average bronze for total of 19 and silver of 8 with rank of 31 [/INST] SELECT AVG(bronze) FROM table_name_12 WHERE total = 19 AND silver = 8 AND rank = "31" </s>