Created advanced search for aggregate