IA 215 then TK 617 at Istanbul
Baghdad → Istanbul → Casablanca
Timetable, Istanbul time
11:55IA 215 from Baghdad at the gate
11:45TK 617 to Casablanca leaves the gate
23 h 50 apart on the timetable, overnight
TK 617 leaves 23 h 50 after IA 215 arrives on the timetable: more than half a day, so not a connection we count.