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

Question: Rank of 5, and a Silver larger than 0 had what sum of total?
SQL: SELECT SUM("total") FROM "medal_table" WHERE "rank"='5' AND "silver">0;

Question: Gold smaller than 2, and a Rank of 4, and a Nation of hungary (hun), and a Bronze smaller than 1 had what total number of silver?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "gold"<2 AND "rank"='4' AND "nation"='hungary (hun)' AND "bronze"<1;

Question: Total smaller than 7, and a Bronze larger than 1 is what amount of average silver?
SQL: SELECT AVG("silver") FROM "medal_table" WHERE "total"<7 AND "bronze">1;

Question: Bronze smaller than 5, and a Silver larger than 0 is which nation?
SQL: SELECT "nation" FROM "medal_table" WHERE "bronze"<5 AND "silver">0;