I don't remember what the episode was about, but I remember this scene where there were at least 10 different Datas and one of them had to put something back into an energy beam in order to restore the correct time-continuum. One of the Datas realized that he was the right one, and order was restored..
Thanks