question: What's the smallest amount of earnings when there are more than 18 wins and the rank is 2?
answer: SELECT MIN(earnings___) AS $__ FROM table_name_86 WHERE wins > 18 AND rank = 2
context: CREATE TABLE table_name_86 (earnings___ INTEGER, wins VARCHAR, rank VARCHAR)