QR 3666 then VY 1074 at Barcelona
Salerno → Barcelona → Berlin
Timetable, Barcelona time
00:30QR 3666 from Salerno at the gatealso LL 5953, VY 8359
18:00VY 1074 to Berlin leaves the gatealso IB 5018, LL 5018
17 h 30 apart on the timetable
VY 1074 leaves 17 h 30 after QR 3666 arrives on the timetable: more than half a day, so not a connection we count.