In what Year is the Works No. 2040-2049?
CREATE TABLE "0_6_0_0_6_0_garratt_production_list_all_" (
  "gauge" text,
  "railway" text,
  "works_no" text,
  "year" text,
  "builder" text
);
SELECT "year" FROM "0_6_0_0_6_0_garratt_production_list_all_" WHERE "works_no"='2040-2049';