FR 5357 then AV 2498 at Madrid
Krakow → Madrid → Lisbon
Timetable, Madrid time
22:20FR 5357 from Krakow at the gate
21:10AV 2498 to Lisbon leaves the gatealso LO 4729
22 h 50 apart on the timetable, overnight
AV 2498 leaves 22 h 50 after FR 5357 arrives on the timetable: more than half a day, so not a connection we count.