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

Question: How many golds had a silver of more than 1, rank more than 1, total of more than 4 when the bronze was also more than 4?
SQL: SELECT SUM("gold") FROM "medals_table" WHERE "silver">1 AND "rank">1 AND "total">4 AND "bronze">4;

Question: What is the total of rank when gold is 2 and total is more than 4?
SQL: SELECT SUM("rank") FROM "medals_table" WHERE "gold"=2 AND "total">4;

Question: What is the total number of bronze when gold is less than 1 and silver is more than 1?
SQL: SELECT SUM("bronze") FROM "medals_table" WHERE "gold"<1 AND "silver">1;

Question: What is the total of rank when silver is more than 1, gold is 2, and total is more than 4?
SQL: SELECT SUM("rank") FROM "medals_table" WHERE "silver">1 AND "gold"=2 AND "total">4;