human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Player, Country, Earnings( $ ), Wins
###Question: What is the lowest level of Earnings($) to have a Wins value of 22 and a Rank lower than 2?
gpt
SELECT MIN Earnings( $ ) FROM table WHERE Wins = 22 AND Rank < 2