Translation:Is the tram going to the market or the railway station?
Here i could not understand that the tram was the subj, the verb is infront of it, so the focus in on the market, that vagy is between the tram and the station, so its confusing... there is any rules about it or should i just go to exclusion to sort it out?
Oh, that's fairly easy. The subject is the only noun that doesn't have any of the (rag-)suffixes or postpositions. Piac and pályaudvar both sport the -ra suffix, so they must be objects.
The focus is on piacra here because it's getting compared to pályaudvarra. Where does the tram go?