FR 813 then FR 495 at Dublin
Edinburgh → Dublin → Madrid
Timetable, Dublin time
18:15FR 813 from Edinburgh at the gate
10:00FR 495 to Madrid leaves the gate
15 h 45 apart on the timetable, overnight
FR 495 leaves 15 h 45 after FR 813 arrives on the timetable: more than half a day, so not a connection we count.