AA 9866 then UA 5790 at O'Hare
Bloomington-Normal → Chicago → St Louis
Timetable, Chicago time
13:11AA 9866 from Bloomington-Normal at the gate
13:00UA 5790 to St Louis leaves the gate
23 h 49 apart on the timetable, overnight
UA 5790 leaves 23 h 49 after AA 9866 arrives on the timetable: more than half a day, so not a connection we count.