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