Since different query terms have different precision in terms of finding what you want, we'll want the query terms that find a given grant included in the list.
This is complicated, a bit, by de-duplication. Looks like aggregate() via https://stackoverflow.com/a/14262917/1483360 should do the trick, though.
For the delimiter of the aggregated variable, let's do semicolon ;
Since different query terms have different precision in terms of finding what you want, we'll want the query terms that find a given grant included in the list. This is complicated, a bit, by de-duplication. Looks like
aggregate()
via https://stackoverflow.com/a/14262917/1483360 should do the trick, though. For the delimiter of the aggregated variable, let's do semicolon ;