Optimality and Complexity of Inference-Proof Data Filtering and CQE