What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have?
CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT MAX("gold") FROM "medal_table" WHERE "rank"<6 AND "silver"=1 AND "total">4;