Smart folder filter "does not contain"
It looks like kMDItemPath can't do what you need:

no-results-in-spotlight-in-searches-against-kmditempath

Some potential alternatives are discussed here:

how-to-locate-a-file-in-spotlight-using-folder-and-file-name