(written from a Production point of view)
The Enterprise is threatened when a character in Data and La Forge's holodeck simulation becomes sentient.
The USS Enterprise-D is awaiting the arrival of the USS Victory. Data is then summoned to engineering, where Geordi La Forge's assistant, Ensign Clancy, tells Data that he's with the Victory, which puzzles Data. Data then walks over and inquires about the Victory, since it is not here yet. La Forge shows Data a model, a replica of the original HMS Victory, which he intends to give to Captain Zimbata, with whom La Forge had previously served as an ensign.
Data, who has memorized all of Arthur Conan Doyle's stories of Sherlock Holmes, recognizes Holmes office and many of the trinkets in it. Data starts playing the violin and becomes in character as Holmes, while La Forge starts to read, taking on the character of John H. Watson. The story seamlessly starts with Inspector Lestrade knocking on the door. However, Data recognizes the story (Scandal in Bohemia) after only the first few moments, and immediately solves the case. La Forge abruptly freezes the program and storms out of holodeck two.
Talking over the incident in Ten Forward, La Forge explains to Data that playing through the story is part of the fun, and since Data knows all the stories, there isn't any fun. La Forge and Data are overheard by Dr. Katherine Pulaski, who states that Data, while he does have good deductive reasoning, like Holmes, doesn't understand the Human soul, unlike Holmes, and so is incapable of solving a Holmes mystery of which he doesn't already know the answer. With La Forge's suggestion that the computer could create a story in the style, Data takes this as a challenge, and invites Pulaski to join La Forge and him in another Holmes story.
This time, Data instructs the computer to create a new mystery in the Holmes style. This is less than successful, however, because the computer merely combines elements of the existing Holmes stories in a way that Data is again easily able to solve by recognition.
La Forge makes an attempt, now, and carefully instructs the computer to create a story and a character "capable of defeating Data." At that moment, a power surge is detected on the bridge by Lieutenant Worf although it quickly passes and isn't investigated. The new program runs and the three are off on their new adventure. The story takes an unexpected twist when Dr. Pulaski is actually kidnapped by Sherlock Holmes' arch-enemy, Professor James Moriarty, who now "felt like a new man" while witnessing La Forge's use of the holodeck arch earlier.
Data and La Forge track the footsteps of the kidnappers, though an unrelated murder distracts them temporarily. Moriarty has been observing them in order to learn about them.
Data spots Moriarty going into a warehouse which turns out to be his secret laboratory. Moriarty welcomes them and says he somehow knows the two are not Holmes and Watson and is able to call for the holodeck's arch, which surprises them both. Furthermore, he explains he sees images and has thoughts he doesn't understand.
Upon being given a piece of paper with something hand-drawn on it from Moriarty, Data immediately leaves the holodeck with La Forge following in confusion. "Why does it frighten you, Holmes?!" Moriarty shouts after them. After trying and failing to deactivate the holodeck because of an override of the holodeck protocols, Data reveals to La Forge that the drawing on the paper is a side profile of the Enterprise, and also reveals that Moriarty himself has control of the computer. La Forge asks about Pulaski, and Data replies that "she is in grave danger."
Meeting with Captain Picard and the senior officers in the observation lounge, La Forge figures out that it was his instructions to create an adversary capable of defeating Data, not Sherlock Holmes, that initiated the holodeck override control and is preventing them from ending the holodeck program. Furthermore, he has access to the computer and all related libraries. Worf suggests infiltrating the holodeck, and Riker destroying the holodeck creations directly, but Data states that both suggestions would put Pulaski's life at risk. Troi senses a "unifying force," which prompts Data to speculate Moriarty has a consciousness, necessary to defeat him. The ship suddenly lurches due to a temporary control switch to the holodeck, revealing that Moriarty can control the ship if he wants. Picard decides that he must personally meet with him.
Meanwhile, Moriarty learns a great deal about the Enterprise from the computer, and somehow constructs a crude device that toggles attitude control in the holodeck. Pulaski deftly plays along with the program while not acknowledging that anything odd is going on. Moriarty, for his part, treats the Doctor as a guest; offering her tea while gently trying to get more information. He reveals that he can call the arch and that he suspects he is on the Enterprise.
Outside, Worf, Data and Picard dress appropriately for the scene and the latter two enter the holodeck, while Worf stands by outside with Riker to assist them if necessary.
Picard and Data go to the warehouse. Moriarty now seems very knowledgeable about his situation, and is convinced he has grown beyond his original programming. He asks that he continue to exist. Picard explains that it isn't possible, and that he is only a holographic image that can't exist outside the holodeck. Moriarty challenges this by asking if Data has life, using the definition "I think, therefore I am" to argue he is alive. Picard is convinced, but it still isn't possible with current technology to give him existence outside the holodeck. Moriarty accepts this and releases Pulaski and control of the ship. Picard explains that the ship's computer can store Moriarty's character indefinitely, and that the Federation would work on a way to bring Moriarty out of the holodeck. Moriarty's program is stored and ended.
Picard then goes down to engineering, where La Forge is overlooking the model of the HMS Victory which sustained minor damage during the shaking of the Enterprise by Moriarty. La Forge laments that he put the Enterprise in danger by simply misspeaking a single word, but Picard assures him that the Enterprise, like the model Victory, will soon be repaired. The USS Victory arrives for its rendezvous with the Enterprise.
"Where can I reach you?"
"He can be reached at 221B Baker Street."
- - Clancy asking Data where he and Geordi La Forge will be
"Your artificial friend doesn't have a prayer of solving a Holmes mystery that he hasn't read."
- - Pulaski to La Forge after Data solves a Sherlock Holmes mystery rather quickly on the holodeck
"I'll give you credit for your vast knowledge but your circuits would just short out if you were confronted with a truly original mystery."
- - Pulaski criticizing Data again
- - Moriarty, gaining sentience
"Why does it frighten you, Holmes?!"
- - Moriarty, after he presents Data with a hand drawn Enterprise-D
"How can a character from 1890s London draw a picture of the Enterprise?"
- - Geordi La Forge
"Well, Doctor Pulaski and I had a discussion about whether Data could solve an original Holmes-type mystery."
"Which you asked the computer to provide?"
"Yes, with a worthy opponent."
"Worthy of Holmes?"
"…oh my God… I asked for a Holmes-type mystery with an opponent capable of defeating… Data! That's gotta be it!"
- - La Forge and Picard realizing the truth about Moriarty's creation.
- - Riker, when Worf changes into an 1890s London outfit
"I'm a civilized abductor, Captain Picard. Civilized… but still dangerous."
- - Moriarty
"I do not want to die."
"And I do not want to kill you."
- - Moriarty and Picard
- Second revised final draft script: 12 October 1988 
- Premiere airdate: 5 December 1988
- First UK airdate: 17 April 1991
Story and script
- According to Maurice Hurley, the idea for this episode was inspired by Data's experiences in "The Big Goodbye". Hurley stated, "It wasn't a writer saying, 'Let's do this.' It was one of the people living on the Enterprise." (Captains' Logs: The Unauthorized Complete Trek Voyages, p. 174)
- 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 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.
- The original ending filmed was cut from the episode. (Star Trek: The Next Generation Companion 2nd ed., pp. 68-69) Maurice Hurley recalled, "In that ending, Picard knew how to defeat Moriarty. He tricked him. He knew all along that Moriarty could leave the holodeck whenever he wanted to, and he knew because when Data came out and showed him a drawing of the Enterprise, if that piece of paper could leave the holodeck, that means that the fail-safe had broken down. In turn, this means that the matter-energy converter which creates the holodeck, now allowed the matter to leave the holodeck, which was, up to that point, impossible. When he knew that paper had left the holodeck, he knew that Moriarty could as well, so he lied to him." (Captains' Logs: The Unauthorized Complete Trek Voyages, p. 174)
- This ending was removed by Gene Roddenberry, who claimed that it hurt Picard's character by making him look deceitful. Hurley disagreed, noting, "I thought it made him look clever, and since you are dealing with maybe the most profound criminal mind in literature, you've got to be careful." (Captains' Logs: The Unauthorized Complete Trek Voyages, p. 174) The original ending can be seen in the script here (scene 62B).
- In the episode as aired, the existence of the paper with a drawing of the Enterprise, given to Data by Moriarty, outside the holodeck is unexplained, but could be caused by the replicator interacting with the holodeck, replicating the drawing.
- When given a choice of shows to direct, Rob Bowman chose this episode, as he was disappointed at missing out on the previous season's period show, "The Big Goodbye". (Star Trek: The Next Generation Companion 2nd ed., p. 68)
- Rob Bowman noted that this episode was "a huge production. They built that whole street from the ground up on stage. Indoors. It's an awesome episode." However, Bowman was angry with a cost-cutting decision to reduce the schedule for filming from eight to seven days. He remarked, "They made the shooting process one of the most unpleasant I've ever been through. I thought it almost killed the episode… Here was a show where we had all this great production value. Brent Spiner was about to do the best work I've ever seen him do. We had all these sets and they said seven days. I think that show is when I started to pull away from Star Trek, because I felt that it was a great opportunity to make a wonderful episode, and there was an arbitrary decision because the sets cost so much – I think $200,000 – where they said, 'We'll save money by taking a day off the schedule.' It's like, 'Wait a minute guys, first you have to take a day out of the script. You don't just take a day off the schedule to save $60,000.' As you can tell, I was pretty angry about it, and still have a little hostility towards what I went through on that show to make it happen." (Captains' Logs: The Unauthorized Complete Trek Voyages, p. 174)
Cast and characters
- Wil Wheaton (Wesley Crusher) does not appear in this episode.
- This is Daniel Davis's first appearance as Moriarty. He reprises his role in the sixth season episode "Ship in a Bottle".
- When starting the initial Holmes program, Data gives the full name "Dr. John Watson" for La Forge's character. The stories of the Holmes canon have identified Dr. Watson's first name as both "John" and "James", though John is indeed used more frequently, and James may merely be an Anglicized version of Hamish, for which Watson's middle initial "H" may stand.
- When the second program is started and Geordi asks for the arch, Moriarty is seen noticing the arch's existence. Holodeck creations would not notice this phenomenon. It would suggest that Moriarty had sentience before the actual program was created.
- When Data shows Geordi the paper he received from Moriarty, Geordi flips the paper and the audience can see a sketch of the Enterprise. However, because it's right-side up for the audience it means that Data handed Geordi the image upside down for no discernible reason. While Geordi's vision might have allowed directional correction of the image it is still unusual that Data would hand him the image in such a manner.
- Maurice Hurley remarked, "Wonderful episode… We had carriages, old London, and I thought the guy who played Moriarty was just wonderful. I've never seen anybody play Moriarty better than that." (Captains' Logs: The Unauthorized Complete Trek Voyages, p. 174)
- Despite the issues with filming, Rob Bowman was still proud of the episode. "Certainly Brent Spiner came through with flying colors and everybody did. The original draft of that script was so eloquently written; absolutely beautiful, but it was probably a two hour episode at least and was written way, way down, but that was a wonderful script. We pulled the episode off." (Captains' Logs: The Unauthorized Complete Trek Voyages, p. 174)
- At the time of filming, the producers believed that the Sherlock Holmes character was public domain. After the episode aired, the estate of Sir Arthur Conan Doyle notified Paramount that they still retained a percentage of the rights to the character, and would require a usage fee if the character was used again. This legal issue delayed sequel episodes for nearly four years, at which time an agreement was reached for use of the character in "Ship in a Bottle". (Star Trek: The Next Generation Companion 2nd ed., pp. 69, 231). The unusual delay was subsequently referenced in the latter episode.
- A mission report by Patrick Daniel O'Neill for this episode was published in The Official Star Trek: The Next Generation Magazine issue 6, pp. 21-25.
- This episode was nominated for two Emmy Awards: Outstanding Art Direction for a Series, and Outstanding Costume Design for a Series.
Video and DVD releases
- Original UK VHS release (two-episode tapes, CIC Video): Volume 15, catalog number VHR 2468, 3 June 1991
- UK re-release (three-episode tapes, Paramount Home Entertainment): Volume 2.1, catalog number VHR 4737, 1 March 1999
- As part of the TNG Season 2 DVD collection
- As part of the TNG Season 2 Blu-ray collection
Links and references
- LeVar Burton as Lt. Geordi La Forge
- Michael Dorn as Lt. Worf
- Marina Sirtis as Counselor Deanna Troi
- Brent Spiner as Lt. Commander Data
Special appearance by
- Biff Manard as Ruffian
- Diz White as Prostitute
- Anne Elizabeth Ramsay as Assistant Engineer Clancy
- Richard Merson as Pie Man
- Rosemarie Baio as the widow
- Majel Barrett as USS Enterprise-D computer voice
- Michael Braveheart as Martinez
- Jeffrey Deacon as command division officer
- Guy Vardaman as Darien Wallace
- Mark Wilson as bystander
- Unknown performers as
- James G. Becker – stand-in for Jonathan Frakes
- Darrell Burris – stand-in for LeVar Burton
- Dexter Clay – stand-in for Michael Dorn
- Jeffrey Deacon – stand-in for Patrick Stewart
- Nora Leonhardt – stand-in for Marina Sirtis
- Tim McCormack – stand-in for Brent Spiner
19th century; 1890; 24th century; 221B Baker Street; ability; abduction; abductor; acceleration; "a deuce of a"; adversary; ales; "all of a sudden"; "all right"; Almighty; Alpha Centauri; answer; antimatter power; arch; assistant engineer; associate; "as you wish"; "at all"; "at random"; "at risk"; attention; attitude control; author; authority; back; Baker Street; barrel; bead; bell; blackmail; Bohemia; bowler hat; Bruce-Partington plans; building; "by hand"; "by rote"; captor; case; chance; choice; circuit; code; "cogito, ergo sum"; coin; "come along"; "come on"; command; common law marriage; computer; computer control; computer simulation; concert; conduit; consciousness; Constellation-class; conversation; convict; coordinates; copy; costume; country; crime; criminal; crumpet; "dark fellow"; dark magic; Dartmoor; day; "dead end"; deductive reasoning; deerstalker cap; definition; Delphi; Denkir IV; despair; detective; device; dilemma; dilithium regulator; directive; disappearance; discussion; doorway; Doyle, Arthur Conan; drawing; dream; dupe; electric light; electricity; emerald; emissary; employee; emptiness; energy; environment; event; evil; "excuse me"; existence; explanation; facial expression; fail-safe system; failure; fate; fear; fictional character; finger mark; fingerprint; fisherman; fly; footfall; fraud; French language; friend; fun; gag; gang; garrote; gift; gin; goods; government; "Great Scott"; ground; guest; gypsy; hand; handedness; harm; "have a prayer"; "hello"; Holmes, Sherlock; holodeck; holodeck control; holodeck program; hologram generation; holographic construct; holographic image; hook; Human; Human nature; idea; ignorance; image; information; innocence; "in order to"; input; inspector; inspiration; "in the meantime"; "in time"; investment; key; killer; kilometer; King of Bohemia; knowledge; laboratory; Latin language; laurel; library file; life; London; luck; lure; machine; madame; magnetic fuel line; main computer; "make way"; mark (identification); masculine; matter; matter-antimatter chamber; meat pie; medicine; memorization; memory banks; memory capacity; "merde"; message; milk; mind; mistake; mister; mistress; money; Moriarty, James; mortality fail-safe; mouth; murder; murderer; musical instrument; mystery; mystery (genre); navy phrase; nemesis (literature); "not at all"; number one; "of course"; "oh my God"; Old Britain; "on my way"; opponent; opportunity; Oracle at Delphi; override protocol; paper; parameter; particle beam; particle stream; pattern; pawn shop; perspective; photograph; phrase; picture; plaque; ploy; pocket; police; police officer; power surge; problem; professor; programming; prostitute; prostitution; publication; Kate, Pulaski; pun; puzzle; quantity; Queen Victoria; question; reality; reason; reasoning; recitation; record; Red-Headed League; Reichenbach Falls; rendezvous; researcher; rigging; "right now"; risk; robbery; room; rope; rubber; Rule's; ruse; sail; sailor; scone; security team; sentience; sequence; shape; shawl; sheep; shillings; "shipshape and Bristol fashion"; shoe; silence; size; snake; snuff box; sole; soul; spar; specialty; spider; square kilometer; Starfleet; status; story; stouts; stranger; strangulation; street; strength; string; stupor; substance; success; sugar; suit; sweet pie; tavern; tea; teacher; testimony; "thank God"; "thank you"; "that's right"; theater; theft; thinking; thought; throat; tie pin; time; Tottenham Court Road; trail; transporter; trinket; tuppence; turtle; understanding; uniform; Valley of Fear, The; value; velocity; victim; victory; Victory, HMS; Victory, USS; violin; vital sign; volumes; von Ormstein, Wilhelm Gottsreich Sigismond; "wait a minute"; wall; wardrobe; warehouse; "wasting your breath"; Watson, John H.; waveguide; web; Whitaker's Almanack; "wild goose chase"; wind; witness; word; worm; Zimbata
Sherlock Holmes Program 3A: The Blue Boy; Boyce, R.; bullet hole; chemist; Childcraft; Close-Up; Deighton, Len; druggist; Flaxville Meat Market; Holt's Brown Nut Ale; King Louis XVI; Malmesbury; McKenzie Coy Warehouse; Noted Ale and Stout Stores; Pyrex; Santovin; Stephen Pettifer & Sons; Tovey Mews; Wiltshire
- "Elementary, Dear Data" at StarTrek.com, the official Star Trek website
- "Elementary, Dear Data" at Memory Beta, the wiki for licensed Star Trek works
- "Elementary, Dear Data" at Wikipedia
- "Elementary, Dear Data" at MissionLogPodcast.com, a Roddenberry Star Trek podcast
| Previous episode:|
"Where Silence Has Lease"
| Star Trek: The Next Generation|
| Next episode:|
"The Outrageous Okona"