AA 4107 then QR 8167 at O'Hare
Fargo → Chicago → Doha
Timetable, Chicago time
07:18AA 4107 from Fargo at the gate
04:40QR 8167 to Doha leaves the gate
21 h 22 apart on the timetable, overnight
QR 8167 leaves 21 h 22 after AA 4107 arrives on the timetable: more than half a day, so not a connection we count.