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

### Instruction:
Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison

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

### Response:
SELECT AVG Laps FROM table WHERE Grid > 12 AND Bike = ducati 999rs AND Rider = dean ellison