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