CREATE TABLE "numbers_and_names" (
  "hr_no" text,
  "hr_name" text,
  "cr_no" real,
  "lms_no" real,
  "built" text,
  "works" text,
  "withdrawn" text
);

Question: What is the lowest cr number?
SQL: SELECT MIN("cr_no") FROM "numbers_and_names";

Question: When 2/1939 is the withdrawn when was it built?
SQL: SELECT "built" FROM "numbers_and_names" WHERE "withdrawn"='2/1939';

Question: When river ness is the hr name what is the hr number?
SQL: SELECT "hr_no" FROM "numbers_and_names" WHERE "hr_name"='River Ness';

Question: When (river garry) is the hr name how many builts are there?
SQL: SELECT COUNT("built") FROM "numbers_and_names" WHERE "hr_name"='(River Garry)';

Question: What is the highest cr number?
SQL: SELECT MAX("cr_no") FROM "numbers_and_names";

Question: When river ness is the hr name how many builts are there?
SQL: SELECT COUNT("built") FROM "numbers_and_names" WHERE "hr_name"='River Ness';