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

Question: What is the total gold from New zealand and a rank less than 14?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "nation"='new zealand' AND "rank"<14;

Question: What is the average of the silver that has less than 0 gold
SQL: SELECT AVG("silver") FROM "medal_table" WHERE "gold"<0;

Question: Which nation has 0 gold, 0 silver and 2 total?
SQL: SELECT "nation" FROM "medal_table" WHERE "gold"=0 AND "silver"=0 AND "total"=2;

Question: What is the total gold in Norway with more than 1 bronze?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "nation"='norway' AND "bronze">1;

Question: What is the total bronze from Puerto Rico with a total of less than 1?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='puerto rico' AND "total"<1;