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

Question: What is the average total of Italy and has a bronze larger than 1?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "nation"='italy' AND "bronze">1;

Question: What amount of Gold does Russia have and have a rank larger than 1?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "nation"='russia' AND "rank">1;

Question: What is the sum of the ranks with a total of 1 and silver less than 0.
SQL: SELECT SUM("rank") FROM "medal_table" WHERE "total"=1 AND "silver"<0;