FR 2064 then EC 7652 at Madrid
Palma de Mallorca → Madrid → Lisbon
Timetable, Madrid time
23:00FR 2064 from Palma de Mallorca at the gate
22:10EC 7652 to Lisbon leaves the gate
23 h 10 apart on the timetable, overnight
EC 7652 leaves 23 h 10 after FR 2064 arrives on the timetable: more than half a day, so not a connection we count.