Diga-me a média de voltas para grelha maior do que 12 e motos de Ducati 999rs para Dean Ellison
CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR, bike VARCHAR)
SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = "ducati 999rs" AND rider = "dean ellison"