---
cases:
  - note: "virtualdocs/output: object embedded"
    query: data.generated.p = x
    modules:
      - |
        package generated

        p[k] := v if {
        	__local0__ = data.generated.q[k]
        	{k: [__local0__]} = {k: [v]}
        }

        q[x] := y if {
        	data.b[x] = y
        }
    data:
      b:
        v1: hello
        v2: goodbye
    want_result:
      - x:
          v1: hello
          v2: goodbye
