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