@JeffGrigg@jasongorman@paladin@mfowler all this discussion about "how can we be sure that this SQL applies to a specific database or table?" is another argument in favour of strong ownership/stewardship of services and data.
If a single team (or group) is the only one making changes, then they already know which SQL applies where within their area of stewardship.
No need to hunt around for usage: the team already knows because their services are team-sized.