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

Question: what is the most laps with the time/retired is differential and the grid is more than 2?
SQL: SELECT MAX("laps") FROM "classification" WHERE "time_retired"='differential' AND "grid">2;

Question: what is the least laps when the grid is 5?
SQL: SELECT MIN("laps") FROM "classification" WHERE "grid"=5;