EW 7520 then QR 3769 at Barcelona
Hamburg → Barcelona → Amsterdam
Timetable, Barcelona time
18:20EW 7520 from Hamburg at the gate
16:25QR 3769 to Amsterdam leaves the gate
22 h 05 apart on the timetable, overnight
QR 3769 leaves 22 h 05 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.