What was the total rating that had a score higher than 7 and a b score smaller than 8.65?
CREATE TABLE table_name_87 (total INTEGER, a_score VARCHAR, b_score VARCHAR)
SELECT SUM(total) FROM table_name_87 WHERE a_score > 7 AND b_score < 8.65
<s>[INST] Write mssql query to answer the following question given the database schema. 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? [/INST] SELECT SUM(total) FROM table_name_87 WHERE a_score > 7 AND b_score < 8.65 </s>