QR 3717 then VY 1008 at Barcelona
Rome → Barcelona → Madrid
Timetable, Barcelona time
19:05QR 3717 from Rome at the gatealso IB 5343, LL 5343, VY 6013
17:30VY 1008 to Madrid leaves the gatealso QR 5529, IB 5992, LL 5992
22 h 25 apart on the timetable, overnight
VY 1008 leaves 22 h 25 after QR 3717 arrives on the timetable: more than half a day, so not a connection we count.