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

Question: What was Christian Kubusch's lane when the heat was more than 2 and time was DNS?
SQL: SELECT SUM("lane") FROM "heats" WHERE "time"='dns' AND "name"='christian kubusch' AND "heat">2;

Question: What's Bulgaria's lane?
SQL: SELECT AVG("lane") FROM "heats" WHERE "nationality"='bulgaria';

Question: What's Great Britain's lane with a heat less than 3?
SQL: SELECT AVG("lane") FROM "heats" WHERE "nationality"='great britain' AND "heat"<3;

Question: What's Spain's lane with a heat less than 4?
SQL: SELECT AVG("lane") FROM "heats" WHERE "nationality"='spain' AND "heat"<4;

Question: What's the heat in the lane less than 3 with a time of 14:48.39?
SQL: SELECT AVG("heat") FROM "heats" WHERE "lane"<3 AND "time"='14:48.39';

Question: What's China's heat for Zhang Lin in a lane after 6?
SQL: SELECT SUM("heat") FROM "heats" WHERE "nationality"='china' AND "name"='zhang lin' AND "lane">6;