NE 8011 then FR 2051 at Madrid
Cairo → Madrid → Palma de Mallorca
Timetable, Madrid time
13:05NE 8011 from Cairo at the gate
06:05FR 2051 to Palma de Mallorca leaves the gate
17 h apart on the timetable, overnight
FR 2051 leaves 17 h after NE 8011 arrives on the timetable: more than half a day, so not a connection we count.