What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?
CREATE TABLE "retired" (
  "make_model" text,
  "length" text,
  "year" real,
  "numbers_quantity_ordered" text,
  "fuel_propulsion" text,
  "year_retired" text
);
SELECT "year_retired" FROM "retired" WHERE "fuel_propulsion"='diesel' AND "length"='40''' AND "numbers_quantity_ordered"='3701-3729 (29 buses)';