JA 8751 then JA 7005 at Lima
Medellín → Lima → Arequipa
Timetable, Lima time
13:50JA 8751 from Medellín at the gate
10:40JA 7005 to Arequipa leaves the gate
20 h 50 apart on the timetable, overnight
JA 7005 leaves 20 h 50 after JA 8751 arrives on the timetable: more than half a day, so not a connection we count.