Table: locomotives_npr
Columns: class
wheel_arrangement
fleet_number_s
manufacturer
serial_numbers
year_made
quantity_made
quantity_preserved

Question: what is the quantity made when the class is d-2?
SQL: SELECT "quantity_made" FROM locomotives_npr WHERE "class" = 'd-2'

Question: what is the year made when the manufacturer is 2-6-2 — oooo — mogul?
SQL: SELECT "year_made" FROM locomotives_npr WHERE "manufacturer" = '2-6-2 — oooo — mogul'

Question: what is the wheel arrangement when the year made is 1881?
SQL: SELECT "wheel_arrangement" FROM locomotives_npr WHERE "year_made" = '1881'

Question: what is the quantity made when the wheel arrangement is 2-6-0 and the class is k?
SQL: SELECT "quantity_made" FROM locomotives_npr WHERE "wheel_arrangement" = '2-6-0' AND "class" = 'k'

Question: what is the class when the quantity perserved is 0 and the quantity made is 5?
SQL: SELECT "class" FROM locomotives_npr WHERE "quantity_preserved" = '0' AND "quantity_made" = '5'