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