CREATE TABLE table_58241 ("Position" FLOAT, "Club" TEXT, "Played" FLOAT, "Points" FLOAT, "Wins" FLOAT, "Draws" FLOAT, "Losses" FLOAT, "Goals for" FLOAT, "Goals against" FLOAT, "Goal Difference" FLOAT)

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?
SELECT SUM("Goals for") FROM table_58241 WHERE "Position" < '8' AND "Losses" < '10' AND "Goals against" < '35' AND "Played" < '38'
SELECT SUM("Goals for") FROM "table_58241" WHERE "Goals against" < '35' AND "Losses" < '10' AND "Played" < '38' AND "Position" < '8'