QR 151 then FR 2753 at Madrid
Doha → Madrid → Milan
Timetable, Madrid time
20:35QR 151 from Doha at the gate
16:55FR 2753 to Milan leaves the gate
20 h 20 apart on the timetable, overnight
FR 2753 leaves 20 h 20 after QR 151 arrives on the timetable: more than half a day, so not a connection we count.