QR 3515 then FR 7157 at Madrid
Barcelona → Madrid → Dublin
Timetable, Madrid time
17:55QR 3515 from Barcelona at the gate
07:50FR 7157 to Dublin leaves the gate
13 h 55 apart on the timetable, overnight
FR 7157 leaves 13 h 55 after QR 3515 arrives on the timetable: more than half a day, so not a connection we count.