UA 3926 then AA 597 at San Francisco
Newark → San Francisco → Chicago O'Hare
Timetable, San Francisco time
22:56UA 3926 from Newark at the gate
17:22AA 597 to Chicago O'Hare leaves the gatealso QF 4712
18 h 26 apart on the timetable, overnight
AA 597 leaves 18 h 26 after UA 3926 arrives on the timetable: more than half a day, so not a connection we count.