AA 2158 then SQ 1491 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
22:56SQ 1491 to New York JFK leaves the gate
22 h 26 apart on the timetable
SQ 1491 leaves 22 h 26 after AA 2158 arrives on the timetable: more than half a day, so not a connection we count.