What is the average Total for the Rank of 6, when Silver is smaller than 0?
CREATE TABLE "medals" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("total") FROM "medals" WHERE "rank"=6 AND "silver"<0;