Separate queries for entities and view models.