past perfect continuous
Definition from Wiktionary, the free dictionary
She had been living in England for three years before moving to Sweden.
- (grammar) A tense that expresses an unbroken action continuing up to a certain time in the past. In English it is formed by using had been with a present participle.