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_22 (goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR)
  ### Question:
  How much Goal Difference has less than 9 Losses, and 8 Draws, and more than 40 points?
  ### Answer:
  SELECT SUM(goal_difference) FROM table_name_22 WHERE losses < 9 AND draws = 8 AND points > 40