QR 3522 then VY 1074 at Barcelona
Málaga → Barcelona → Berlin
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
18:00VY 1074 to Berlin leaves the gatealso QR 3613, IB 5018, LL 5018
16 h 40 apart on the timetable
VY 1074 leaves 16 h 40 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.