AF 8974 then QR 8796 at San Francisco
Salt Lake City → San Francisco → San Diego
Timetable, San Francisco time
16:14AF 8974 from Salt Lake City at the gate
11:53QR 8796 to San Diego leaves the gate
19 h 39 apart on the timetable, overnight
QR 8796 leaves 19 h 39 after AF 8974 arrives on the timetable: more than half a day, so not a connection we count.