Difference in query


Is it possible in grafana to make a list of items and a query in which sortalike items are to be found and show only the difference between them? I would like to get notified if certain unique elements are missing compared to those in the fixed list.