SQ 1462 then QR 738 at San Francisco
New York JFK → San Francisco → Doha
Timetable, San Francisco time
17:40SQ 1462 from New York JFK at the gate
15:50QR 738 to Doha leaves the gate
22 h 10 apart on the timetable, overnight
QR 738 leaves 22 h 10 after SQ 1462 arrives on the timetable: more than half a day, so not a connection we count.