W4 6017 then W6 2048 at Barcelona
Rome → Barcelona → Krakow
Timetable, Barcelona time
09:20W4 6017 from Rome at the gate
09:10W6 2048 to Krakow leaves the gate
23 h 50 apart on the timetable, overnight
W6 2048 leaves 23 h 50 after W4 6017 arrives on the timetable: more than half a day, so not a connection we count.