Name the average goals against for draws of 8 and wins more than 22 with losses less than 12
CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
SELECT AVG("goals_against") FROM "final_table" WHERE "draws"=8 AND "losses"<12 AND "wins">22;