Datalog for trees in Clojure (blog.juxt.pro)