Form = had PAST PARTICIPLE
By the time we arrived at the house, Max had already fallen asleep.
By 9 o'clock the movie had ended.
The past perfect is used to express that an activity or condition at an unspecified time finished prior to a particular point in time in the past. The particular point in time may be marked by a time expression, action, event, or condition.