IB 258 then QR 3538 at Madrid
Tocumen → Madrid → Barcelona
Timetable, Madrid time
10:40IB 258 from Tocumen at the gate
18:30QR 3538 to Barcelona leaves the gate
7 h 50 apart on the timetable
The last days
IB 258 and QR 3538 weren’t both flown 15 min to 12 h apart in the last 21 days.
Statistics from past flights, not live flight information. Always check times and your connection with your airline, and don’t base travel or booking decisions on these numbers.