Table: locomotive_list_8
Columns: class
railway_number_s
quantity_rebuilt
rebuild_year_s
type

Question: What's the railway number of a D(rebuild) class?
SQL: SELECT "railway_number_s" FROM locomotive_list_8 WHERE "class" = 'd(rebuild)'

Question: What the least quantity having a T2A class?
SQL: SELECT MIN("quantity_rebuilt") FROM locomotive_list_8 WHERE "class" = 't2a'