Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, played VARCHAR)
### Question:
What is the total number of points where there were 3 losses and a played number bigger than 12?
### Answer:
SELECT SUM(points) FROM table_name_40 WHERE lost = 3 AND played > 12