Yes
select objectnumber from railway where railway_id not in ( select railway_id from train )
and ones that do?
select objectnumber from railway where railway_id in ( select railway_id from train )
What are their names?
select railway from railway where railway_id in ( select railway_id from train )
and the names of the railways with no trains?
select railway from railway where railway_id not in ( select railway_id from train )
when were they built?
select built from railway where railway_id not in ( select railway_id from train )