FR 689 then FR 5897 at Madrid
Vienna → Madrid → Torino
Timetable, Madrid time
19:00FR 689 from Vienna at the gate
10:10FR 5897 to Torino leaves the gate
15 h 10 apart on the timetable, overnight
FR 5897 leaves 15 h 10 after FR 689 arrives on the timetable: more than half a day, so not a connection we count.