EW 520 then AC 823 at Barcelona
Cologne → Barcelona → Montréal
Timetable, Barcelona time
14:45EW 520 from Cologne at the gate
13:35AC 823 to Montréal leaves the gate
22 h 50 apart on the timetable, overnight
AC 823 leaves 22 h 50 after EW 520 arrives on the timetable: more than half a day, so not a connection we count.