What is the highest number of gold medals for the team ranked 7 with less than 3 bronze?
CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT MAX("gold") FROM "medal_table" WHERE "rank"='7' AND "bronze"<3;