Table schema:
CREATE TABLE table_name_40 (points INTEGER, played INTEGER)

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