CREATE TABLE "emd" (
  "prr_class" text,
  "builder_s_model" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "service" text,
  "power_output" text
);

Question: Who built the train in 1966 with over 40 produced?
SQL: SELECT "builder_s_model" FROM "emd" WHERE "total_produced">40 AND "build_date"='1966';

Question: What is the PRR class of the freight train built in 1967 with a b-b wheel arrangement?
SQL: SELECT "prr_class" FROM "emd" WHERE "wheel_arrangement"='b-b' AND "service"='freight' AND "build_date"='1967';

Question: What PRR class has a Wheel arrangement of a1a-a1a?
SQL: SELECT "prr_class" FROM "emd" WHERE "wheel_arrangement"='a1a-a1a';