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

        p := xs if {
        	__local0__ = {x | x = data.a[_]}
        	xs = {__local0__}
        }
    data:
      a:
        - 1
        - 2
        - 3
        - 4
    want_result:
      - x:
          - - 1
            - 2
            - 3
            - 4
