How would i go about detecting spatial queries from spatial queries?

the title says it all, how would I go about doing it? I’m making a projectile (with spatial queries) that destroys other hitboxes (or other spatial queries)