Instruct: What is the average laps for a grid larger than 2, for a ferrari that got in an accident?
Output: SELECT AVG Laps FROM table WHERE Grid > 2 AND Time/Retired = accident AND Constructor = ferrari