MU 8665 then UA 5722 at San Francisco
New York JFK → San Francisco → Bakersfield
Timetable, San Francisco time
22:42MU 8665 from New York JFK at the gate
14:10UA 5722 to Bakersfield leaves the gatealso NZ 9159
15 h 28 apart on the timetable, overnight
UA 5722 leaves 15 h 28 after MU 8665 arrives on the timetable: more than half a day, so not a connection we count.