AA 1494 then CZ 2502 at O'Hare
San Diego → Chicago → Shanghai
Timetable, Chicago time
04:49AA 1494 from San Diego at the gate
01:45CZ 2502 to Shanghai leaves the gate
20 h 56 apart on the timetable, overnight
CZ 2502 leaves 20 h 56 after AA 1494 arrives on the timetable: more than half a day, so not a connection we count.