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

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

        q := [{"x": x, "y": y}, z] if {
        	x = 1
        	y = 2
        	z = [1, 2, 3]
        }
    data: {}
    want_result:
      - x:
          - 1
          - 2
          - 3
    sort_bindings: true
