---
cases:
  - note: comprehensions/set embedded object
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains i if {
        	__local0__ = {x | x = data.a[_]}
        	xs = {"a": __local0__}
        	__local1__ = xs.a[i]
        	__local1__ > 1
        }
    data:
      a:
        - 1
        - 2
        - 3
        - 4
    want_result:
      - x:
          - 2
          - 3
          - 4
    sort_bindings: true
