FR 6712 then UX 1153 at Madrid
Budapest → Madrid → Lisbon
Timetable, Madrid time
12:55FR 6712 from Budapest at the gate
10:25UX 1153 to Lisbon leaves the gate
21 h 30 apart on the timetable, overnight
UX 1153 leaves 21 h 30 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.