---
cases:
  - data:
      a:
        - 1
        - 2
        - 3
        - 4
    modules:
      - |
        package generated

        p[x] {
          __local0__ = data.generated.q[3]
          __local1__ = data.generated.q[2]
          x = [1, __local0__, __local1__]
        }

        q[i] = x {
          data.a[i] = x
        }
    note: "virtualdocs/input: object embedded 1"
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - - 1
            - 4
            - 3
