AA 8651 then QR 3566 at Barcelona
Madrid → Barcelona → Rome
Timetable, Barcelona time
19:15AA 8651 from Madrid at the gate
10:05QR 3566 to Rome leaves the gate
14 h 50 apart on the timetable, overnight
QR 3566 leaves 14 h 50 after AA 8651 arrives on the timetable: more than half a day, so not a connection we count.