Can you help me to understand given query and what is it doing ?
It’s JSON Path. The following might help you.
as starter help:
it is using the selectToken method and within the JPath syntax it is implementing some filtering on taskid, groupname, DupGroupname…
Some starter help for the JPath syntax: