implemented queryRecursive by delegating actual querying to querySummary