QF 3657 then UA 412 at San Francisco
New York JFK → San Francisco → Mexico City
Timetable, San Francisco time
23:59QF 3657 from New York JFK at the gate
22:48UA 412 to Mexico City leaves the gatealso AC 5025
22 h 49 apart on the timetable, overnight
UA 412 leaves 22 h 49 after QF 3657 arrives on the timetable: more than half a day, so not a connection we count.