A facetted query builder.