FR 5898 then IB 785 at Madrid
Torino → Madrid → Berlin
Timetable, Madrid time
17:35FR 5898 from Torino at the gate
15:55IB 785 to Berlin leaves the gatealso VY 5166, AA 8738
22 h 20 apart on the timetable, overnight
IB 785 leaves 22 h 20 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.