CREATE TABLE "highest_batting_averages" (
  "matches" real,
  "innings" real,
  "not_outs" real,
  "runs" real,
  "average" real
);

Question: What's the average amount of Runs that has 40 innings, and Not outs larger than 6?
SQL: SELECT AVG("runs") FROM "highest_batting_averages" WHERE "innings"=40 AND "not_outs">6;

Question: What's the total Innings that has Runs of 1598, and Matches less than 41?
SQL: SELECT COUNT("innings") FROM "highest_batting_averages" WHERE "runs"=1598 AND "matches"<41;