What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60?
CREATE TABLE table_name_25 (gold INTEGER, total VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MAX(gold) FROM table_name_25 WHERE bronze < 49 AND silver = 22 AND total < 60
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (gold INTEGER, total VARCHAR, bronze VARCHAR, silver VARCHAR) Question: What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60? [/INST] SELECT MAX(gold) FROM table_name_25 WHERE bronze < 49 AND silver = 22 AND total < 60 </s>