FR 5998 then IB 797 at Madrid
London Stansted → Madrid → Vienna
Timetable, Madrid time
20:50FR 5998 from London Stansted at the gate
19:55IB 797 to Vienna leaves the gate
23 h 05 apart on the timetable, overnight
IB 797 leaves 23 h 05 after FR 5998 arrives on the timetable: more than half a day, so not a connection we count.