---
cases:
    - note: "eqexpr/indexing: intersection"
      query: data.generated.p = x
      modules:
          - |
              package generated

              p if {
              	data.a[i] = data.g[i][j]
              }
      data:
          a:
              - 1
              - 2
              - 3
              - 4
          g:
              a:
                  - 1
                  - 0
                  - 0
                  - 0
              b:
                  - 0
                  - 2
                  - 0
                  - 0
              c:
                  - 0
                  - 0
                  - 0
                  - 4
      want_result: []
