From BaseX Documentation
This article is part of the Advanced User's Guide.
For each execution of a query, BaseX creates an execution plan.
This execution plan shows you each step of the query, so that
you can evaluate your query and analyse if it accesses any indexes
or not. You can activate the execution plan by activating the
 Execution plan for original and optimized query execution
for $item in doc(’xmark’)/descendant::item
where $item/payment = ’Creditcard’
doc(’xmark’)/descendant::item[payment = ’Creditcard’]
 Execution plan for query execution with full-text index access and without
//MEDIUM/LAN[text() contains text "dt"]