CREATE TABLE "electric_locomotives" (
  "railway" text,
  "builder" text,
  "built" real,
  "wheels" text,
  "location" text,
  "object_number" text
);

Question: Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr?
SQL: SELECT "wheels" FROM "electric_locomotives" WHERE "built"<1958 AND "location"='york' AND "railway"='nsr';

Question: Which Built has a Builder of brel crewe?
SQL: SELECT AVG("built") FROM "electric_locomotives" WHERE "builder"='brel crewe';

Question: Which Railway has a Location of shildon, and an ObjectNumber of 1978-7006?
SQL: SELECT "railway" FROM "electric_locomotives" WHERE "location"='shildon' AND "object_number"='1978-7006';

Question: Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?
SQL: SELECT "railway" FROM "electric_locomotives" WHERE "location"='shildon' AND "object_number"='1975-7022';

Question: Which Location has an ObjectNumber of 2005-7698?
SQL: SELECT "location" FROM "electric_locomotives" WHERE "object_number"='2005-7698';