IB 392 then FR 5897 at Madrid
Doha → Madrid → Torino
Timetable, Madrid time
09:05IB 392 from Doha at the gate
08:00FR 5897 to Torino leaves the gate
22 h 55 apart on the timetable, overnight
FR 5897 leaves 22 h 55 after IB 392 arrives on the timetable: more than half a day, so not a connection we count.