FR 835 then QR 3623 at Barcelona
Vilnius → Barcelona → Salerno
Timetable, Barcelona time
15:30FR 835 from Vilnius at the gate
07:10QR 3623 to Salerno leaves the gate
15 h 40 apart on the timetable, overnight
QR 3623 leaves 15 h 40 after FR 835 arrives on the timetable: more than half a day, so not a connection we count.