Add query for all entities.

Resolves #11.