AV 9237 then AV 5006 at Bogotá
Santa Marta → Bogota → Quito
Timetable, Bogota time
23:40AV 9237 from Santa Marta at the gate
23:30AV 5006 to Quito leaves the gate
23 h 50 apart on the timetable, overnight
AV 5006 leaves 23 h 50 after AV 9237 arrives on the timetable: more than half a day, so not a connection we count.