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