CREATE TABLE "locomotives_owned_by_east_greta_coal_min" (
  "locomotive" text,
  "type" text,
  "builder" text,
  "builder_s_no" real,
  "built" real,
  "entered_service" real,
  "withdrawn" text
);

Question: How many years entered service when there were 13 locomotives?
SQL: SELECT COUNT("entered_service") FROM "locomotives_owned_by_east_greta_coal_min" WHERE "locomotive"='13';

Question: Which locomotive had a 2-8-2t type, entered service year prior to 1915, and which was built after 1911?
SQL: SELECT "locomotive" FROM "locomotives_owned_by_east_greta_coal_min" WHERE "type"='2-8-2t' AND "entered_service"<1915 AND "built">1911;