IB 2297 then EY 4310 at Madrid
Melilla → Madrid → Palma de Mallorca
Timetable, Madrid time
21:05IB 2297 from Melilla at the gatealso QR 5377, VY 5697
20:15EY 4310 to Palma de Mallorca leaves the gatealso UX 6051, AM 6872, AD 6960
23 h 10 apart on the timetable, overnight
EY 4310 leaves 23 h 10 after IB 2297 arrives on the timetable: more than half a day, so not a connection we count.