---
cases:
  - data:
      c:
        - x:
            - true
            - false
            - foo
          y:
            - null
            - 3.14159
          z:
            p: true
            q: false
    modules:
      - |
        package generated

        p[x] {
          {"p": y, "q": z} = data.c[i][j]
          x = [i, j, y, z]
        }
    note: "eqexpr/pattern: object = ref"
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - - 0
            - z
            - true
            - false
