for $p in doc('people2.xml')/people/person where some $n in $p/note satisfies contains(upper-case($n), upper-case('pozn')) return {$p/surname/text()}{$p/note}