AA 1204 then QR 8167 at O'Hare
Miami → Chicago → Doha
Timetable, Chicago time
08:00AA 1204 from Miami at the gate
04:40QR 8167 to Doha leaves the gate
20 h 40 apart on the timetable, overnight
QR 8167 leaves 20 h 40 after AA 1204 arrives on the timetable: more than half a day, so not a connection we count.