Instruct: What's the average amount of Runs that has 40 innings, and Not outs larger than 6?
Output: SELECT AVG Runs FROM table WHERE Innings = 40 AND Not Outs > 6