FR 3813 then FR 690 at Madrid
Bologna → Madrid → Vienna
Timetable, Madrid time
21:35FR 3813 from Bologna at the gate
19:35FR 690 to Vienna leaves the gate
22 h apart on the timetable, overnight
FR 690 leaves 22 h after FR 3813 arrives on the timetable: more than half a day, so not a connection we count.