B6 316 then QR 702 at JFK
San Francisco → New York → Doha
Timetable, New York time
21:06B6 316 from San Francisco at the gate
21:00QR 702 to Doha leaves the gate
23 h 54 apart on the timetable, overnight
QR 702 leaves 23 h 54 after B6 316 arrives on the timetable: more than half a day, so not a connection we count.