FR 9471 then FR 5993 at Madrid
Pisa → Madrid → London Stansted
Timetable, Madrid time
12:25FR 9471 from Pisa at the gate
06:55FR 5993 to London Stansted leaves the gate
18 h 30 apart on the timetable, overnight
FR 5993 leaves 18 h 30 after FR 9471 arrives on the timetable: more than half a day, so not a connection we count.