What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?
CREATE TABLE "2008_summer_olympics_medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("total") FROM "2008_summer_olympics_medal_table" WHERE "bronze"=4 AND "silver">2 AND "gold"<7;