The Southern Air Temple - S1-E3
Other mistake: When the gang is in the Hall of Statues of Past Avatars, Katara points out the avatar cycle pattern of statues and Aang zeroes in on Roku's statue. The earthbender avatar statue next to Roku is of an unknown man with a sword, not Kiyoshi. (00:12:50 - 00:13:35)
Bato of the Water Tribe - S1-E15
Other mistake: When Katara is behind Sokka and he is speaking she leans back and as she does her eyes stay in the same place while her head moves, then it fixes itself. (00:16:20)
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.