FR 5898 then VY 1009 at Madrid
Torino → Madrid → Barcelona
Timetable, Madrid time
23:10FR 5898 from Torino at the gate
18:35VY 1009 to Barcelona leaves the gatealso QR 5530, IB 5993, LL 5993
19 h 25 apart on the timetable, overnight
VY 1009 leaves 19 h 25 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.