AV 2505 then EY 4310 at Madrid
Lisbon → Madrid → Palma de Mallorca
Timetable, Madrid time
20:20AV 2505 from Lisbon at the gatealso LO 4710, EK 4988, AD 7284, S4 8032
20:15EY 4310 to Palma de Mallorca leaves the gatealso UX 6051, AM 6872, AD 6960
23 h 55 apart on the timetable, overnight
EY 4310 leaves 23 h 55 after AV 2505 arrives on the timetable: more than half a day, so not a connection we count.