QR 3743 then FR 3035 at Barcelona
Milan → Barcelona → Krakow
Timetable, Barcelona time
14:55QR 3743 from Milan at the gate
09:35FR 3035 to Krakow leaves the gate
18 h 40 apart on the timetable, overnight
FR 3035 leaves 18 h 40 after QR 3743 arrives on the timetable: more than half a day, so not a connection we count.