UA 1561 then QF 3654 at San Francisco
Denver → San Francisco → New York JFK
Timetable, San Francisco time
13:12UA 1561 from Denver at the gatealso AC 3614, VA 8349, NZ 9074
07:00QF 3654 to New York JFK leaves the gate
17 h 48 apart on the timetable, overnight
QF 3654 leaves 17 h 48 after UA 1561 arrives on the timetable: more than half a day, so not a connection we count.