Table: motorcycle_race_results_2008_2
Columns: rider
manufacturer
laps
time
grid

Question: What is the total number of Grid, when Rider is Aleix Espargaro?
SQL: SELECT COUNT("grid") FROM motorcycle_race_results_2008_2 WHERE "rider" = 'aleix espargaro'

Question: What is the Rider, when Grid is less than 16, when Manufacturer is Aprilia, and when Time is +28.288?
SQL: SELECT "rider" FROM motorcycle_race_results_2008_2 WHERE "grid" < 16 AND "manufacturer" = 'aprilia' AND "time" = '+28.288'

Question: What is the average Laps, when Grid is 15?
SQL: SELECT AVG("laps") FROM motorcycle_race_results_2008_2 WHERE "grid" = 15

Question: What is the Manufacturer, when Laps is 26, and when Rider is Aleix Espargaro?
SQL: SELECT "manufacturer" FROM motorcycle_race_results_2008_2 WHERE "laps" = 26 AND "rider" = 'aleix espargaro'