UA 751 then AA 166 at San Francisco
Portland (Oregon) → San Francisco → New York JFK
Timetable, San Francisco time
15:15UA 751 from Portland (Oregon) at the gatealso CM 1419, AC 3338, VA 8585, NZ 9358
13:34AA 166 to New York JFK leaves the gatealso CZ 1617, QF 3211, BA 5604
22 h 19 apart on the timetable, overnight
AA 166 leaves 22 h 19 after UA 751 arrives on the timetable: more than half a day, so not a connection we count.