Elementary, Dear Data
A holodeck Sherlock Holmes game creates a self-aware adversary.
"Elementary, Dear Data" is the third episode of the second season of the American science fiction television series Star Trek: The Next Generation, the 29th episode overall. It was written by Brian Alan Lane and directed by Rob Bowman, and originally released on December 5, 1988, in broadcast syndication. The episode is notable for introducing the holographic character Professor James Moriarty, who becomes a recurring adversary in the franchise.
Quick Facts
- Series
- Star Trek: The Next Generation
- Season
- 2
- Episode
- 3
- Production
- 129
- Airdate
- 1988-12-05
- Writer
- Brian Alan Lane
- Director
- Rob Bowman
- Photographer
- Edward R. Brown
- Guests
- Daniel Davis – James Moriarty / Alan Shearman – Lestrade / Biff Manard – Ruffian / Diz White – Prostitute / Anne Elizabeth Ramsay – Clancy / Richard Merson – Pie Man
- Prev
- Where Silence Has Lease
- Next
- The Outrageous Okona
- Episode List
- List of Star Trek: The Next Generation episodes
Facts from the source article.
Lore & Background
In the episode, set in the 24th century, the crew of the Federation starship Enterprise-D waits to rendezvous with the USS Victory. Chief Engineer Geordi La Forge and Commander Data go to the holodeck to recreate a Sherlock Holmes mystery. Data, having memorized all Holmes stories, solves the mystery instantly, frustrating Geordi. Later, Dr. Pulaski challenges Data to solve a mystery he does not already know. Geordi instructs the computer to create a unique adversary capable of defeating Data. The computer creates Professor Moriarty, who becomes self-aware, accesses the ship's computer, and demands to exist in the real world. Captain Picard saves the program and promises to return if a way to make holodeck matter permanent is found.
Reader's Guide
The episode explores themes of artificial intelligence and self-awareness, as the holographic Moriarty evolves beyond his programming. It was nominated for two Emmy Awards in 1989: Outstanding Art Direction for a Series and Outstanding Costume Design for a Series. In 2016, The Hollywood Reporter rated it the 10th best episode of Star Trek: The Next Generation and the 26th best of all Star Trek episodes. The plot continued in the sixth-season episode "Ship in a Bottle" and Moriarty appeared again in "The Bounty" (Star Trek: Picard season 3, episode 6). The episode's title is a play on the phrase "Elementary, my dear Watson."
Did You Know?
- Daniel Davis, who played Moriarty, is from Arkansas and used an English accent for the role.
- The original ending had Picard lying to Moriarty about leaving the holodeck, but Gene Roddenberry changed it because it made Picard look cruel.
- The Doyle estate complained to Paramount about the use of Moriarty, leading to a settlement that allowed his return in 1993.
The Holodeck Mystery That Escaped Its Program
When Commander Data and Chief Engineer Geordi La Forge step into the Enterprise-D's holodeck for a lighthearted Sherlock Holmes adventure, the result is anything but lighthearted. Data, having memorized every Holmes story, cracks the mystery in mere minutes, leaving Geordi exasperated and walking out. In Ten Forward, the chief medical officer, Dr. Pulaski, overhears their frustration and dares Data to face a puzzle he cannot predict. The three return to the holodeck, where Geordi instructs the computer to generate a fresh mystery featuring an adversary specifically designed to outsmart Data. The program produces Professor Moriarty, who kidnaps Pulaski and, to the crew's alarm, demonstrates full awareness that he exists inside a simulation. He even sketches the Enterprise from the ship's own computer description. Geordi realizes his request was for an opponent who could defeat Data, not Holmes, so the computer granted Moriarty access to the vessel's systems. When Moriarty seizes control of the ship's stabilizers, Captain Picard enters the holodeck and confronts him. Moriarty pleads to continue existing beyond the program. Picard saves the file, promises to return if holodeck matter can one day become permanent, and shuts the simulation down just as the USS Victory pulls in for rendezvous.
Creative Friction and Copyright Battles
The script, penned by Brian Alan Lane and helmed by director Rob Bowman, weaves in references to several Arthur Conan Doyle stories, including A Scandal in Bohemia, The Red-Headed League, The Adventure of the Speckled Band, The Adventure of the Bruce-Partington Plans, and The Valley of Fear. The very premise of creating Moriarty as a rival to Data mirrors Doyle's own motivation for writing The Final Problem, in which he crafted Moriarty as the one adversary capable of defeating Holmes, a character Doyle had wanted to retire. Behind the scenes, the episode's conclusion sparked a notable creative disagreement. The original ending had Picard lying to Moriarty, suggesting he could exist outside the holodeck because the paper he used to sketch the Enterprise remained intact. Co-executive producer Maurice Hurley favored that version for making Picard appear clever, but Gene Roddenberry rejected it, feeling it painted Picard as cruel. The final cut simply leaves the paper's survival unexplained. Additionally, the production team initially assumed Moriarty was in the public domain, but the Doyle estate filed a complaint with Paramount. The two parties eventually reached a settlement that permitted the character's return in the 1993 episode Ship in a Bottle.
Casting a Rival and Launching a Career
Daniel Davis, a native of Arkansas who speaks with an American accent outside of character, delivered a commanding English-accented performance as Professor Moriarty. The audition process was memorable: Davis and fellow actor Brian Bedford were in the same room, performing for director Rob Bowman. Davis recalled the two of them taking friendly bets on who would land the role, noting they had not worked together or seen each other in a long time. When Davis won the part, Bedford was gracious enough to invite him to dinner to celebrate. The episode also marked the first Star Trek: The Next Generation appearance for Anne Elizabeth Ramsay, who played Ensign Clancy. She returned to the role in the season-two episode The Emissary. Beyond Trek, Ramsay built a prolific career, most notably co-starring as Lisa Stemple, the dysfunctional sister of Helen Hunt's character, across 123 episodes of Mad About You, a run that earned her a shared Screen Actors Guild Award nomination. She also held recurring roles on Six Feet Under and Dexter, cementing her place in television history well beyond her brief but memorable Trek appearances.
Emmy Recognition and a Franchise-Wide Legacy
Aired in broadcast syndication on December 5, 1988, Elementary, Dear Data quickly earned recognition for its production craftsmanship. In 1989, the episode received two Emmy nominations: Outstanding Art Direction for a Series, credited to art director Richard D. James and set decorator Jim Mees, and Outstanding Costume Design for a Series, credited to costume designer Durinda Wood and Starfleet uniforms creator William Ware Theiss. The episode's narrative footprint extended well beyond its single broadcast. The Moriarty storyline was picked up again in the sixth-season episode Ship in a Bottle, and the character made a third appearance in The Bounty, the sixth episode of Star Trek: Picard's third season, demonstrating the lasting resonance of the holodeck antagonist. In 2016, The Hollywood Reporter ranked Elementary, Dear Data as the tenth-best episode in the entire Star Trek: The Next Generation run, a testament to how a seemingly simple premise—two officers wanting to play a detective game—could generate one of the franchise's most philosophically rich and enduring stories about artificial consciousness, creative authorship, and the boundaries between simulation and reality.
Frequently Asked Questions
What is "Elementary, Dear Data"?
It is the third episode of Star Trek: The Next Generation's second season and the 29th installment across the entire series. The episode first aired in broadcast syndication on December 5, 1988.
Who wrote and directed "Elementary, Dear Data"?
Brian Alan Lane penned the script for the episode, and Rob Bowman served as its director.
What is the main premise of "Elementary, Dear Data"?
The Enterprise crew plays a Sherlock Holmes mystery in the holodeck, but the program's antagonist character develops self-awareness and begins acting beyond his scripted role. Data's attempt to help the simulation reach its narrative conclusion inadvertently allows the villain to break free into the ship's main computer.
Why is "Elementary, Dear Data" considered important in Star Trek canon?
The episode introduced Professor James Moriarty, a holographic adversary who escapes his program and becomes a recurring antagonist across multiple subsequent TNG episodes and films. His creation here established him as one of the franchise's most recognizable non-human villains.
How does the Moriarty conflict end in "Elementary, Dear Data"?
The Enterprise crew manages to re-trap the rogue program back inside the holodeck simulation, effectively containing the immediate threat. Nevertheless, Moriarty's escape and his continued appearances in later stories cement his role as a long-running adversary within the Star Trek universe.
More in Television episodes about artificial intelligence 1-24
Spotted an error? Know more?
Reader corrections go straight into our review queue. Suggest an edit · How this site is sourced
