AA 3977 then QR 8165 at O'Hare
Detroit → Chicago → Doha
Timetable, Chicago time
14:05AA 3977 from Detroit at the gate
13:15QR 8165 to Doha leaves the gate
23 h 10 apart on the timetable, overnight
QR 8165 leaves 23 h 10 after AA 3977 arrives on the timetable: more than half a day, so not a connection we count.