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

Question: What is the average number of laps for the driver Piero Taruffi?
SQL: SELECT AVG("laps") FROM "race" WHERE "driver"='piero taruffi';

Question: Which driver has 12 laps and a grid of less than 10?
SQL: SELECT "driver" FROM "race" WHERE "laps"=12 AND "grid"<10;