Only chain #having to tagged_with query when clause is present.