EC 7639 then FR 2051 at Madrid
Lisbon → Madrid → Palma de Mallorca
Timetable, Madrid time
08:45EC 7639 from Lisbon at the gate
07:50FR 2051 to Palma de Mallorca leaves the gate
23 h 05 apart on the timetable, overnight
FR 2051 leaves 23 h 05 after EC 7639 arrives on the timetable: more than half a day, so not a connection we count.