CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);

Question: Which Laps have a Time of +23.002, and a Grid smaller than 11?
SQL: SELECT AVG("laps") FROM "125cc_classification" WHERE "time"='+23.002' AND "grid"<11;

Question: Which Laps have a Manufacturer of aprilia, and a Rider of sergio gadea?
SQL: SELECT "laps" FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "rider"='sergio gadea';

Question: Which Grid that has a Rider of mike di meglio, and Laps larger than 23?
SQL: SELECT AVG("grid") FROM "125cc_classification" WHERE "rider"='mike di meglio' AND "laps">23;

Question: Which Manufacturer has a Grid smaller than 9, and a Time of +22.517?
SQL: SELECT "manufacturer" FROM "125cc_classification" WHERE "grid"<9 AND "time"='+22.517';