run a query with different param values