AA 2814 then CZ 2502 at O'Hare
San Francisco → Chicago → Shanghai
Timetable, Chicago time
15:45AA 2814 from San Francisco at the gate
13:55CZ 2502 to Shanghai leaves the gate
22 h 10 apart on the timetable, overnight
CZ 2502 leaves 22 h 10 after AA 2814 arrives on the timetable: more than half a day, so not a connection we count.