QR 3502 then FR 8217 at Barcelona
Málaga → Barcelona → London Stansted
Timetable, Barcelona time
21:10QR 3502 from Málaga at the gate
13:40FR 8217 to London Stansted leaves the gate
16 h 30 apart on the timetable, overnight
FR 8217 leaves 16 h 30 after QR 3502 arrives on the timetable: more than half a day, so not a connection we count.