QR 5 then UA 3906 at San Francisco
Doha → San Francisco → Newark
Timetable, San Francisco time
11:58QR 5 from Doha at the gate
07:00UA 3906 to Newark leaves the gate
19 h 02 apart on the timetable, overnight
UA 3906 leaves 19 h 02 after QR 5 arrives on the timetable: more than half a day, so not a connection we count.