CREATE TABLE "best_average_in_a_career" (
  "matches" real,
  "innings" real,
  "not_out" real,
  "high_score" text,
  "runs" real,
  "average" real
);

Question: What is the match total for a score over 299 and under 412 innings?
SQL: SELECT SUM("matches") FROM "best_average_in_a_career" WHERE "high_score"='299' AND "innings"<412;

Question: What is the high run total associated with a high score of 385 and under 407 innings?
SQL: SELECT MAX("runs") FROM "best_average_in_a_career" WHERE "high_score"='385' AND "innings"<407;