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

Question: How many golds for west germany with over 8 total?
SQL: SELECT MIN("gold") FROM "medal_table" WHERE "nation"='west germany' AND "total">8;

Question: How many golds for nations with under 1 bronze?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "bronze"<1;

Question: How many total medals for the nation ranked 7 with 1 silver and under 4 bronzes?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "bronze"<4 AND "silver"=1 AND "rank"='7';