An Iraqi court has sentenced four people to death by hanging for belonging to the Islamic State militant group and committing terrorist crimes in Iraq and Syria, a judiciary statement said on Sunday.