FR 11 then FR 5151 at Dublin
Madrid → Dublin → Glasgow
Timetable, Dublin time
23:35FR 11 from Madrid at the gate
21:15FR 5151 to Glasgow leaves the gate
21 h 40 apart on the timetable, overnight
FR 5151 leaves 21 h 40 after FR 11 arrives on the timetable: more than half a day, so not a connection we count.