FR 5898 then AD 7271 at Madrid
Torino → Madrid → Lisbon
Timetable, Madrid time
17:35FR 5898 from Torino at the gate
12:10AD 7271 to Lisbon leaves the gatealso S4 8699
18 h 35 apart on the timetable, overnight
AD 7271 leaves 18 h 35 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.