UD 161 then KM 785 at Istanbul
Baghdad → Istanbul → Valletta
Timetable, Istanbul time
13:00UD 161 from Baghdad at the gate
11:35KM 785 to Valletta leaves the gate
22 h 35 apart on the timetable, overnight
KM 785 leaves 22 h 35 after UD 161 arrives on the timetable: more than half a day, so not a connection we count.