---
cases:
    - note: partialobjectdoc/composite value
      query: data.generated.p = x
      modules:
          - |
              package generated

              p[k] := [v1, {"v2": v2}] if {
              	data.g[k] = x
              	x[v1] = v2
              	v2 != 0
              }
      data:
          g:
              a:
                  - 1
                  - 0
                  - 0
                  - 0
              b:
                  - 0
                  - 2
                  - 0
                  - 0
              c:
                  - 0
                  - 0
                  - 0
                  - 4
      want_result:
          - x:
                a:
                    - 0
                    - v2: 1
                b:
                    - 1
                    - v2: 2
                c:
                    - 3
                    - v2: 4
