SQ 387 then EC 7197 at Barcelona
Madrid → Barcelona → Birmingham (UK)
Timetable, Barcelona time
11:15SQ 387 from Madrid at the gate
10:55EC 7197 to Birmingham (UK) leaves the gate
23 h 40 apart on the timetable, overnight
EC 7197 leaves 23 h 40 after SQ 387 arrives on the timetable: more than half a day, so not a connection we count.