AA 66 then QR 3627 at Barcelona
New York JFK → Barcelona → Palma de Mallorca
Timetable, Barcelona time
10:25AA 66 from New York JFK at the gatealso BA 1556, AY 3820, IB 4004
08:20QR 3627 to Palma de Mallorca leaves the gatealso VY 3914, LL 5304
21 h 55 apart on the timetable, overnight
QR 3627 leaves 21 h 55 after AA 66 arrives on the timetable: more than half a day, so not a connection we count.