QR 3686 then IB 418 at Barcelona
Lyon → Barcelona → Madrid
Timetable, Barcelona time
18:05QR 3686 from Lyon at the gatealso IB 5469, VY 8129
18:00IB 418 to Madrid leaves the gatealso IB 418S, LA 1585, CX 1836, LL 3018, VY 5082, AV 6019, QR 6562
23 h 55 apart on the timetable, overnight
IB 418 leaves 23 h 55 after QR 3686 arrives on the timetable: more than half a day, so not a connection we count.