Context: CREATE TABLE table_name_40 (points INTEGER, played INTEGER)
Question: What is the sum of all points when number played is less than 18?
Answer: SELECT SUM(points) FROM table_name_40 WHERE played < 18