Generates a category tree query with the specified number of nested child category tree fragments.
@param depth The maximum depth to which category children should be added to the fragment.