LA 9971 then JA 7990 at Lima
Quito → Lima → Medellín
Timetable, Lima time
20:50LA 9971 from Quito at the gate
19:55JA 7990 to Medellín leaves the gate
23 h 05 apart on the timetable, overnight
JA 7990 leaves 23 h 05 after LA 9971 arrives on the timetable: more than half a day, so not a connection we count.