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

### Instruction:
How long did it take for the rider of a Yamaha with a grid less than 8 and laps less than 23?

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

### Response:
SELECT Time FROM table WHERE Manufacturer = yamaha AND Grid < 8 AND Laps < 23