SCHEMA:
CREATE TABLE table_name_18 (goals_for INTEGER, ties INTEGER)
USER:
What is the largest Goals For by a team that has more than 0 ties?

QUERY:
SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 0