COMPSCI 752 Big data management
Hello, dear friend, you can consult us at any timeif you have any questions, add WeChat: daixieit
COMPSCI 752
Comments
The maximum mark achievable is 25. The assignment contributes up to 6.25% to your total marks for the course.
Submission
Please submit your solutions as a single pdf file on CANVAS by Sunday, 29 March 2026.
The assignment will not be accepted after the last penalty date unless there are special circumstances (e.g., sickness with certificate). Penalties will be calculated as follows as a percentage of the mark for the assignment.
1. XML and XPath [12 marks]
The context node for Question 1(b) is marked pink.
(a) For each node of the tree, write down the corresponding pre- and post-identifier. [3 marks]
(b) With respect to the given context node, marked in pink, evaluate the following axes on the tree. List the pre-identifier of each node that each axis returns. [3 marks]
(c) Convert each of the following English language queries into the corresponding XPath expression, and evaluate it on the tree by listing the pre-identifier of the nodesreturned. [3 marks]
i. Return b-element nodes that are grandchildren of some element node
ii. Return element nodes which have the same number of b-element ancestors and a-element descendants
iii. Return the b-element nodes that are the third child of some b-element node
(d) Convert each of the following XPath expressions into an English language query that is as simple as possible, and return the pre-identifier of all nodes in the answer to the query on the given tree. [3 marks]
2. XQuery [13 marks]
Consider the following XML document (the prologue has been omitted).
(a) Return each distinct category for which every app of that category has no rating lower than 4 and is supported by at least two languages. [4 marks]
(b) For each language supported by at least one app, return the title of each app that supports the language. [4 marks]
(c) Return the average price of all apps in the category Games that are supported by at least three languages and are priced under 10, together with the title for each of those apps. [5 marks]
2026-03-21