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_52 (goals INTEGER, assists VARCHAR, apps VARCHAR)
  ### Question:
  What is the total goals with 12 assists, and less than 291 apps?
  ### Answer:
  SELECT SUM(goals) FROM table_name_52 WHERE assists = 12 AND apps < 291