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?

  1. `doc("cars.xml")/cars/car[year>2000].data`
  2. `doc("cars.xml")/cars/car[xs:integer(year) gt 2000]`
  3. `doc("cars.xml")/cars/car[year gt 2000]`
  4. `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`