Question: Who purchased the tramway in 1871
Sentence: In 1871 the tramway was purchased by the Somerset and Dorset Joint Railway (S&DJR), and operated until the 1950s.
Answer in sentence: yes