AA 2158 then QF 4864 at San Francisco
Chicago O'Hare → San Francisco → Phoenix
Timetable, San Francisco time
00:30AA 2158 from Chicago O'Hare at the gatealso AY 4088, RJ 7305
19:05QF 4864 to Phoenix leaves the gate
18 h 35 apart on the timetable
QF 4864 leaves 18 h 35 after AA 2158 arrives on the timetable: more than half a day, so not a connection we count.