CALGARY - Canadian Pacific Kansas City Ltd. and Lanco Group/Mi-Jack have sold their joint venture Panama Canal Railway Co. to APM Terminals, a global terminal operator and division of A.P. Moller - Maersk.