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_71 (goals_for INTEGER, played VARCHAR, position VARCHAR, losses VARCHAR)
  ### Question:
  What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?
  ### Answer:
  SELECT MAX(goals_for) FROM table_name_71 WHERE position > 8 AND losses = 12 AND played < 30