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