---
cases:
  - data: {}
    modules:
      - |
        package generated

        p[x] {
          v = [[1, 2], [2, 3], [3, 4]]
          x = v[i][j]
        }
    note: varreferences/non-ground
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - 1
          - 2
          - 3
          - 4
