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