Table: motorcycle_race_results_2002
Columns: rider
manufacturer
laps
time_retired
grid

Question: What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?
SQL: SELECT "time_retired" FROM motorcycle_race_results_2002 WHERE "grid" < 9 AND "laps" = 21 AND "rider" = 'jeremy mcwilliams'

Question: What is the lowest grid number that a race took place doing more than 21 laps?
SQL: SELECT MIN("grid") FROM motorcycle_race_results_2002 WHERE "laps" > 21

Question: What is the total number of grids where there were races that had a time of 34:22.335?
SQL: SELECT COUNT("grid") FROM motorcycle_race_results_2002 WHERE "time_retired" = '34:22.335'