MS 737 then KM 785 at Istanbul
Cairo → Istanbul → Valletta
Timetable, Istanbul time
13:00MS 737 from Cairo 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 MS 737 arrives on the timetable: more than half a day, so not a connection we count.