EW 7520 then CA 840 at Barcelona
Hamburg → Barcelona → Shanghai
Timetable, Barcelona time
18:20EW 7520 from Hamburg at the gate
10:40CA 840 to Shanghai leaves the gate
16 h 20 apart on the timetable, overnight
CA 840 leaves 16 h 20 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.