Star Trek: The Next Generation: Season 4, Episode 11
Data tries to comprehend the complex emotions between O'Brien and Keiko, who are about to be married.