Question: What city did William Eaton capture to end the first Barbary War?
Sentence: In 1805, after William Eaton captured the city of Derna, Tripoli agreed to a peace treaty.
Answer in sentence: yes