QF 3657 then CZ 1634 at San Francisco
New York JFK → San Francisco → Chicago O'Hare
Timetable, San Francisco time
23:59QF 3657 from New York JFK at the gate
23:39CZ 1634 to Chicago O'Hare leaves the gate
23 h 40 apart on the timetable, overnight
CZ 1634 leaves 23 h 40 after QF 3657 arrives on the timetable: more than half a day, so not a connection we count.