AV 2485 then FR 5356 at Madrid
Lisbon → Madrid → Krakow
Timetable, Madrid time
17:10AV 2485 from Lisbon at the gate
06:00FR 5356 to Krakow leaves the gate
12 h 50 apart on the timetable, overnight
FR 5356 leaves 12 h 50 after AV 2485 arrives on the timetable: more than half a day, so not a connection we count.