I use this filter to find anything where this.file.name is for example [[Getting Things Done]]
contains(category, concat("[[", this.file.name, "]]"))
The [[Getting Things Done]] file has aliases (GTD). The query is not finding the notes where category = GTD.