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

Question: What driver has a grid of under 10, and under 70 laps?
SQL: SELECT "driver" FROM "race" WHERE "grid"<10 AND "laps"<70;

Question: How many total laps for a grid of 3?
SQL: SELECT COUNT("laps") FROM "race" WHERE "grid"=3;

Question: What is the average grid for giorgio pantano?
SQL: SELECT AVG("grid") FROM "race" WHERE "driver"='giorgio pantano';