UA 548 then QF 3654 at San Francisco
Newark → San Francisco → New York JFK
Timetable, San Francisco time
13:38UA 548 from Newark at the gatealso VA 8166, NZ 9128
07:00QF 3654 to New York JFK leaves the gate
17 h 22 apart on the timetable, overnight
QF 3654 leaves 17 h 22 after UA 548 arrives on the timetable: more than half a day, so not a connection we count.