Table: gymnastics_2008_qual
Columns: 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?
SQL: SELECT SUM("total") FROM gymnastics_2008_qual WHERE "a_score" > 7 AND "b_score" < 8.65

Question: Which gymnast had a b score of 8.95 and an a score less than 6.9
SQL: SELECT "gymnast" FROM gymnastics_2008_qual WHERE "b_score" = 8.95 AND "a_score" < 6.9