Table: japanese_motorcycle_grand_prix
Columns: rider
manufacturer
laps
time_retired
grid

Question: Who is the rider with less than 15 laps, more than 32 grids, and an accident time/retired?
SQL: SELECT "rider" FROM japanese_motorcycle_grand_prix WHERE "laps" < 15 AND "grid" > 32 AND "time_retired" = 'accident'

Question: What is the time/retired of the honda manufacturer with a grid less than 26, 18 laps, and joan olivé as the rider?
SQL: SELECT "time_retired" FROM japanese_motorcycle_grand_prix WHERE "manufacturer" = 'honda' AND "grid" < 26 AND "laps" = 18 AND "rider" = 'joan olivé'

Question: What is the average number of laps with an accident time/retired, aprilia manufacturer and a grid of 27?
SQL: SELECT AVG("laps") FROM japanese_motorcycle_grand_prix WHERE "time_retired" = 'accident' AND "manufacturer" = 'aprilia' AND "grid" = 27