THE PAST PERFECT CONTINUOUS TENSE
I / you / he / she / it / we / you / they had been working
Had I / you / he / she / it / we / you / they been working?
I / you / he / she / it / we / you / they had not been working.
I had been reading before you came.
They had been driving before they stopped to have lunch.
How long had he been living in the USA before he moved to Australia?
He had been living in the USA for 10 years before he moved to Australia.
How long had you been waiting before they arrived? I had been waiting since 2 o'clock before they arrived.