CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);

Question: How many grids have a Time/Retired of gearbox, and Laps smaller than 3?
SQL: SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='gearbox' AND "laps"<3;

Question: What is masten gregory's average lap?
SQL: SELECT AVG("laps") FROM "classification" WHERE "driver"='masten gregory';

Question: Which Time/Retired has a Grid of 2?
SQL: SELECT "time_retired" FROM "classification" WHERE "grid"=2;