FR 6266 then FR 9015 at Barcelona
Edinburgh → Barcelona → London Stansted
Timetable, Barcelona time
16:50FR 6266 from Edinburgh at the gate
07:30FR 9015 to London Stansted leaves the gate
14 h 40 apart on the timetable, overnight
FR 9015 leaves 14 h 40 after FR 6266 arrives on the timetable: more than half a day, so not a connection we count.