FR 5219 then FR 3035 at Barcelona
Bologna → Barcelona → Krakow
Timetable, Barcelona time
14:30FR 5219 from Bologna at the gate
11:05FR 3035 to Krakow leaves the gate
20 h 35 apart on the timetable, overnight
FR 3035 leaves 20 h 35 after FR 5219 arrives on the timetable: more than half a day, so not a connection we count.