About XQuery: Supports path expressions to enable programmers to navigate through XML's hierarchical structure. XQuery supports both typed and untyped data. XQuery lacks…