AA 2158 then UA 1389 at San Francisco
Chicago O'Hare → San Francisco → San Diego
Timetable, San Francisco time
00:30AA 2158 from Chicago O'Hare at the gatealso AY 4088, RJ 7305
22:42UA 1389 to San Diego leaves the gatealso CM 2511, AC 4292, VA 8426, LH 9372, NZ 9584
22 h 12 apart on the timetable
UA 1389 leaves 22 h 12 after AA 2158 arrives on the timetable: more than half a day, so not a connection we count.