Advanced search working with sample query