Context: CREATE TABLE table_name_31 (points INTEGER, grade VARCHAR)
Question: What is the total number of points when the grade was A?
Answer: SELECT SUM(points) FROM table_name_31 WHERE grade = "a"