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

Question: I want the average bronze for total of 19 and silver of 8 with rank of 31
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "total"=19 AND "silver"=8 AND "rank"='31';

Question: Tell me the average bronze for rank of 43 and total less than 11
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='43' AND "total"<11;