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

Question: What is the average bronze medals of Uganda's swimmers when they earned over 2 medals?
SQL: SELECT AVG("bronze") FROM "medals_table" WHERE "nation"='uganda' AND "total">2;

Question: What is the highest number of silver medals that Ireland earned when they scored less than 3 bronze medals and earned 1 medal?
SQL: SELECT MAX("silver") FROM "medals_table" WHERE "bronze"<3 AND "gold"<1 AND "total"=1 AND "nation"='ireland';