q-tree analyze query