AS 3039 then SQ 1491 at San Francisco
Santa Ana → San Francisco → New York JFK
Timetable, San Francisco time
13:24AS 3039 from Santa Ana at the gate
06:00SQ 1491 to New York JFK leaves the gate
16 h 36 apart on the timetable, overnight
SQ 1491 leaves 16 h 36 after AS 3039 arrives on the timetable: more than half a day, so not a connection we count.