for $p in doc('people2.xml')/people/person where count($p/cars/car)>0 return {$p/name/text()}{$p/surname/text()}{count($p/cars/car)}