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

Question: What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?
SQL: SELECT MIN("grid") FROM "classification" WHERE "time_retired"='engine' AND "qual"<138.75;

Question: What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98?
SQL: SELECT "laps" FROM "classification" WHERE "rank">13 AND "time_retired"='accident' AND "qual"<136.98;