Some 40 people killed in Iraq attacks