Nesting of query has fininshed.