---
cases:
  - note: evaltermexpr/arbitrary position
    query: data.generated.p = x
    modules:
      - |
        package generated

        p if {
        	data.a[i] = x
        	x
        	i
        }
    data:
      a:
        - "1"
        - "2"
        - "3"
        - "4"
    want_result:
      - x: true
