---
cases:
  - note: withkeyword/with invalidate data stack iteration
    query: data.generated.p = x
    modules:
      - |
        package generated

        q contains "c"

        p contains [x, y] if {
        	data.generated.q[x] with data.generated.q as {"a", "b"}
        	y = data.generated.q
        }
    data: {}
    want_result:
      - x:
          - - a
            - - c
          - - b
            - - c
    sort_bindings: true
