%dquery can now bound both depth of search and depth of term.