AA 9977 then QK 8517 at Philadelphia
Cleveland → Philadelphia → Toronto
Timetable, Philadelphia time
23:17AA 9977 from Cleveland at the gate
17:05QK 8517 to Toronto leaves the gate
17 h 48 apart on the timetable, overnight
QK 8517 leaves 17 h 48 after AA 9977 arrives on the timetable: more than half a day, so not a connection we count.