SELECT a.user_uid
FROM SUNO_PROD.PROD.BOT_HOURLY a
LEFT JOIN SUNO_PROD.PROD.BRAZE_BOTS b
ON a.user_uid = b.user_uid
WHERE a.meets_bot_definition
AND (
    b.user_uid IS NULL
    OR b.status_code IS NULL
    OR b.status_code NOT IN (200, 201)
)
LIMIT 300000
