scopes for member query