UA 638 then QR 8796 at San Francisco
Chicago O'Hare → San Francisco → San Diego
Timetable, San Francisco time
15:35UA 638 from Chicago O'Hare at the gatealso AC 4116
11:53QR 8796 to San Diego leaves the gate
20 h 18 apart on the timetable, overnight
QR 8796 leaves 20 h 18 after UA 638 arrives on the timetable: more than half a day, so not a connection we count.