Star Trek: The Next Generation, "The Quality of Life"

'''"The Quality of Life." Star Trek: The Next Generation.''' Week of 13 Dec. 1992. Jonathan Frakes, dir. Naren Shankar, script.

Mr. Data concludes that a highly-developed electronic tool is both an AI and a living being, and risks the lives of his commanding officer and best friend rather than treat such beings as things.