W6 2377 then EC 7694 at Barcelona
Budapest → Barcelona → Lisbon
Timetable, Barcelona time
20:05W6 2377 from Budapest at the gate
15:30EC 7694 to Lisbon leaves the gate
19 h 25 apart on the timetable, overnight
EC 7694 leaves 19 h 25 after W6 2377 arrives on the timetable: more than half a day, so not a connection we count.