"Elementary, Dear Data" was written by Brian Alan Lane and directed by Rob Bowman.
Story and script This episode contains elements from and references to the
Sherlock Holmes short stories "
A Scandal in Bohemia", "
The Red-Headed League", "
The Adventure of the Speckled Band", and "
The Adventure of the Bruce-Partington Plans", as well as the Holmes novel
The Valley of Fear. Furthermore, Moriarty's creation being a result of
Geordi La Forge requesting an opponent capable of defeating Data references
Arthur Conan Doyle's creation of the same character for the short story
The Final Problem – specifically, as an opponent capable of defeating Sherlock Holmes who, at the time, Doyle wanted to kill off. Reportedly, the original ending had
Jean-Luc Picard lying to Moriarty, that he could have existed outside the
holodeck, the same way the piece of paper on which he drew the
Enterprise also stayed intact outside the holodeck. Co-executive producer Maurice Hurley wanted to keep that ending, as it made Picard look clever, but
Gene Roddenberry nixed it, saying it made Picard look cruel. Instead, the paper stays intact without any explanation.
Casting The episode features
Daniel Davis as
James Moriarty. Daniel Davis used an
English accent for this role, though he is from Arkansas and speaks with an American accent when not in character. Davis was auditioning for the role of Moriarty alongside another actor in the room
Brian Bedford directly in front of director
Rob Bowman. Davis said of being in the room with Brian Bedford, "So he's the standout in my mind, and we were sort of taking bets with each other about which of us would get it. We hadn't worked together or seen each other in a long time. So it was a very friendly rivalry. Then, when I got it, he was a very good sport and invited me to come to dinner to celebrate that I had gotten the part." The episode also features
Anne Elizabeth Ramsay, making her first
Star Trek: The Next Generation appearance as Ensign Clancy. The actress reprised the role in "
The Emissary", also in season two. Ramsay went on to a busy career as an actress. She co-starred as Lisa Stemple, the dysfunctional sister of Helen Hunt's character, in 123 episodes of
Mad About You, for which she shared a Screen Actors Guild Award nomination. Ramsay also played a recurring role on
Six Feet Under and
Dexter. ==Reception==