QR 701 then DL 5106 at JFK
Doha → New York → Toronto
Timetable, New York time
15:30QR 701 from Doha at the gate
15:19DL 5106 to Toronto leaves the gate
23 h 49 apart on the timetable, overnight
DL 5106 leaves 23 h 49 after QR 701 arrives on the timetable: more than half a day, so not a connection we count.