QR 3774 then IB 414 at Barcelona
Torino → Barcelona → Madrid
Timetable, Barcelona time
16:25QR 3774 from Torino at the gatealso IB 5811, LL 5811, VY 6129
15:05IB 414 to Madrid leaves the gatealso IB 414S, LA 1557, LL 3014, VY 5062, QR 6557, BA 7082, CZ 7324
22 h 40 apart on the timetable, overnight
IB 414 leaves 22 h 40 after QR 3774 arrives on the timetable: more than half a day, so not a connection we count.