FR 9440 then FR 2264 at Lisbon
Madrid → Lisbon → Warsaw Modlin
Timetable, Lisbon time
20:25FR 9440 from Madrid at the gate
17:05FR 2264 to Warsaw Modlin leaves the gate
20 h 40 apart on the timetable, overnight
FR 2264 leaves 20 h 40 after FR 9440 arrives on the timetable: more than half a day, so not a connection we count.