AA 8574 then AA 8651 at Madrid
Porto → Madrid → Barcelona
Timetable, Madrid time
14:45AA 8574 from Porto at the gate
18:00AA 8651 to Barcelona leaves the gate
3 h 15 apart on the timetable
The last days
AA 8574 and AA 8651 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.