FR 9440 then W6 1594 at Lisbon
Madrid → Lisbon → Warsaw Chopin
Timetable, Lisbon time
21:15FR 9440 from Madrid at the gate
17:30W6 1594 to Warsaw Chopin leaves the gate
20 h 15 apart on the timetable, overnight
W6 1594 leaves 20 h 15 after FR 9440 arrives on the timetable: more than half a day, so not a connection we count.