AV 2351 then AA 2642 at San Francisco
Denver → San Francisco → Chicago O'Hare
Timetable, San Francisco time
23:09AV 2351 from Denver at the gate
15:18AA 2642 to Chicago O'Hare leaves the gatealso BA 5612, GF 6849
16 h 09 apart on the timetable, overnight
AA 2642 leaves 16 h 09 after AV 2351 arrives on the timetable: more than half a day, so not a connection we count.