UA 1791 then B6 1034 at San Francisco
San Diego → San Francisco → Boston
Timetable, San Francisco time
11:25UA 1791 from San Diego at the gatealso AZ 4448, VA 8583
06:00B6 1034 to Boston leaves the gatealso EY 8006, EY 8261
18 h 35 apart on the timetable, overnight
B6 1034 leaves 18 h 35 after UA 1791 arrives on the timetable: more than half a day, so not a connection we count.