FR 2052 then UX 9164 at Madrid
Palma de Mallorca → Madrid → Gran Canaria
Timetable, Madrid time
16:50FR 2052 from Palma de Mallorca at the gate
15:05UX 9164 to Gran Canaria leaves the gate
22 h 15 apart on the timetable, overnight
UX 9164 leaves 22 h 15 after FR 2052 arrives on the timetable: more than half a day, so not a connection we count.