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

Show id and location of railways that are associated with more than one train.
SELECT T2.Railway_ID, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*) > 1
SELECT "T2"."Railway_ID", "T1"."Location" FROM "railway" "T1" JOIN "train" "T2" ON "T1"."Railway_ID" = "T2"."Railway_ID" GROUP BY "T2"."Railway_ID" HAVING COUNT(*) > 1