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

        p[r] {
          data.generated.q[x][y][z] = false
          r = [x, y, z]
        }

        q[i] = x {
          x = data.c[i]
        }
    note: "virtualdocs/output: object defererence non-ground"
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - - 0
            - x
            - 1
          - - 0
            - z
            - q
