QR 3522 then IB 2627 at Barcelona
Málaga → Barcelona → New York JFK
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
18:45IB 2627 to New York JFK leaves the gatealso LL 2627, QR 5372, AY 5393, AA 8846
17 h 25 apart on the timetable
IB 2627 leaves 17 h 25 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.