user: ### NOW ANSWER:
Question: 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?
Columns: ['Position', 'Club', 'Played', 'Points', 'Wins', 'Draws', 'Losses', 'Goals for', 'Goals against', 'Goal Difference']
Types: ['real', 'text', 'real', 'real', 'real', 'real', 'real', 'real', 'real', 'real']
Sample row: [1.0, 'Hércules CF', 38.0, 73.0, 21.0, 10.0, 7.0, 61.0, 30.0, 31.0]
SQL:

assistant: SELECT SUM("Goals for") FROM "Table" WHERE "Position" < 8.0 AND "Losses" < 10.0 AND "Goals against" < 35.0 AND "Played" < 38.0;