---
cases:
  - data: {}
    modules:
      - |
        package generated

        p[y] {
          x = "b"
          data.generated.q[x] = y
        }

        q[k] = v {
          x = {"a": 1, "b": 2}
          x[k] = v
        }
    note: "virtualdocs/input: object ground var key"
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - 2
