---
cases:
  - note: "virtualdocs/i/o: undefined keys"
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains y if {
        	data.generated.q[x]
        	data.generated.r[x] = y
        }

        q contains x if {
        	z = ["a", "b", "c", "d"]
        	z[y] = x
        }

        r[k] := v if {
        	x = {"a": 1, "b": 2, "d": 4}
        	x[k] = v
        }
    data: {}
    want_result:
      - x:
          - 1
          - 2
          - 4
    sort_bindings: true
