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

Question: Which driver had 3 Laps and grids less than 15?
SQL: SELECT "driver" FROM "classification" WHERE "laps"=3 AND "grid"<15;

Question: I want the time/retired with grid less than 22 and Laps less than 33 for john surtees
SQL: SELECT "time_retired" FROM "classification" WHERE "grid"<22 AND "laps"<33 AND "driver"='john surtees';