LIQ for "find all pages that link to this page"

Hi folks, I’m still getting used to what is and isn’t possible with LIQ.

Its pretty clear how to get a list of all links that link to the current page, which is used by the “Linked Mentions” widget.
I’m trying to build a similar query, but I don’t care about the specific mentions, I want to get a page reference to any page that has a link to this page.

I cant figure out a way to do this simply.
there was another post on here asking about nested LIQ, and it sounded like it was possible but not efficient. Are there any alternatives for this usecase, like using GROUP BY or something?

should be as simple as this, right?

query[[
  from index.tag "link"
  where _.toPage == name
  select _.page
]]