QR 3717 then IB 414 at Barcelona
Rome → Barcelona → Madrid
Timetable, Barcelona time
19:55QR 3717 from Rome at the gatealso IB 5343, LL 5343, VY 6013
15:05IB 414 to Madrid leaves the gatealso IB 414S, LA 1557, LL 3014, VY 5062, QR 6557, BA 7082, CZ 7324
19 h 10 apart on the timetable, overnight
IB 414 leaves 19 h 10 after QR 3717 arrives on the timetable: more than half a day, so not a connection we count.