Question: What's the railway number of a D(rebuild) class?
SQL: SELECT "Railway number(s)" FROM "2-18934662-6" WHERE "Class" = 'D(rebuild)';

Question: What the least quantity having a T2a class?
SQL: SELECT MIN("Quantity rebuilt") FROM "2-18934662-6" WHERE "Class" = 'T2a';