FR 5898 then IB 1243 at Madrid
Torino → Madrid → Bologna
Timetable, Madrid time
23:10FR 5898 from Torino at the gate
21:20IB 1243 to Bologna leaves the gatealso LA 1730, VY 5554, QR 8085
22 h 10 apart on the timetable, overnight
IB 1243 leaves 22 h 10 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.