UX 1516 then FR 494 at Madrid
Munich → Madrid → Dublin
Timetable, Madrid time
13:35UX 1516 from Munich at the gate
10:10FR 494 to Dublin leaves the gate
20 h 35 apart on the timetable, overnight
FR 494 leaves 20 h 35 after UX 1516 arrives on the timetable: more than half a day, so not a connection we count.