CREATE TABLE table_name_22 (goal_difference INTEGER, points VARCHAR(255), losses VARCHAR(255), draws VARCHAR(255))
How much Goal Difference has less than 9 Losses, and 8 Draws, and more than 40 points?
    
SQL: SELECT SUM(goal_difference) FROM table_name_22 WHERE losses < 9 AND draws = 8 AND points > 40