"Elementary, Dear Data" is the third episode of the second season of the syndicated science fiction television series Star Trek: The Next Generation, the 29th episode of the show overall. It was written by Brian Alan Lane and directed by Rob Bowman, first airing on December 5, 1988.In this episode, a holographic adversary manages to take control of the Enterprise.