%dquery can now bound both depth and size.