JA 5123 then IB 152 at Bogotá
Medellín → Bogota → Madrid
Timetable, Bogota time
23:00JA 5123 from Medellín at the gate
18:15IB 152 to Madrid leaves the gate
19 h 15 apart on the timetable, overnight
IB 152 leaves 19 h 15 after JA 5123 arrives on the timetable: more than half a day, so not a connection we count.