Resetting query cardinality