xquery version "3.1"; let $movie := Way of the Dragon Bruce Lee 1972 return copy $mutated-movie := $movie modify replace value of node $mutated-movie/director/text() with $mutated-movie/director/text() || " (1940-1973)" return $mutated-movie