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_99 (goals_for INTEGER, goal_difference VARCHAR, losses VARCHAR)
### Question:
What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12?
### Answer:
SELECT AVG(goals_for) FROM table_name_99 WHERE goal_difference = 8 AND losses < 12