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

        p {
          data.generated.q[0].x[1] = false
        }

        q[i] = x {
          x = data.c[i]
        }
    note: "virtualdocs/input: object dereference ground"
    query: data.generated.p = x
    want_result:
      - x: true
