IB 392 then EC 1704 at Madrid
Doha → Madrid → Nice
Timetable, Madrid time
09:05IB 392 from Doha at the gate
21:20EC 1704 to Nice leaves the gate
12 h 15 apart on the timetable
EC 1704 leaves 12 h 15 after IB 392 arrives on the timetable: more than half a day, so not a connection we count.