FR 5712 then UX 9164 at Madrid
Budapest → Madrid → Gran Canaria
Timetable, Madrid time
01:10FR 5712 from Budapest at the gate
15:05UX 9164 to Gran Canaria leaves the gate
13 h 55 apart on the timetable
UX 9164 leaves 13 h 55 after FR 5712 arrives on the timetable: more than half a day, so not a connection we count.