QF 3657 then UA 1334 at San Francisco
New York JFK → San Francisco → Toronto
Timetable, San Francisco time
23:59QF 3657 from New York JFK at the gate
23:29UA 1334 to Toronto leaves the gatealso AC 4067
23 h 30 apart on the timetable, overnight
UA 1334 leaves 23 h 30 after QF 3657 arrives on the timetable: more than half a day, so not a connection we count.