FR 5419 then FR 7156 at Dublin
Berlin → Dublin → Madrid
Timetable, Dublin time
23:45FR 5419 from Berlin at the gate
20:10FR 7156 to Madrid leaves the gate
20 h 25 apart on the timetable, overnight
FR 7156 leaves 20 h 25 after FR 5419 arrives on the timetable: more than half a day, so not a connection we count.