CREATE TABLE table_name_50 (goals_for INTEGER, played VARCHAR(255), goals_against VARCHAR(255), position VARCHAR(255), losses VARCHAR(255))
what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38?
    
SQL: SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38