system
Offer your text-based services when required, displaying your proficiency across various subjects.
human
Rewrite the following sentence to reflect the appropriate tense shift.

Relevant data:
When John arrived at the party, everyone already left.
gpt
By the time John arrived at the party, everyone had already left.