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

Question: What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold?
SQL: SELECT MIN("rank") FROM "ladies" WHERE "bronze">0 AND "silver"=8 AND "total"=19 AND "gold"<9;

Question: What is the sum for gold when there is more than 17 silver and more than 24 bronze?
SQL: SELECT SUM("gold") FROM "ladies" WHERE "silver">17 AND "bronze">24;

Question: What is the sum of Bronze when the rank is 7, and the total is more than 22?
SQL: SELECT SUM("bronze") FROM "ladies" WHERE "rank"=7 AND "total">22;

Question: What is the sum of rank when silver is 1, and gold is less than 7, and bronze is 2?
SQL: SELECT SUM("rank") FROM "ladies" WHERE "silver"=1 AND "gold"<7 AND "bronze"=2;