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

### Instruction:
How many laps had a time stat of accident for the rider carmelo morales when the grid was more than 25?

### Inputs:
table_name: table, columns: ['Rider', 'Bike', 'Laps', 'Time', 'Grid']

### Response:
SELECT SUM Laps FROM table WHERE Time = accident AND Rider = carmelo morales AND Grid > 25