Question: You are working with this XML code snippet from the XML document cars.xml. You need to return the information about the cars built after the year 2000. What does your XQuery look like?
- `doc("cars.xml")/cars/car[year>2000].data`
- `doc("cars.xml")/cars/car[xs:integer(year) gt 2000]`
- `doc("cars.xml")/cars/car[year gt 2000]`
- `doc("cars.xml")/cars/car[integer(year) > 2000]`
Answer: The correct answer of the above question is Option A:`doc("cars.xml")/cars/car[year>2000].data`