What is the total number of Losses, when Ties is 2, and when Wins is greater than 8?
CREATE TABLE "coaching_record" (
  "season" text,
  "wins" real,
  "losses" real,
  "ties" real,
  "ivy_lg_record" text
);
SELECT COUNT("losses") FROM "coaching_record" WHERE "ties"=2 AND "wins">8;