human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: 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?
gpt
SELECT Quantity made FROM table WHERE Class = d-2