CORE-5083: added an SQL function that can be used to list all of the synonyms for a metadata attribute, including transitive synonyms