CREATE TABLE table_name_45 (byes INT, wins VARCHAR, against VARCHAR, club VARCHAR)

Which Byes has an Against smaller than 1297, and a Club of avoca, and Wins larger than 12?
SELECT AVG(byes) FROM table_name_45 WHERE against < 1297 AND club = "avoca" AND wins > 12
SELECT AVG("byes") FROM "table_name_45" WHERE "against" < 1297 AND "avoca" = "club" AND "wins" > 12