QR 20 then AA 597 at O'Hare
Doha → Chicago → San Francisco
Timetable, Chicago time
13:42QR 20 from Doha at the gate
13:24AA 597 to San Francisco leaves the gate
23 h 42 apart on the timetable, overnight
AA 597 leaves 23 h 42 after QR 20 arrives on the timetable: more than half a day, so not a connection we count.