IB 834 then VY 1009 at Madrid
Athens → Madrid → Barcelona
Timetable, Madrid time
18:45IB 834 from Athens at the gatealso LA 1649, VY 5175, AT 5305
18:35VY 1009 to Barcelona leaves the gatealso QR 5530, IB 5993, LL 5993
23 h 50 apart on the timetable, overnight
VY 1009 leaves 23 h 50 after IB 834 arrives on the timetable: more than half a day, so not a connection we count.