List all the locations.
select location from railway
What are the corresponding counts of railways?
select location, count(*) from railway group by location
Which locations have more than one railways?
select location from railway group by location having count(*) > 1