Search for question
Question

2.

2.1. What is the result of executing the following XQuery?

for $m in 1 to 10

let Sn = $m + 1

where $m > 4

order by $m descending

return $m*$n

2.2. Using the XML Document below (library with books), define the following queries in

XQuery:

(a) Give the titles of all Books sorted by Price.

(b) Give the sorted list of titles of all Books that have a price with a value that is higher

than 70.

(c) Give the list of titles of all Books published by Addison-Wesley.

(d) How many books were written by Abiteboul?

(e) Give for each author, the number of books he has written.