CREATE TABLE "heat_6" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);

Question: What is the highest rank for the team of egypt?
SQL: SELECT MAX("rank") FROM "heat_6" WHERE "country"='egypt';

Question: Who was the athlete from egypt with q in the notes?
SQL: SELECT "athlete" FROM "heat_6" WHERE "notes"='q' AND "country"='egypt';