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