WN 576 then SQ 1491 at San Francisco
Phoenix → San Francisco → New York JFK
Timetable, San Francisco time
15:20WN 576 from Phoenix at the gate
06:00SQ 1491 to New York JFK leaves the gate
14 h 40 apart on the timetable, overnight
SQ 1491 leaves 14 h 40 after WN 576 arrives on the timetable: more than half a day, so not a connection we count.