EC 7154 then QR 3678 at Barcelona
Milan → Barcelona → Palermo
Timetable, Barcelona time
16:10EC 7154 from Milan at the gate
15:40QR 3678 to Palermo leaves the gate
23 h 30 apart on the timetable, overnight
QR 3678 leaves 23 h 30 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.