UA 5323 then SQ 1463 at San Francisco
Sacramento → San Francisco → New York JFK
Timetable, San Francisco time
18:57UA 5323 from Sacramento at the gate
15:25SQ 1463 to New York JFK leaves the gate
20 h 28 apart on the timetable, overnight
SQ 1463 leaves 20 h 28 after UA 5323 arrives on the timetable: more than half a day, so not a connection we count.