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

Question: Who has a grid smaller than 24, less than 61 laps, and a ferrari constructor?
SQL: SELECT "driver" FROM "race" WHERE "grid"<24 AND "laps"<61 AND "constructor"='ferrari';

Question: Who is the driver with 58 laps and a grid smaller than 21?
SQL: SELECT "driver" FROM "race" WHERE "laps"=58 AND "grid"<21;