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

        p {
          __local0__ = data.h[0][0]
          data.a[__local0__] = 2
        }
    note: nestedreferences/ground ref
    query: data.generated.p = x
    want_result:
      - x: true
