SQ 1539 then QR 9331 at San Francisco
Boston → San Francisco → New York JFK
Timetable, San Francisco time
09:40SQ 1539 from Boston at the gate
06:50QR 9331 to New York JFK leaves the gate
21 h 10 apart on the timetable, overnight
QR 9331 leaves 21 h 10 after SQ 1539 arrives on the timetable: more than half a day, so not a connection we count.