Example. Forester 4.2 › New query language › Relational queries › Querying a coslice of the transclusion preorder [00X4]

We can also write a query to compute the set of trees underneath a given tree in the transclusion preorder (including the original tree) — in other words, the coslice.

\def\query/transclusion-coslice[x]{
 \open\query
 \rel{\paths}{\outgoing}{\rel/transclusion}{\x}
}