What Had Already Happened
The past perfect expresses an action that had finished before another action took place in the past. The past perfect is often used to provide reasons for making a decision in the past.
Had you discussed appreciation with Tom before you mentioned it at the meeting?
She hadn't had time to act on behalf of Jim before she made the presentation.
How long had you told her to be held responsible for her own account records before she asked for the promotion?
Subject + had + past participle + (object(s))
I had already provided collateral on the loan before the bank asked for additional collateral.
Subject + had + not + past participle + (object(s))
They hadn't come up with enough votes before they protested the bill.
(Question Word) + have + subject + past participle?
Had you confirmed the final balance prior to computing the profit and loss figures?