CREATE TABLE table_name_99 (laps NUMBER, grid VARCHAR2, time_retired VARCHAR2)

How many laps had a grid of greater than 17 and retired due to collision?
SELECT SUM(laps) FROM table_name_99 WHERE grid > 17 AND time_retired = "collision"
SELECT SUM("laps") FROM "table_name_99" WHERE "collision" = "time_retired" AND "grid" > 17