Query Filter For Borehole That Contains X Litology


I am trying to figure it out how to create a query filter that shows me all boreholes that contains X lithology, and by that I mean that I shows me all the lithologies contained in that borehole.

Hope that someone can help me. Thanks in advance.