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