FR 59 then FR 6874 at Barcelona
Napoli → Barcelona → Dublin
Timetable, Barcelona time
12:50FR 59 from Napoli at the gate
10:45FR 6874 to Dublin leaves the gate
21 h 55 apart on the timetable, overnight
FR 6874 leaves 21 h 55 after FR 59 arrives on the timetable: more than half a day, so not a connection we count.