What was the average rank for the team that had more than 5 medals and more than 6 gold medals?
CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("rank") FROM "medal_table" WHERE "total">5 AND "gold">6;