VY 4220 then QR 3522 at Barcelona
Berlin → Barcelona → Hamburg
Timetable, Barcelona time
13:10VY 4220 from Berlin at the gate
07:25QR 3522 to Hamburg leaves the gate
18 h 15 apart on the timetable, overnight
QR 3522 leaves 18 h 15 after VY 4220 arrives on the timetable: more than half a day, so not a connection we count.