Entity type filtering based on id.