UX 122 then FR 572 at Madrid
Cordoba → Madrid → Porto
Timetable, Madrid time
04:45UX 122 from Cordoba at the gate
22:40FR 572 to Porto leaves the gate
17 h 55 apart on the timetable
FR 572 leaves 17 h 55 after UX 122 arrives on the timetable: more than half a day, so not a connection we count.