UA 3874 then UA 5985 at O'Hare
Chicago → Chicago → Cleveland
Timetable, Chicago time
01:21UA 3874 from Chicago at the gate
16:27UA 5985 to Cleveland leaves the gate
15 h 06 apart on the timetable
UA 5985 leaves 15 h 06 after UA 3874 arrives on the timetable: more than half a day, so not a connection we count.