AV 6975 then AY 5797 at San Francisco
Vancouver → San Francisco → New York JFK
Timetable, San Francisco time
13:51AV 6975 from Vancouver at the gate
12:25AY 5797 to New York JFK leaves the gate
22 h 34 apart on the timetable, overnight
AY 5797 leaves 22 h 34 after AV 6975 arrives on the timetable: more than half a day, so not a connection we count.