AA 504 then QR 8165 at O'Hare
New York LaGuardia → Chicago → Doha
Timetable, Chicago time
13:19AA 504 from New York LaGuardia at the gate
13:15QR 8165 to Doha leaves the gate
23 h 56 apart on the timetable, overnight
QR 8165 leaves 23 h 56 after AA 504 arrives on the timetable: more than half a day, so not a connection we count.