Which Byes has an Against smaller than 1297, and a Club of avoca, and Wins larger than 12?
CREATE TABLE "first_ladder_1999" (
  "club" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "against" real
);
SELECT AVG("byes") FROM "first_ladder_1999" WHERE "against"<1297 AND "club"='avoca' AND "wins">12;