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

Question: What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?
SQL: SELECT MIN("rank") FROM "medal_count" WHERE "total"=8 AND "nation"='hungary' AND "silver">2;

Question: What is the highest rank of Great Britain who has less than 16 bronze?
SQL: SELECT MAX("rank") FROM "medal_count" WHERE "nation"='great britain' AND "bronze"<16;