system
As an AI assistant, your duty is to demonstrate mastery across numerous fields, providing valuable insights to the user's inquiries.
human
Rearrange the following sentence to improve its structure: "She went to the library to study, but her friends invited her to the movies, so she went with them instead."
Relevant data:
"She went to the library to study, but her friends invited her to the movies. She went with them instead."
gpt
Despite planning to study at the library, she chose to go to the movies with her friends instead.