FR 5219 then FR 8217 at Barcelona
Bologna → Barcelona → London Stansted
Timetable, Barcelona time
14:30FR 5219 from Bologna at the gate
13:40FR 8217 to London Stansted leaves the gate
23 h 10 apart on the timetable, overnight
FR 8217 leaves 23 h 10 after FR 5219 arrives on the timetable: more than half a day, so not a connection we count.