In his second post, Nima provides useful and “advanced” examples of XPath queries in ILM:
I encourage you to read his post.