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 "2-18145978-2" WHERE "Laps" < 24.0 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 "2-18145978-2" WHERE "Bike" = 'yamaha yzf-r1' AND "Rider" = 'david checa' AND "Grid" > 18.0;

Question: What is the sum of Grid, when Time is "+16.687"?
SQL: SELECT SUM("Grid") FROM "2-18145978-2" WHERE "Time" = '+16.687';

Question: What is the total number of Grid, when Laps is greater than 24?
SQL: SELECT COUNT("Grid") FROM "2-18145978-2" WHERE "Laps" > 24.0;