AA 522 then UA 5522 at O'Hare
Washington National → Chicago → Kansas City
Timetable, Chicago time
10:07AA 522 from Washington National at the gate
08:40UA 5522 to Kansas City leaves the gate
22 h 33 apart on the timetable, overnight
UA 5522 leaves 22 h 33 after AA 522 arrives on the timetable: more than half a day, so not a connection we count.