AA 985 then UA 5566 at O'Hare
Phoenix → Chicago → Pittsburgh
Timetable, Chicago time
13:40AA 985 from Phoenix at the gate
12:48UA 5566 to Pittsburgh leaves the gate
23 h 08 apart on the timetable, overnight
UA 5566 leaves 23 h 08 after AA 985 arrives on the timetable: more than half a day, so not a connection we count.