bugfixes: don't assume gt/lt queries should be numeric; correctly generate xqueries with multiple where filters