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_78 (cup_goals INTEGER, league_goals VARCHAR, league_apps VARCHAR, cup_apps VARCHAR)
  ### Question:
  How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals?
  ### Answer:
  SELECT SUM(cup_goals) FROM table_name_78 WHERE league_apps > 5 AND cup_apps = 1 AND league_goals < 4