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