UX 1160 then EY 4310 at Madrid
Lisbon → Madrid → Palma de Mallorca
Timetable, Madrid time
22:20UX 1160 from Lisbon at the gatealso AM 6829, AD 7853
20:15EY 4310 to Palma de Mallorca leaves the gatealso UX 6051, AM 6872, AD 6960
21 h 55 apart on the timetable, overnight
EY 4310 leaves 21 h 55 after UX 1160 arrives on the timetable: more than half a day, so not a connection we count.