EC 4389 then FR 2063 at Madrid
Lyon → Madrid → Palma de Mallorca
Timetable, Madrid time
17:00EC 4389 from Lyon at the gate
13:45FR 2063 to Palma de Mallorca leaves the gate
20 h 45 apart on the timetable, overnight
FR 2063 leaves 20 h 45 after EC 4389 arrives on the timetable: more than half a day, so not a connection we count.