List the names of the trains.
select name from train
Add the locations to each.
select t2.name, t1.location from railway as t1 join train as t2 on t1.railway_id = t2.railway_id