that means I am looking for all bus, tram and subway lines (=relations) within a city.

for a more complete picture you should also look at trains and light rail which often are useful for travelling inside of bigger towns and cities.
The relations in OpenStreetMap are not just lines, there is one relation for every variation of a line, often also separated by direction (ideally, in reality it may not be complete everywhere)