The Avatar and the Firelord - S3-E6
Firelord Sozin: With Roku gone and the Great Comet returning, the timing was perfect to change the world. I knew the next Avatar would be born an Air Nomad, so I wiped out the Airtemples, but somehow the new Avatar eluded me. I wasted the remainder of my life searching in vain. I know he's hiding out there, somewhere. The Fire Nation's greatest threat; the last Airbender.
Answer: The pirates are from the episodes "The Waterbending Scroll" and "The Waterbending Master" (They're the ones Katara stole the scroll from). The traveling musicians are from "The Cave of Two Lovers. The prisoners of war likely refer to the Kyoshi Warriors, the men of the Southern Water Tribe, and possibly Bumi and the other citizens of Omashu.