CREATE TABLE "l_class_locomotive_fleet_summary" (
  "secr_no" real,
  "sr_no" real,
  "br_no" real,
  "builder" text,
  "date_delivered" text,
  "date_withdrawn" text
);

Question: What is the highest BR number with a SECR number of 765?
SQL: SELECT MAX("br_no") FROM "l_class_locomotive_fleet_summary" WHERE "secr_no"=765;

Question: What is Beyer Peacock's SR number with a SECR number of 769?
SQL: SELECT AVG("sr_no") FROM "l_class_locomotive_fleet_summary" WHERE "builder"='beyer peacock' AND "secr_no"=769;