AV 8598 then JA 5342 at Bogotá
Pasto → Bogota → Barranquilla
Timetable, Bogota time
15:20AV 8598 from Pasto at the gate
13:30JA 5342 to Barranquilla leaves the gate
22 h 10 apart on the timetable, overnight
JA 5342 leaves 22 h 10 after AV 8598 arrives on the timetable: more than half a day, so not a connection we count.