FB 471 then FR 2053 at Madrid
Sofia → Madrid → Palma de Mallorca
Timetable, Madrid time
16:20FB 471 from Sofia at the gate
14:45FR 2053 to Palma de Mallorca leaves the gate
22 h 25 apart on the timetable, overnight
FR 2053 leaves 22 h 25 after FB 471 arrives on the timetable: more than half a day, so not a connection we count.