In the following, Jon Bosak's edition of the Shakespeare's Hamlet, Macbeth, and Romeo and Juilet are queried..
collection("@@path/data")//SPEECH[ft:query(., 'love')][SPEAKER = "JULIET"]
collection("@@path/data")//SPEECH[ft:query(., '"fenny snake"')]
let $query := <query> <near slop="20"><term>love</term><near>father</near></near> </query> return collection("@@path/data")//SPEECH[ft:query(., $query)]
for $m in collection("@@path/data")//SPEECH[ft:query(., "boil bubble")] let $score := ft:score($m) order by $score descending return <m score="{$score}">{$m}</m>