大家帮我看看这道题吧
Please study the tutorials for XML and XML query language, and discuss whether the following queries in each of the group below are equivalent and why.
Group1:
Q1: //book[./author/firstname = “Mike” and ./author/lastname = “Stonebraker”]
Q2: //book[./author[./firstname = “Mike” and ./lastname = “Stonebraker”]]
Q3: //book/author[./firstname = “Mike” and ./lastname = “Stonebraker”]
Q4: //book[./author[./firstname = “Mike” and ./lastname = “Stonebraker”]]/author
Group 2:
Q1: //book[./author/firstname = “Mike” and ./author/lastname = “Stonebraker”]/author[2]
Q2: //book/author[2][./firstname = “Mike” and ./lastname = “Stonebrake”]
Q3: //book[./author[2][./firstname = “Mike” and ./lastname = “Stonebrake”]]/author