CREATE TABLE "locomotives_and_carriages" (
  "name" text,
  "design" text,
  "manufacturer" text,
  "acquired" real,
  "disposed" text
);

Question: What is the average year for Wallenstein with 1a1 design?
SQL: SELECT AVG("acquired") FROM "locomotives_and_carriages" WHERE "design"='1a1' AND "name"='wallenstein';

Question: What design was acquired in 1875?
SQL: SELECT "design" FROM "locomotives_and_carriages" WHERE "acquired"=1875;