Table: race_stats_10
Columns: year
starts
wins
top_fives
top_tens
poles
rank

Question: What is the sum of wins for casey mears when the player ranked 22nd and was in teh top fives 3 times?
SQL: SELECT SUM("wins") FROM race_stats_10 WHERE "rank" = '22nd' AND "top_fives" = 3

Question: What is the total number of top fives in 2010 when casey mears had more than 0 wins?
SQL: SELECT COUNT("top_fives") FROM race_stats_10 WHERE "year" = '2010' AND "wins" > 0

Question: What is the total number of wins when casey mears ranked 36th and had more than 0 top fives?
SQL: SELECT COUNT("wins") FROM race_stats_10 WHERE "rank" = '36th' AND "top_fives" > 0

Question: What is the total number of top fives when casey mears had more than 1 poles and top tens less than 9?
SQL: SELECT SUM("top_fives") FROM race_stats_10 WHERE "poles" > 1 AND "top_tens" < 9