SQ 387 then QR 3648 at Barcelona
Madrid → Barcelona → Lyon
Timetable, Barcelona time
11:15SQ 387 from Madrid at the gate
07:20QR 3648 to Lyon leaves the gatealso IB 5464, LL 5464, VY 8124
20 h 05 apart on the timetable, overnight
QR 3648 leaves 20 h 05 after SQ 387 arrives on the timetable: more than half a day, so not a connection we count.