what is the average losses when the wins is 9 and ties more than 0?
CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
SELECT AVG("losses") FROM "final_standing" WHERE "wins"=9 AND "ties">0;