CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);

Question: What is the highest rank that has 5 silvers, less than 5 golds, and less than 7 total medals?
SQL: SELECT MAX("rank") FROM "medal_count" WHERE "silver"=5 AND "gold"<5 AND "total"<7;

Question: What is the least amount of silvers for a team with less than 4 golds and less than 5 total medals?
SQL: SELECT MIN("silver") FROM "medal_count" WHERE "total"<5 AND "gold"<4;