AV 182 then FR 5897 at Madrid
Bogota → Madrid → Torino
Timetable, Madrid time
08:10AV 182 from Bogota at the gate
07:20FR 5897 to Torino leaves the gate
23 h 10 apart on the timetable, overnight
FR 5897 leaves 23 h 10 after AV 182 arrives on the timetable: more than half a day, so not a connection we count.