FR 6712 then W6 1472 at Madrid
Budapest → Madrid → Warsaw Chopin
Timetable, Madrid time
18:10FR 6712 from Budapest at the gate
10:45W6 1472 to Warsaw Chopin leaves the gate
16 h 35 apart on the timetable, overnight
W6 1472 leaves 16 h 35 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.