OS 640 then FR 689 at Vienna
Budapest → Vienna → Madrid
Timetable, Vienna time
08:40OS 640 from Budapest at the gate
06:00FR 689 to Madrid leaves the gate
21 h 20 apart on the timetable, overnight
FR 689 leaves 21 h 20 after OS 640 arrives on the timetable: more than half a day, so not a connection we count.