Updating advanced query with query change.