JA 5171 then G3 6779 at Bogotá
Santa Marta → Bogota → Riohacha
Timetable, Bogota time
14:35JA 5171 from Santa Marta at the gate
11:55G3 6779 to Riohacha leaves the gate
21 h 20 apart on the timetable, overnight
G3 6779 leaves 21 h 20 after JA 5171 arrives on the timetable: more than half a day, so not a connection we count.