---
cases:
  - note: "eqexpr/pattern: object = ref"
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains x if {
        	{"p": y, "q": z} = data.c[i][j]
        	x = [i, j, y, z]
        }
    data:
      c:
        - "true":
            - null
            - 3.14159
          x:
            - true
            - false
            - foo
          z:
            p: true
            q: false
    want_result:
      - x:
          - - 0
            - z
            - true
            - false
    sort_bindings: true
