CREATE TABLE table_name_40 (points INT, played INT)

What is the sum of all points when number played is less than 18?
SELECT SUM(points) FROM table_name_40 WHERE played < 18
SELECT SUM("points") FROM "table_name_40" WHERE "played" < 18