16th and 17th episodes of the sixth season of Star Trek: The Next Generation
director: Winrich Kolbe
screenwriter: Brannon Braga
Wikipedia