text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  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?
  ### Answer:
  SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 12