AA 597 then GG 9723 at O'Hare
San Francisco → Chicago → Seoul
Timetable, Chicago time
23:55AA 597 from San Francisco at the gate
23:00GG 9723 to Seoul leaves the gate
23 h 05 apart on the timetable, overnight
GG 9723 leaves 23 h 05 after AA 597 arrives on the timetable: more than half a day, so not a connection we count.