FR 689 then FR 9472 at Madrid
Vienna → Madrid → Pisa
Timetable, Madrid time
09:10FR 689 from Vienna at the gate
06:15FR 9472 to Pisa leaves the gate
21 h 05 apart on the timetable, overnight
FR 9472 leaves 21 h 05 after FR 689 arrives on the timetable: more than half a day, so not a connection we count.