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

### Instruction:
What is the average laps when the manufacturer is yamaha, and the rider is garry mccoy and the grid is smaller than 4?

### Inputs:
table_name: table, columns: ['Rider', 'Manufacturer', 'Laps', 'Time/Retired', 'Grid']

### Response:
SELECT AVG Laps FROM table WHERE Manufacturer = yamaha AND Rider = garry mccoy AND Grid < 4