FR 5219 then QR 3623 at Barcelona
Bologna → Barcelona → Salerno
Timetable, Barcelona time
14:30FR 5219 from Bologna at the gate
05:55QR 3623 to Salerno leaves the gate
15 h 25 apart on the timetable, overnight
QR 3623 leaves 15 h 25 after FR 5219 arrives on the timetable: more than half a day, so not a connection we count.