CREATE TABLE "senior_career_history" (
  "year" real,
  "competition_description" text,
  "location" text,
  "apparatus" text,
  "rank_final" real
);

Question: What is the highest Year, when Apparatus is "Vault", and when Rank-Final is less than 9?
SQL: SELECT MAX("year") FROM "senior_career_history" WHERE "apparatus"='vault' AND "rank_final"<9;

Question: What is Year, when Competition Description is "U.S. Championships", when Rank-Final is less than 3, and when Apparatus is "All-Around"?
SQL: SELECT "year" FROM "senior_career_history" WHERE "competition_description"='u.s. championships' AND "rank_final"<3 AND "apparatus"='all-around';

Question: What is Apparatus, when Rank-Final is greater than 6, and when Competition Description is "U.S. Championships"?
SQL: SELECT "apparatus" FROM "senior_career_history" WHERE "rank_final">6 AND "competition_description"='u.s. championships';