FR 3040 then W6 4406 at Barcelona
Prague → Barcelona → Sofia
Timetable, Barcelona time
22:40FR 3040 from Prague at the gate
19:40W6 4406 to Sofia leaves the gate
21 h apart on the timetable, overnight
W6 4406 leaves 21 h after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.