A self-referential categories tree, walked with a recursive CTE. It declares aModel, emits a filtered SELECT and a WITH RECURSIVE subtree walk — SQL textplus the bound params, never spliced — then drives the same builders through aSession over @moondb.MockDriver, which needs no database and compiles on everybackend.