UA 5902 then UA 5194 at O'Hare
Madison → Chicago → Sioux City
Timetable, Chicago time
06:20UA 5902 from Madison at the gate
00:00UA 5194 to Sioux City leaves the gate
17 h 40 apart on the timetable, overnight
UA 5194 leaves 17 h 40 after UA 5902 arrives on the timetable: more than half a day, so not a connection we count.