UA 3851 then UA 5763 at San Francisco
Rio De Janeiro → San Francisco → Ontario
Timetable, San Francisco time
17:41UA 3851 from Rio De Janeiro at the gate
16:19UA 5763 to Ontario leaves the gate
22 h 38 apart on the timetable, overnight
UA 5763 leaves 22 h 38 after UA 3851 arrives on the timetable: more than half a day, so not a connection we count.