AA 3162 then GG 9723 at O'Hare
New York JFK → Chicago → Tokyo Narita
Timetable, Chicago time
16:55AA 3162 from New York JFK at the gate
10:30GG 9723 to Tokyo Narita leaves the gate
17 h 35 apart on the timetable, overnight
GG 9723 leaves 17 h 35 after AA 3162 arrives on the timetable: more than half a day, so not a connection we count.