What is the lowest level of Earnings($) to have a Wins value of 22 and a Rank lower than 2?
CREATE TABLE table_name_78 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR)
SELECT MIN(earnings__) AS $__ FROM table_name_78 WHERE wins = 22 AND rank < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR) Question: What is the lowest level of Earnings($) to have a Wins value of 22 and a Rank lower than 2? [/INST] SELECT MIN(earnings__) AS $__ FROM table_name_78 WHERE wins = 22 AND rank < 2 </s>