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

Question: What's the largest number of Gold medals won when bronze won are 2 and total won are over 7 by Hungary?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "bronze"=2 AND "nation"='hungary' AND "total">7;

Question: What's the average amount of Gold medals won when there were more than 1 silver medal won and less than 2 bronze medals won.
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "silver">1 AND "bronze"<2;