Using .queryreferenced WITHIN a repeater (Repeater-in-a-repeater WORKAROUND)

Specifically, my issue is that I cant figure out how to use $Item AND the results of the queryReferenced.

$Item works fine before the queryReferenced, but not after/in.


Any help would be greatly appreciated.