UA 375 then UA 5901 at O'Hare
Boston → Chicago → St Louis
Timetable, Chicago time
15:32UA 375 from Boston at the gate
15:20UA 5901 to St Louis leaves the gate
23 h 48 apart on the timetable, overnight
UA 5901 leaves 23 h 48 after UA 375 arrives on the timetable: more than half a day, so not a connection we count.