CREATE TABLE table_name_24 (goals_for NUMBER, points_1 VARCHAR2, played VARCHAR2)

How many goals when the points 1 is 38 and the played number is less than 42?
SELECT SUM(goals_for) FROM table_name_24 WHERE points_1 = 38 AND played < 42
SELECT SUM("goals_for") FROM "table_name_24" WHERE "played" < 42 AND "points_1" = 38