Sitecore Query can be a bit of a trick. its almost the same as xpath, but extends it with Sitecore specific elements.

John West provided a nice Cheat Sheet for Sitecore Query and som documentation on his blog this month:

http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2012/05/Sitecore-Query-Cheat-Sheet.aspx

 

Cheat Sheet is attached this article.

SitecoreQueryCheatSheet.docx (16.82 kb)