EI 594 then W6 4402 at Madrid
Dublin → Madrid → Sofia
Timetable, Madrid time
21:30EI 594 from Dublin at the gate
20:35W6 4402 to Sofia leaves the gate
23 h 05 apart on the timetable, overnight
W6 4402 leaves 23 h 05 after EI 594 arrives on the timetable: more than half a day, so not a connection we count.