We use the past perfect continuous tense to talk about longer actions or situations in the past that had been going on continuously up to the moment in the past that we are talking about. The past perfect continuous is used to express how long something had been going on before something else happened in the past.
The past perfect continuous tense is formed using had been + the verb's present participle (base form + -ing). For a negative sentence add never between had and been.
To create a question we change the word order of the sentence.
For example: I had been working at the company for 3 years when I got the promotion.
She had been swimming for 2 hours when her mom told her to come inside.
When I arrived home from work my wife told me that my son had been playing
video games all day.
I had been doing my work since 6 o'clock that morning.
He had been training for the marathon for 6 months before he did it.
Had they been drinking when you arrived?
Complete the following sentences by selecting the correct form of the verb in brackets and fill in the missing words where necessary.
She ____ been ______ (write) articles for 5 years on the topic of money.
They had _______(be) _______ (practice) for hours.
He had been ______ (study) the whole week.
I had been ______ (work) there for a month when I got promoted.
They _____ _____ playing football all day until it started raining.
Had ______ been drinking when you found him?
What ___ they _____ doing all day?
Had they been _____ (run) all day?
______ had they been buying their food before the grocery store opened?
Why ______ she been studying so hard?