Canadian National Railway Co beat analysts' estimates for quarterly profit on Tuesday, as it transported higher volumes of petroleum crude and Canadian grain.