What is the average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold?
CREATE TABLE table_name_15 (rank INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT AVG(rank) FROM table_name_15 WHERE bronze < 13 AND total = 11 AND gold > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (rank INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR) Question: What is the average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold? [/INST] SELECT AVG(rank) FROM table_name_15 WHERE bronze < 13 AND total = 11 AND gold > 4 </s>