When I got to the party, it had already started.
I just had been sitting down when Rick asked me to dance.
After Julia had arrived, she had a bath.
When they had left the restaurant, it began raining.
Jack gave up drinking because he had had so many accidents.