---
cases:
  - data: {}
    modules:
      - |
        package test

        p = __local0__ {
          true
          __local1__ = data.fixture.foo.bar
          __local0__ = data.fixture.r[[__local1__, 3]]
        }
      - |
        package fixture

        empty = {set()}

        s = {[1, 2], [1, 3], {"foo": "bar"}, {1, 2}, [2, 7], [[1, 1], 4]}

        r[x] {
          data.fixture.s[x]
        }

        a = [1, 2]

        o = {"foo": "bar"}

        foo = {"bar": 1}

        p1[[1, 2]]

        p1[[1, 3]]

        p1[[2, 2]]
    note: compositereferences/ref
    query: data.test.p = x
    want_result:
      - x:
          - 1
          - 3
