AZ 58 then FR 494 at Madrid
Rome → Madrid → Dublin
Timetable, Madrid time
10:50AZ 58 from Rome at the gate
10:10FR 494 to Dublin leaves the gate
23 h 20 apart on the timetable, overnight
FR 494 leaves 23 h 20 after AZ 58 arrives on the timetable: more than half a day, so not a connection we count.