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