What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?
CREATE TABLE table_name_19 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)
SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = "brazil" AND bronze > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR) Question: What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4? [/INST] SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = "brazil" AND bronze > 1 </s>