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

Question: Whats teo fabi average lap time while having less than 9 grids?
SQL: SELECT AVG("laps") FROM "race" WHERE "driver"='teo fabi' AND "grid"<9;

Question: Which driver drove in grid 19?
SQL: SELECT "driver" FROM "race" WHERE "grid"=19;