AA 1494 then QR 8167 at O'Hare
San Diego → Chicago → Doha
Timetable, Chicago time
04:49AA 1494 from San Diego at the gate
04:40QR 8167 to Doha leaves the gate
23 h 51 apart on the timetable, overnight
QR 8167 leaves 23 h 51 after AA 1494 arrives on the timetable: more than half a day, so not a connection we count.