Which player has the lowest earnings and has at least 4 wins and is ranked higher than 4?
CREATE TABLE table_name_50 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR)
SELECT MIN(earnings__) AS $__ FROM table_name_50 WHERE wins = 4 AND rank > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR) Question: Which player has the lowest earnings and has at least 4 wins and is ranked higher than 4? [/INST] SELECT MIN(earnings__) AS $__ FROM table_name_50 WHERE wins = 4 AND rank > 4 </s>