added more advanced query docs