FR 3813 then QR 150 at Madrid
Bologna → Madrid → Doha
Timetable, Madrid time
21:35FR 3813 from Bologna at the gate
15:20QR 150 to Doha leaves the gate
17 h 45 apart on the timetable, overnight
QR 150 leaves 17 h 45 after FR 3813 arrives on the timetable: more than half a day, so not a connection we count.