import module namespace math="http://www.zorba-xquery.com/modules/math"; math:quartile((1, 2, 4, 7, 8, 9, 10, 12), 3) (: Expected output: <?xml version="1.0" encoding="UTF-8"?> 9.25 :)