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

Question: Name the least lane for kasey giteau and rank less than 18
SQL: SELECT MIN("lane") FROM "heats" WHERE "name"='kasey giteau' AND "rank"<18;

Question: Name the total number of lane for brooke bennett and rank less than 1
SQL: SELECT COUNT("lane") FROM "heats" WHERE "name"='brooke bennett' AND "rank"<1;

Question: Name the average rank with larger than 3 and heat more than 5
SQL: SELECT AVG("rank") FROM "heats" WHERE "lane">3 AND "heat">5;