Query Help: lines tagged with a specific value

I would like to create a query that scans all of my pages list any lines (not pages) with a specific tag value, for instance 'shopping'...

possible?

Is this what you want?

${query [[
  from p = index.paragraphs()
  where p.itags and table.includes(p.itags, "shopping")
  select { Page = "[[" .. p.page .. "]]", Line = p.text }
]]}


test #shopping