AA 2158 then QF 3654 at San Francisco
Chicago O'Hare → San Francisco → New York JFK
Timetable, San Francisco time
00:30AA 2158 from Chicago O'Hare at the gatealso AY 4088, RJ 7305
23:00QF 3654 to New York JFK leaves the gate
22 h 30 apart on the timetable
QF 3654 leaves 22 h 30 after AA 2158 arrives on the timetable: more than half a day, so not a connection we count.