CREATE TABLE "horizontal_bar_event_final_qualifiers" (
  "position" text,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);

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 "horizontal_bar_event_final_qualifiers" 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 "horizontal_bar_event_final_qualifiers" WHERE "b_score"=8.95 AND "a_score"<6.9;