FR 817 then FR 152 at Dublin
Edinburgh → Dublin → Leeds
Timetable, Dublin time
13:15FR 817 from Edinburgh at the gate
07:25FR 152 to Leeds leaves the gate
18 h 10 apart on the timetable, overnight
FR 152 leaves 18 h 10 after FR 817 arrives on the timetable: more than half a day, so not a connection we count.