add limit/offset to has-query