I don't understand what your requirements exactly are. As far as I
understand your prictures -whose shows your structure- the marked tags
are a part of full path from others. So there is no other way. May be
the keyword 'contains' allows you to avoid der percent signs. My above
query would looks like:SELECT * FROM [dam:AssetContent] AS page WHERE
ISDESCENDANTNODE(page ,"/search/in/path") AND NOT
(Contains(page.[cq:tags], 'dsc:keywords') or Contains(page.[cq:tags],
'dsc:device')) The query builde...