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

        p[x] {
          v = data.c[i][j]
          __local0__ = v[0]
          __local1__ = v[1]
          w = [__local0__, __local1__]
          x = w[y]
        }
    note: varreferences/embedded ref binding
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - null
          - false
          - true
          - 3.14159
