rewrite API queries 6 & 10 to not use traversal framework