AA 5277 then QK 8517 at Philadelphia
Memphis → Philadelphia → Toronto
Timetable, Philadelphia time
19:41AA 5277 from Memphis at the gate
17:05QK 8517 to Toronto leaves the gate
21 h 24 apart on the timetable, overnight
QK 8517 leaves 21 h 24 after AA 5277 arrives on the timetable: more than half a day, so not a connection we count.