CREATE TABLE "2_8_2" (
  "class" text,
  "wheel_arrangement" text,
  "fleet_number_s" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text,
  "year_s_retired" text
);

Question: What is the year retired of the locomotive which had the quantity made of 25?
SQL: SELECT "year_s_retired" FROM "2_8_2" WHERE "quantity_made"='25';

Question: Which class had a quantity made of 20?
SQL: SELECT "class" FROM "2_8_2" WHERE "quantity_made"='20';

Question: What is the locomotive class that has a wheel arrangement of 2-8-2 and a quantity made of 25?
SQL: SELECT "class" FROM "2_8_2" WHERE "wheel_arrangement"='2-8-2' AND "quantity_made"='25';

Question: What is the quantity preserved to the locomotive with a quantity made of 6?
SQL: SELECT "quantity_preserved" FROM "2_8_2" WHERE "quantity_made"='6';