Schema: CREATE TABLE table_name_87 (total INTEGER, a_score VARCHAR, b_score VARCHAR)
Question: What was the total rating that had a score higher than 7 and a b score smaller than 8.65?
SQL: SELECT SUM(total) FROM table_name_87 WHERE a_score > 7 AND b_score < 8.65