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

Question: What nation has 0 as the silver, 1 as the bronze, with 18 as the rank?
SQL: SELECT "nation" FROM "medals_table" WHERE "silver"=0 AND "bronze"=1 AND "rank"='18';

Question: How many golds have 3 as the rank, with a total greater than 7?
SQL: SELECT COUNT("gold") FROM "medals_table" WHERE "rank"='3' AND "total">7;

Question: What average silver has belarus as the nation, with a total less than 1?
SQL: SELECT AVG("silver") FROM "medals_table" WHERE "nation"='belarus' AND "total"<1;

Question: What average total has 0 as the gold, with 6 as the rank?
SQL: SELECT AVG("total") FROM "medals_table" WHERE "gold"=0 AND "rank"='6';