human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rider, Bike, Laps, Time, Grid
###Question: What is the driver with the laps under 16, grid of 10, a bike of Yamaha YZF-R6, and ended with an accident?
gpt
SELECT Rider FROM table WHERE Laps < 16 AND Time = accident AND Bike = yamaha yzf-r6 AND Grid = 10