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

Question: What is the average laps for ralph firman with a grid of over 19?
SQL: SELECT AVG("laps") FROM "race" WHERE "driver"='ralph firman' AND "grid">19;

Question: What grid features 6 laps?
SQL: SELECT "grid" FROM "race" WHERE "laps"=6;