A Philippine court has sentenced to death seven members of the Abu Sayyaf terrorist group for an attack four years ago that killed 10 farm workers .