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