human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Position, Gymnast, A Score, B Score, Total
###Question: What was the total rating that had a score higher than 7 and a b score smaller than 8.65?
gpt
SELECT SUM Total FROM table WHERE A Score > 7 AND B Score < 8.65