CREATE TABLE "locomotive_collection" (
  "no" text,
  "name" text,
  "livery" text,
  "arrival" real,
  "type" text,
  "configuration" text,
  "builder" text,
  "built" real,
  "status" text,
  "location" text
);

Question: What is the arrival time of greenbat
SQL: SELECT MAX("arrival") FROM "locomotive_collection" WHERE "name"='Greenbat';

Question: Which number has Engine Shed as the location
SQL: SELECT "no" FROM "locomotive_collection" WHERE "location"='Engine shed';

Question: What is the name with the builder of Kerr Stuart
SQL: SELECT "name" FROM "locomotive_collection" WHERE "builder"='Kerr Stuart';

Question: Who is the builder for the location Irton Road shed
SQL: SELECT "builder" FROM "locomotive_collection" WHERE "location"='Irton Road shed';

Question: Whats the status of the trains at location Museum
SQL: SELECT "status" FROM "locomotive_collection" WHERE "location"='Museum';

Question: How many are named River Esk
SQL: SELECT COUNT("built") FROM "locomotive_collection" WHERE "name"='River Esk';