QR 3522 then FR 3976 at Barcelona
Málaga → Barcelona → Dublin
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
19:40FR 3976 to Dublin leaves the gate
18 h 20 apart on the timetable
FR 3976 leaves 18 h 20 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.