AA 597 then QR 8818 at San Francisco
Chicago O'Hare → San Francisco → Santa Ana
Timetable, San Francisco time
16:19AA 597 from Chicago O'Hare at the gatealso QF 4712
16:17QR 8818 to Santa Ana leaves the gate
23 h 58 apart on the timetable, overnight
QR 8818 leaves 23 h 58 after AA 597 arrives on the timetable: more than half a day, so not a connection we count.