CREATE TABLE "coaching_record" (
  "season" text,
  "wins" real,
  "losses" real,
  "ties" real,
  "ivy_lg_record" text
);

Question: What is the highest value for Ties, when Losses is less than 8?
SQL: SELECT MAX("ties") FROM "coaching_record" WHERE "losses"<8;

Question: What is the total number of Losses, when Ties is 2, and when Wins is greater than 8?
SQL: SELECT COUNT("losses") FROM "coaching_record" WHERE "ties"=2 AND "wins">8;