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