Table: senior_pga_tour_stats
Columns: rank
player
country
earnings
wins

Question: When the united states has 22 wins and a rank greater than 2, what is the total earnings?
SQL: SELECT SUM("earnings") FROM senior_pga_tour_stats WHERE "country" = 'united states' AND "wins" = 22 AND "rank" > 2

Question: What is the smallest rank for new zealand?
SQL: SELECT MIN("rank") FROM senior_pga_tour_stats WHERE "country" = 'new zealand'