FR 2540 then SQ 387 at Madrid
Bucharest → Madrid → Singapore
Timetable, Madrid time
13:55FR 2540 from Bucharest at the gate
10:00SQ 387 to Singapore leaves the gate
20 h 05 apart on the timetable, overnight
SQ 387 leaves 20 h 05 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.