You have:
If you use the same field(name) in multiple notes/files, then the field is the same.
So, it’s advised change the name for the query field.
I still don’t understand well the desired query. But, for this example, you can try this:
MyQueryName:: `=this.Farmaco.Funcionalidad`