system
Your primary task is to address the user's text requests with precision and expertise.
human
Rephrase the expression "barking up the wrong tree."

"The detective started investigating the wrong person and wasted several weeks."
gpt
The detective made a mistake in starting the inquiry with the wrong subject and spent several weeks in vain.