QR 3522 then W4 6664 at Barcelona
Málaga → Barcelona → Palermo
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
22:25W4 6664 to Palermo leaves the gate
21 h 05 apart on the timetable
W4 6664 leaves 21 h 05 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.