Help verifying if this is a valid SQL condition - Supabase