UA 368 then UA 5194 at O'Hare
San Francisco → Chicago → Sioux City
Timetable, Chicago time
05:47UA 368 from San Francisco at the gate
00:00UA 5194 to Sioux City leaves the gate
18 h 13 apart on the timetable, overnight
UA 5194 leaves 18 h 13 after UA 368 arrives on the timetable: more than half a day, so not a connection we count.