Table schema:
CREATE TABLE table_name_31 (points INTEGER, grade VARCHAR)

Question: What is the total number of points when the grade was A?
SQL: SELECT SUM(points) FROM table_name_31 WHERE grade = "a"