Table: race_results_2008_3
Columns: rider
manufacturer
laps
time
grid

Question: What is the average of laps ridden by Toni Elias?
SQL: SELECT AVG("laps") FROM race_results_2008_3 WHERE "rider" = 'toni elias'

Question: How long did it take for the rider of a Yamaha with a grid less than 8 and laps less than 23?
SQL: SELECT "time" FROM race_results_2008_3 WHERE "manufacturer" = 'yamaha' AND "grid" < 8 AND "laps" < 23

Question: What is the fewest amount of laps when the grid was larger than 1 and 42:31.153?
SQL: SELECT MIN("laps") FROM race_results_2008_3 WHERE "time" = '42:31.153' AND "grid" > 1

Question: How long did it take to ride when the laps were 23 and the grid of 13?
SQL: SELECT "time" FROM race_results_2008_3 WHERE "laps" = 23 AND "grid" = 13