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
context: CREATE TABLE table_name_99 (goals_for INTEGER, goal_difference VARCHAR, losses VARCHAR)