FR 7958 then FR 6330 at Barcelona
Cork → Barcelona → Sofia
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
17:15FR 6330 to Sofia leaves the gate
18 h 20 apart on the timetable, overnight
FR 6330 leaves 18 h 20 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.