I had been to a party the evening before.
I had written the letter by that time.
I had not done my homework by three o'clock .
She had not read the book by Friday.
Had you washed your hands before you took the food?
Had they done their homework before they went out?