AA 6477 then UA 4789 at O'Hare
Kansas City → Chicago → Fargo
Timetable, Chicago time
20:07AA 6477 from Kansas City at the gate
19:45UA 4789 to Fargo leaves the gate
23 h 38 apart on the timetable, overnight
UA 4789 leaves 23 h 38 after AA 6477 arrives on the timetable: more than half a day, so not a connection we count.