selecting entity

execute as @a[scores={baseCheck=..-200}] at @s unless score @s clanID = @e[tag=Base,distance=..100,sort=nearest,limit=1] clanID run title @a title {"selector":"@s"}

in that "title @a", I want to title every player that has clanID the same as what "@e[tag=Base,distance=..100,sort=nearest,limit=1]" returned, but the @s on selector, should be the same entity as the "@a[scores={baseCheck=..-200}]"

kinda hard to explain

Continue to help post