20th episode of the 5th season of Star Trek: The Next Generation
director: Winrich Kolbe
screenwriter: Peter Allan Fields
Wikipedia