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