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

        p[y] {
          data.generated.q[i][j][k][x] = y
        }

        q[{{[1], [2]}, {[3], [4]}}]
    note: "virtualdocs/output: set dereference deep"
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - 1
          - 2
          - 3
          - 4
