FR 815 then FR 5418 at Dublin
Edinburgh → Dublin → Berlin
Timetable, Dublin time
20:25FR 815 from Edinburgh at the gate
18:40FR 5418 to Berlin leaves the gate
22 h 15 apart on the timetable, overnight
FR 5418 leaves 22 h 15 after FR 815 arrives on the timetable: more than half a day, so not a connection we count.