KJ 242 then AA 4005 at O'Hare
Anchorage → Chicago → Madison
Timetable, Chicago time
23:55KJ 242 from Anchorage at the gate
19:00AA 4005 to Madison leaves the gate
19 h 05 apart on the timetable, overnight
AA 4005 leaves 19 h 05 after KJ 242 arrives on the timetable: more than half a day, so not a connection we count.