Table schema:
CREATE TABLE table_name_51 (played INTEGER, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR)

Question: 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?
SQL: SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 12