EC 7154 then W6 2096 at Barcelona
Milan → Barcelona → Krakow
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
19:05W6 2096 to Krakow leaves the gatealso FR 5252
19 h 50 apart on the timetable, overnight
W6 2096 leaves 19 h 50 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.