FB 471 then UX 6079 at Madrid
Sofia → Madrid → Palma de Mallorca
Timetable, Madrid time
17:55FB 471 from Sofia at the gate
17:05UX 6079 to Palma de Mallorca leaves the gate
23 h 10 apart on the timetable, overnight
UX 6079 leaves 23 h 10 after FB 471 arrives on the timetable: more than half a day, so not a connection we count.