QR 3706 then W4 6664 at Barcelona
Bari → Barcelona → Palermo
Timetable, Barcelona time
23:20QR 3706 from Bari at the gate
22:25W4 6664 to Palermo leaves the gate
23 h 05 apart on the timetable, overnight
W4 6664 leaves 23 h 05 after QR 3706 arrives on the timetable: more than half a day, so not a connection we count.