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