AA 8651 then FR 3976 at Barcelona
Madrid → Barcelona → Dublin
Timetable, Barcelona time
19:15AA 8651 from Madrid at the gate
17:15FR 3976 to Dublin leaves the gate
22 h apart on the timetable, overnight
FR 3976 leaves 22 h after AA 8651 arrives on the timetable: more than half a day, so not a connection we count.