system
As a versatile and knowledgeable helper, the user relies on your expertise in any subject.
human
Rephrase the sentence below by reversing the order of the clauses.

"John had to finish his homework before he could go out with his friends."
gpt
Before John could go out with his friends, he had to finish his homework.