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