很高兴为你解答!
答案选A by which which引导定语从句,本句正常语序:we went to shanghai by the train.
翻译:我们去上海是坐这趟火车去的
希望可以帮到您,