Which nation has more than 6 Silver medals and fewer than 8 Gold medals?
CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("total") FROM "medal_table" WHERE "silver">6 AND "gold"<8;