By the time he _____, the train had already left. A. arrived B. will arrive C. is arriving D. had arrived