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

Question: What is the Heat of the 34 Rank swimmer with a Time of 49.49 or less?
SQL: SELECT AVG("heat") FROM "heats" WHERE "rank"=34 AND "time"<49.49;

Question: What is Dominik Meichtry's Time in Heat 7 or lower?
SQL: SELECT COUNT("time") FROM "heats" WHERE "name"='dominik meichtry' AND "heat"<7;