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

Question: Name the highest grid for Laps more than 137 and rank is less than 8
SQL: SELECT MAX("grid") FROM "classification" WHERE "laps">137 AND "rank"<8;

Question: I want the total number of rank for Grid less than 20 and dick rathmann and Qual more than 130.92
SQL: SELECT COUNT("rank") FROM "classification" WHERE "grid"<20 AND "driver"='dick rathmann' AND "qual">130.92;