CREATE TABLE train (ObjectNumber VARCHAR2, Railway_ID VARCHAR2)
CREATE TABLE railway (ObjectNumber VARCHAR2, Railway_ID VARCHAR2)

List the object number of railways that do not have any trains.
SELECT ObjectNumber FROM railway WHERE NOT Railway_ID IN (SELECT Railway_ID FROM train)
SELECT "ObjectNumber" FROM "railway" WHERE NOT "Railway_ID" IN (SELECT "Railway_ID" FROM "train")