def METHOD_NAME(self):
    """
    Returns a properly scoped queryset.
    Access to queries may require different access controls, some of which
    include scoping while others do not. See
    `QueryAccessPolicy.get_should_queryset_be_unscoped` docstring for more
    information.
    """
    should_queryset_be_scoped = \
        not QueryAccessPolicy.get_should_queryset_be_unscoped(self.action)
    if should_queryset_be_scoped:
        queryset = self.access_policy.scope_queryset(
            self.request,
            UIQuery.objects.all()
        )
    else:
        queryset = UIQuery.objects.all()
    return queryset