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_18 (goals_scored INTEGER, games_played INTEGER)
  ### Question:
  When less than 30 games have been played what is the average goals scored?
  ### Answer:
  SELECT AVG(goals_scored) FROM table_name_18 WHERE games_played < 30