1. A method, comprising: choosing a first set of parameters for a query; calculating at least one additional set of parameters based on the chosen first set of parameters; executing the query using the calculated at least one additional set of parameters; evaluating a cardinality value of the calculated at least one additional set of parameters; and refining the at least one additional set of parameters when a result of the evaluating is outside a predetermined range of values.