FR 607 then FR 5071 at Copenhagen
Madrid → Copenhagen → Dublin
Timetable, Copenhagen time
14:00FR 607 from Madrid at the gate
06:10FR 5071 to Dublin leaves the gate
16 h 10 apart on the timetable, overnight
FR 5071 leaves 16 h 10 after FR 607 arrives on the timetable: more than half a day, so not a connection we count.