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

Question: what is the position for the competitor that has a score more than 7
SQL: SELECT "position" FROM "qualified_competitors" 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 "qualified_competitors" 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 "qualified_competitors" WHERE "position"='8th' AND "a_score">6.6;