SQ 1462 then QR 8796 at San Francisco
New York JFK → San Francisco → San Diego
Timetable, San Francisco time
17:40SQ 1462 from New York JFK at the gate
11:53QR 8796 to San Diego leaves the gate
18 h 13 apart on the timetable, overnight
QR 8796 leaves 18 h 13 after SQ 1462 arrives on the timetable: more than half a day, so not a connection we count.