GA 866 then NH 8508 at Bangkok
Jakarta → Bangkok → Tokyo Narita
Timetable, Bangkok time
13:10GA 866 from Jakarta at the gate
05:11NH 8508 to Tokyo Narita leaves the gate
16 h 01 apart on the timetable, overnight
NH 8508 leaves 16 h 01 after GA 866 arrives on the timetable: more than half a day, so not a connection we count.