FR 9441 then FR 5356 at Madrid
Lisbon → Madrid → Krakow
Timetable, Madrid time
22:35FR 9441 from Lisbon at the gate
20:00FR 5356 to Krakow leaves the gate
21 h 25 apart on the timetable, overnight
FR 5356 leaves 21 h 25 after FR 9441 arrives on the timetable: more than half a day, so not a connection we count.