AA 8713 then EC 1704 at Madrid
Dublin → Madrid → Nice
Timetable, Madrid time
13:50AA 8713 from Dublin at the gate
13:10EC 1704 to Nice leaves the gate
23 h 20 apart on the timetable, overnight
EC 1704 leaves 23 h 20 after AA 8713 arrives on the timetable: more than half a day, so not a connection we count.