---
cases:
  - note: comprehensions/array nested
    query: data.generated.p = x
    modules:
      - |
        package generated

        p contains i if {
        	ys = [y | x = [z | z = data.a[_]]; y = x[_]]
        	__local0__ = ys[i]
        	__local0__ > 1
        }
    data:
      a:
        - 1
        - 2
        - 3
        - 4
    want_result:
      - x:
          - 1
          - 2
          - 3
    sort_bindings: true
