Breakdown of Há anos que eles queriam viver no estrangeiro.
eles
they (m)
em
in / on / at
o ano
the year
querer
to want
Questions & Answers about Há anos que eles queriam viver no estrangeiro.
Why is the verb queriam in the imperfect tense rather than the present tense?
This sentence uses the structure Há + time + que + imperfect to talk about something that had been happening in the past. If we used the present tense (querem), it would change the meaning to 'They have been wanting' (and still want to now). Using the imperfect queriam means their desire was ongoing in the past, but implies the situation has since changed or resolved (for example, maybe they finally moved).
Why do we need the word que after Há anos?
Could I write this sentence without using que?
Yes, by changing the word order. You can easily say Eles queriam viver no estrangeiro há anos. When the time expression (há anos) goes at the end of the sentence instead of the beginning, you drop the que.
Why is 'abroad' translated as no estrangeiro?
In English, 'abroad' is an adverb. In Portuguese, it is expressed with a noun, o estrangeiro (literally 'the foreign' or 'the foreign territory'). Because they want to live in that foreign place, we combine the preposition em (in) with the masculine 'the' (o) to get no.