Time's Arrow (1)

Data is transported back in time to 19th century San Francisco, where he hopes to solve the mystery of his death after a Enterprise away team finds Data's head buried in a cave.