FOR $x IN document("projektverwaltung5.xml")//Person LET $y := $x//Nachname WHERE count($x/Vorname) = 1 and $y//Geburtsname/@value != '' RETURN $x/@mitarbeitInProjekt