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