Fixed multiple problems with the EntityQuery class and added more examples of how to use it