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

Question: What shows for gold when bronze is 1?
SQL: SELECT "gold" FROM "medals" WHERE "bronze"=1;

Question: What is the gold number when the total is less than 8, silver less than 1 and the rank is more than 7?
SQL: SELECT COUNT("gold") FROM "medals" WHERE "total"<8 AND "silver"<1 AND "rank">7;

Question: What is the average Total for the Rank of 6, when Silver is smaller than 0?
SQL: SELECT AVG("total") FROM "medals" WHERE "rank"=6 AND "silver"<0;