FR 97 then FR 5217 at Dublin
Prague → Dublin → Lublin
Timetable, Dublin time
23:55FR 97 from Prague at the gate
17:35FR 5217 to Lublin leaves the gate
17 h 40 apart on the timetable, overnight
FR 5217 leaves 17 h 40 after FR 97 arrives on the timetable: more than half a day, so not a connection we count.