for $c in doc('people2.xml')/people/person/cars/car where $c/year < 2000 return {$c/../../name/text()}{$c/../../surname/text()}{$c/type/text()}