Instruct: What's the smallest amount of earnings when there are more than 18 wins and the rank is 2?
Output: SELECT MIN Earnings ( $ ) FROM table WHERE Wins > 18 AND Rank = 2