CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);

Question: What is the rank for the man from China with notes of QS?
SQL: SELECT MAX("rank") FROM "heat_2" WHERE "notes"='qs' AND "country"='china';

Question: What is the rank for the competitor from Bulgaria?
SQL: SELECT MIN("rank") FROM "heat_2" WHERE "country"='bulgaria';

Question: Which athlete is ranked below 5 and is from China?
SQL: SELECT "athletes" FROM "heat_2" WHERE "rank"<5 AND "country"='china';