U2 3217 then QR 3619 at Barcelona
Edinburgh → Barcelona → Bari
Timetable, Barcelona time
18:40U2 3217 from Edinburgh at the gate
11:40QR 3619 to Bari leaves the gate
17 h apart on the timetable, overnight
QR 3619 leaves 17 h after U2 3217 arrives on the timetable: more than half a day, so not a connection we count.