rewrote queries for compatibility with sesame 2.6.9
rewrote queries for compatibility with sesame 2.6.9
fixed query for compatibility with sesame 2.6.9