---
cases:
  - data:
      a:
        - 1
        - 2
        - 3
        - 4
    modules:
      - |
        package generated

        p = x {
          q = data.a
          q[0] = x
          q[0]
        }
    note: varreferences/existing ref binding
    query: data.generated.p = x
    want_result:
      - x: 1
