CREATE TABLE table_name_55 (year VARCHAR, tyre VARCHAR, chassis VARCHAR)

What Year has a Tyre of D, and Chassis of Mazda 787?
SELECT year FROM table_name_55 WHERE tyre = "d" AND chassis = "mazda 787"
SELECT "year" FROM "table_name_55" WHERE "chassis" = "mazda 787" AND "d" = "tyre"