Task/392 service path rest of query context

### Description
Simplified the EntityId part of the query.
Also, "added" the ServicePath path for the query.
Ah, of course, I forgot the variables.
Strange that the compiler didn't complain ...
Very strange