WN 4187 then AA 3794 at Phoenix
St Louis → Phoenix → Bakersfield
Timetable, Phoenix time
12:00WN 4187 from St Louis at the gate
11:40AA 3794 to Bakersfield leaves the gate
23 h 40 apart on the timetable, overnight
AA 3794 leaves 23 h 40 after WN 4187 arrives on the timetable: more than half a day, so not a connection we count.