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

Question: How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3?
SQL: SELECT SUM("gold") FROM "medals_table" WHERE "bronze"=1 AND "rank"<6 AND "total"<3;

Question: How many France bronze have a gold of more than 1 and a rank of 0?
SQL: SELECT SUM("bronze") FROM "medals_table" WHERE "gold">1 AND "nation"='france' AND "rank"<1;

Question: How many gold have a silver of 1 and a bronze of 0?
SQL: SELECT SUM("gold") FROM "medals_table" WHERE "silver"=1 AND "bronze"<1;