UX 7311 then FR 404 at Madrid
Vigo → Madrid → Palma de Mallorca
Timetable, Madrid time
09:40UX 7311 from Vigo at the gate
07:55FR 404 to Palma de Mallorca leaves the gate
22 h 15 apart on the timetable, overnight
FR 404 leaves 22 h 15 after UX 7311 arrives on the timetable: more than half a day, so not a connection we count.