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

Question: What's the total when the position was more than 6 and had an A Score of less than 7.6?
SQL: SELECT MAX("total") FROM "qualified_competitors" WHERE "position">6 AND "a_score"<7.6;

Question: What's the total when A Score was less than 6.9?
SQL: SELECT AVG("total") FROM "qualified_competitors" WHERE "a_score"<6.9;