The paper addresses the challenge of determinizing probabilistic data for compatibility with legacy systems that require deterministic input. It introduces a query-aware strategy to optimize the representation of such data, outperforming traditional methods like top-1 selection and thresholding. Additionally, an efficient algorithm is developed that achieves near-optimal quality results when processing triggers and queries, enhancing overall query workload performance.