QR 2968 then AA 1400 at San Francisco
Santa Ana → San Francisco → Miami
Timetable, San Francisco time
22:34QR 2968 from Santa Ana at the gate
21:46AA 1400 to Miami leaves the gate
23 h 12 apart on the timetable, overnight
AA 1400 leaves 23 h 12 after QR 2968 arrives on the timetable: more than half a day, so not a connection we count.