FB 471 then FR 2017 at Madrid
Sofia → Madrid → Lanzarote
Timetable, Madrid time
13:05FB 471 from Sofia at the gate
06:00FR 2017 to Lanzarote leaves the gate
16 h 55 apart on the timetable, overnight
FR 2017 leaves 16 h 55 after FB 471 arrives on the timetable: more than half a day, so not a connection we count.