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_for INTEGER, ties INTEGER)
  ### Question:
  What is the largest Goals For by a team that has more than 0 ties?
  ### Answer:
  SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 0