Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What is the average laps for a grid larger than 2, for a ferrari that got in an accident?

### Inputs:
table_name: table, columns: ['Driver', 'Constructor', 'Laps', 'Time/Retired', 'Grid']

### Response:
SELECT AVG Laps FROM table WHERE Grid > 2 AND Time/Retired = accident AND Constructor = ferrari