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

Question: How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7?
SQL: SELECT COUNT("bronze") FROM "medal_table" WHERE "nation"='jamaica (jam)' AND "total"<7;

Question: What is the average silver with more than 0 gold, a Rank of 1, and a Total smaller than 30?
SQL: SELECT AVG("silver") FROM "medal_table" WHERE "gold">0 AND "rank"='1' AND "total"<30;

Question: What is the total gold with a total less than 1?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "total"<1;