FR 5994 then AT 5387 at Madrid
London Stansted → Madrid → Palma de Mallorca
Timetable, Madrid time
21:05FR 5994 from London Stansted at the gate
20:30AT 5387 to Palma de Mallorca leaves the gate
23 h 25 apart on the timetable, overnight
AT 5387 leaves 23 h 25 after FR 5994 arrives on the timetable: more than half a day, so not a connection we count.