CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);

Question: Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams?
SQL: SELECT "manufacturer" FROM "moto_gp_classification" WHERE "laps"<28 AND "grid"<9 AND "rider"='jeremy mcwilliams';

Question: What is the grid average with a +1 lap time and more than 27 laps?
SQL: SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time_retired"='+1 lap' AND "laps">27;

Question: Which lap has more than 17 grids with tetsuya harada?
SQL: SELECT "laps" FROM "moto_gp_classification" WHERE "grid">17 AND "rider"='tetsuya harada';