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_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?
### Answer:
SELECT SUM(total) FROM table_name_87 WHERE a_score > 7 AND b_score < 8.65