UA 5851 then AA 6253 at Phoenix
Lagos → Phoenix → Medford
Timetable, Phoenix time
12:56UA 5851 from Lagos at the gate
11:13AA 6253 to Medford leaves the gate
22 h 17 apart on the timetable, overnight
AA 6253 leaves 22 h 17 after UA 5851 arrives on the timetable: more than half a day, so not a connection we count.