UA 3851 then AA 148 at San Francisco
Rio De Janeiro → San Francisco → New York JFK
Timetable, San Francisco time
17:41UA 3851 from Rio De Janeiro at the gate
15:32AA 148 to New York JFK leaves the gatealso QF 3205, FJ 5007
21 h 51 apart on the timetable, overnight
AA 148 leaves 21 h 51 after UA 3851 arrives on the timetable: more than half a day, so not a connection we count.