Для взаимодействия с содержимым xml используется язык XQuery.XQuery - Xpath подобный язык запросов к xml данным.
Работаем с JSON в SQL Server 2016https://habr.com/ru/post/317166/
JSONPath - XPath for JSONhttps://goessner.net/articles/JsonPath/