CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);

Question: What are the total lanes that have a rank larger than 22?
SQL: SELECT SUM("lane") FROM "heats" WHERE "rank">22;

Question: Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?
SQL: SELECT "name" FROM "heats" WHERE "rank">2 AND "lane"=1 AND "nationality"='hong kong';

Question: What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?
SQL: SELECT SUM("rank") FROM "heats" WHERE "nationality"='japan' AND "lane"<7 AND "heat"<3;