UA 3851 then UA 371 at Houston
Seoul → Houston → San Francisco
Timetable, Houston time
17:54UA 3851 from Seoul at the gate
17:35UA 371 to San Francisco leaves the gate
23 h 41 apart on the timetable, overnight
UA 371 leaves 23 h 41 after UA 3851 arrives on the timetable: more than half a day, so not a connection we count.