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