CREATE TABLE table_name_51 (played INT, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR)

What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?
SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 12
SELECT AVG("played") FROM "table_name_51" WHERE "against" < 12 AND "lost" = 3 AND "points" > 9 AND "position" = 5