Table: gymnastics_2008_horizontal_bar
Columns: position
gymnast
a_score
b_score
total

Question: what is the position for the competitor that has a score more than 7
SQL: SELECT "position" FROM gymnastics_2008_horizontal_bar WHERE "a_score" > 7

Question: what is the score for the 5th position and a score less than 7
SQL: SELECT MIN("b_score") FROM gymnastics_2008_horizontal_bar WHERE "position" = '5th' AND "a_score" < 7

Question: what is the total scored for the 8th position and a score more than 6.6
SQL: SELECT MAX("total") FROM gymnastics_2008_horizontal_bar WHERE "position" = '8th' AND "a_score" > 6.6