querying the entities