If you are using the “Has” function. It will return absolutely all existing Nodes with the same predicate indicated. You could only differ if each node had a unique predicate or if you add an indexing and so use @filter.
Whether you want specific predicates in the response. Do not use “expand (all)” the proposal of expand (all) is just “expand all”. Put in the query field only the predicates you want to return.