Tag Searches Relations/Ways

Hi there,

I want to download specific data of Railtracks. I need the coordinates and the maximum speed of one (only one!) lane.
My Problem is: if i search for ways(railway=rail) i will get all lanes of the railtrack and cant separate them properly.
So i started to search for Relations of passengerLines: relation(name=RE98) for example.
But when i export this as geojson i usually only get the coordinates and all other attributes of including ways are gone.

Is there a search tag like: “show me all ways that are part of relation xy”?
Or has anyone an other idea?

(syntax above is simplified)