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

Question: What is the time/retired for eddie irvine with a grid of greater than 3?
SQL: SELECT "time_retired" FROM "classification" WHERE "grid">3 AND "driver"='eddie irvine';

Question: How many laps had a grid of greater than 17 and retired due to collision?
SQL: SELECT SUM("laps") FROM "classification" WHERE "grid">17 AND "time_retired"='collision';