UA 474 then CA 1018 at O'Hare
Mexico City → Chicago → Shanghai
Timetable, Chicago time
19:34UA 474 from Mexico City at the gate
18:40CA 1018 to Shanghai leaves the gate
23 h 06 apart on the timetable, overnight
CA 1018 leaves 23 h 06 after UA 474 arrives on the timetable: more than half a day, so not a connection we count.