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

Question: How many gold medals for germany (GER) having a rank less than 15?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "nation"='germany (ger)' AND "rank"<15;

Question: How many silver medals when the bronze is more than 2 and having a rank more than 5?
SQL: SELECT MAX("silver") FROM "medal_table" WHERE "rank">5 AND "bronze">2;

Question: What's the average number of silver medals when bronze is less than 0?
SQL: SELECT AVG("silver") FROM "medal_table" WHERE "bronze"<0;

Question: What's the average number of silver medals for germany (GER) having more than 3 bronze?
SQL: SELECT AVG("silver") FROM "medal_table" WHERE "nation"='germany (ger)' AND "bronze">3;