NE 8003 then FR 2051 at Madrid
Cairo → Madrid → Palma de Mallorca
Timetable, Madrid time
12:40NE 8003 from Cairo at the gate
09:25FR 2051 to Palma de Mallorca leaves the gate
20 h 45 apart on the timetable, overnight
FR 2051 leaves 20 h 45 after NE 8003 arrives on the timetable: more than half a day, so not a connection we count.