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

Question: What was the rank of flori lang when his time was less than 22.27
SQL: SELECT SUM("rank") FROM "heats" WHERE "name"='flori lang' AND "time"<22.27;

Question: What lane had a heat after 12, a rank of 38 and a time larger than 22.67?
SQL: SELECT AVG("lane") FROM "heats" WHERE "heat">12 AND "rank"=38 AND "time">22.67;