---
cases:
  - note: "varreferences/set: ground var"
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains x if {
        	i = {1, 2, 3, 4}
        	j = {1, 2, 99}
        	j[x]
        	i[x]
        }
    data: {}
    want_result:
      - x:
          - 1
          - 2
    sort_bindings: true
