system
Offer assistance in this text-based interaction, showcasing your proficiency in any topic
human
Remove the unnecessary prepositional phrase.

The book on the shelf, which was written by my favorite author, was borrowed by my friend.
gpt
The book written by my favorite author was borrowed by my friend.