FR 2064 then FR 5997 at Madrid
Palma de Mallorca → Madrid → London Stansted
Timetable, Madrid time
23:00FR 2064 from Palma de Mallorca at the gate
18:55FR 5997 to London Stansted leaves the gate
19 h 55 apart on the timetable, overnight
FR 5997 leaves 19 h 55 after FR 2064 arrives on the timetable: more than half a day, so not a connection we count.