Table: race_results_122
Columns: rider
manufacturer
laps
time
grid

Question: Which Laps have a Time of +39.476, and a Grid larger than 11?
SQL: SELECT AVG("laps") FROM race_results_122 WHERE "time" = '+39.476' AND "grid" > 11

Question: Which Time has Laps smaller than 28, and a Rider of nicky hayden?
SQL: SELECT "time" FROM race_results_122 WHERE "laps" < 28 AND "rider" = 'nicky hayden'

Question: Which Rider has a Grid larger than 6, and has Laps of 28, and a Time of +39.476?
SQL: SELECT "rider" FROM race_results_122 WHERE "grid" > 6 AND "laps" = 28 AND "time" = '+39.476'