CREATE TABLE "locomotives" (
  "livery" text,
  "locomotive_type" text,
  "wheel_arrangement" text,
  "builder" text,
  "year_built" real
);

Question: What is the livery of the steam locomotive built after 1950 with a wheel arrangement of 2-6-2?
SQL: SELECT "livery" FROM "locomotives" WHERE "locomotive_type"='steam' AND "year_built">1950 AND "wheel_arrangement"='2-6-2';

Question: What livery belongs to the steam Locomotive type builder that was building before 1989?
SQL: SELECT "livery" FROM "locomotives" WHERE "year_built"<1989 AND "locomotive_type"='steam';