EC 7174 then FR 8394 at Barcelona
Berlin → Barcelona → Budapest
Timetable, Barcelona time
18:35EC 7174 from Berlin at the gate
09:15FR 8394 to Budapest leaves the gate
14 h 40 apart on the timetable, overnight
FR 8394 leaves 14 h 40 after EC 7174 arrives on the timetable: more than half a day, so not a connection we count.