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