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