QF 3657 then AA 3166 at San Francisco
New York JFK → San Francisco → Philadelphia
Timetable, San Francisco time
23:59QF 3657 from New York JFK at the gate
21:31AA 3166 to Philadelphia leaves the gatealso QF 3322, QF 4594, FJ 5039
21 h 32 apart on the timetable, overnight
AA 3166 leaves 21 h 32 after QF 3657 arrives on the timetable: more than half a day, so not a connection we count.