Table: misano_sb_race_2
Columns: rider
bike
laps
time
grid

Question: What is the average Grid, when Laps is less than 24, when Bike is "Honda CBR1000RR", and when Rider is "Jason Pridmore"?
SQL: SELECT AVG("grid") FROM misano_sb_race_2 WHERE "laps" < 24 AND "bike" = 'honda cbr1000rr' AND "rider" = 'jason pridmore'

Question: What is the highest Laps, when Bike is "Yamaha YZF-R1", when Rider is "David Checa", and when Grid is greater than 18?
SQL: SELECT MAX("laps") FROM misano_sb_race_2 WHERE "bike" = 'yamaha yzf-r1' AND "rider" = 'david checa' AND "grid" > 18

Question: What is the sum of Grid, when Time is "+16.687"?
SQL: SELECT SUM("grid") FROM misano_sb_race_2 WHERE "time" = '+16.687'

Question: What is the total number of Grid, when Laps is greater than 24?
SQL: SELECT COUNT("grid") FROM misano_sb_race_2 WHERE "laps" > 24