CREATE TABLE table_35864 ("Gauge" CLOB, "Railway" CLOB, "Works no." CLOB, "Year" CLOB, "Builder" CLOB)

In what Year is the Works no. 2040-2049?
SELECT "Year" FROM table_35864 WHERE "Works no." = '2040-2049'
SELECT "Year" FROM "table_35864" WHERE "Works no." = '2040-2049'