AA 9977 then QK 8862 at Philadelphia
Cleveland → Philadelphia → Montréal
Timetable, Philadelphia time
23:17AA 9977 from Cleveland at the gate
15:20QK 8862 to Montréal leaves the gate
16 h 03 apart on the timetable, overnight
QK 8862 leaves 16 h 03 after AA 9977 arrives on the timetable: more than half a day, so not a connection we count.