What is the highest gold a team with less than 3 silver and more than 5 bronze medals has?
CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT MAX("gold") FROM "medal_table" WHERE "silver"<3 AND "bronze">5;