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