1. It had been raining for three days before it finally stopped.
2. She had been eating sweets all morning, that's why she wasn't hungry.
3. They were wet because they had been playing in the rain.
4. The team had been winning the game until the other side scored.
5. I had been working as a receptionist before I got the job as a hotel manager.