EC 7174 then QR 3771 at Barcelona
Berlin → Barcelona → Porto
Timetable, Barcelona time
23:05EC 7174 from Berlin at the gate
18:35QR 3771 to Porto leaves the gatealso IB 5094, LL 5094
19 h 30 apart on the timetable, overnight
QR 3771 leaves 19 h 30 after EC 7174 arrives on the timetable: more than half a day, so not a connection we count.