FR 5218 then FR 7156 at Dublin
Lublin → Dublin → Madrid
Timetable, Dublin time
20:35FR 5218 from Lublin at the gate
17:05FR 7156 to Madrid leaves the gate
20 h 30 apart on the timetable, overnight
FR 7156 leaves 20 h 30 after FR 5218 arrives on the timetable: more than half a day, so not a connection we count.