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

Question: Which Silver has a Total of 11, and a Gold smaller than 8?
SQL: SELECT MIN("silver") FROM "medals_table" WHERE "total"=11 AND "gold"<8;

Question: Which Silver has a Total of 1, and a Rank of 12?
SQL: SELECT MIN("silver") FROM "medals_table" WHERE "total"=1 AND "rank"='12';