SELECT TOP (1) 1
FROM
(
    SELECT 1 AS [HasAccess]
    FROM [dbo].[WorkspaceReviewers]
    WHERE [WorkspaceId] = @WorkspaceId
      AND [Email] = @Email

    UNION ALL

    SELECT 1 AS [HasAccess]
    FROM [dbo].[WorkspaceMembers]
    WHERE [WorkspaceId] = @WorkspaceId
      AND [Email] = @Email
      AND [Status] = 1
      AND [Role] IN (0, 1)
) AS [EligibleReviewers];
