Complex sentence: It is on the York to Scarborough line and was built for Queen Victoria when she was visiting Castle Howard in 1850.
Split into simpler sentences: It is on the York to Scarborough railway line. This was built for Queen Victoria when she was visiting Castle Howard in 1850.