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