You are looking at documentation for an older release. Not what you want? See the current release documentation.
The section shows you the different usecases of query. Through these usercases, you will know how the repository structure is, and how to create and execute a query, how to iterate over the result set and according to the query what kind of results you will get.