adding a template how the new subgraph query should look like
first working implementation (only for subgraph and segmentation set)
also work with token as context
proper ordering