FR 11 then FR 1901 at Dublin
Madrid → Dublin → Krakow
Timetable, Dublin time
19:55FR 11 from Madrid at the gate
16:00FR 1901 to Krakow leaves the gate
20 h 05 apart on the timetable, overnight
FR 1901 leaves 20 h 05 after FR 11 arrives on the timetable: more than half a day, so not a connection we count.