We use the past perfect tense to describe an action that happened before another action or moment in the past. It helps us clearly show which past event happened first.
Continuous action in the past.
<----x-----x---|------------>
Subject + Had + Past Participle + Complement.
Examples:
I had ridden a bike.
We had written a book from 2004 to 2012.
She had done her homework on time.
It had played with a ball its whole life.
Subject + Had + Not + Past Participle + Complement.
Note: In the Negative, you can use the Contraction hadn't
Examples:
I hadn't finished my breakfast on time yesterday.
You had not fed your dog before you came to work
They hadn't played the video game for a while.
I hadn't drunk my coffee before the class started.
Had + Subject + Past Participle + Complement?
Note: We can answer, Yes we had, or No we hadn't
Examples:
Had she gone home yet?
Had you made dinner before work?
Had we eaten ice cream during the class?
Had it been drawn on the wall?
Wh-question word + Had + Subject + Past Participle + Complement?
Examples?
What had you done since you ended your old job?
When had he ever come to work on time?
Where had you lived when you were in New York?
Who had she helped when she was young?
Why had you left your home?
How had you done that, that whole time?