UA 271 then QF 3654 at San Francisco
Washington → San Francisco → New York JFK
Timetable, San Francisco time
12:32UA 271 from Washington at the gatealso NZ 9180
07:00QF 3654 to New York JFK leaves the gate
18 h 28 apart on the timetable, overnight
QF 3654 leaves 18 h 28 after UA 271 arrives on the timetable: more than half a day, so not a connection we count.