title: Useful query expressions
role: manual
tags: #example #manual #search #zettelstore
syntax: zmk
backward: 00001007700000
box-number: 1
copyright: (c) 2020-present by Detlef Stern <ds@zettelstore.de>
created: 20220810144539
forward: 00001007700000 00001012051200
lang: en
license: EUPL-1.2-or-later
modified: 20250627151159
published: 20250627151159
visibility: public

| Query Expression | Meaning |
| --- | --- |
| role:configuration | All zettel that contain configuration data for the Zettelstore |
| ORDER REVERSE created LIMIT 40 | 40 recently created zettel |
| ORDER REVERSE published LIMIT 40 | 40 recently updated zettel |
| PICK 40 | 40 random zettel, ordered by zettel identifier |
| dead? | Zettel with invalid / dead links |
| backward!? precursor!? | Zettel that are not referenced by other zettel |
| tags!? | Zettel without tags |
| expire? ORDER expire | All zettel with an expiration date, ordered from the nearest to the latest |
| 00001007700000 CONTEXT | Zettel within the context of the [given zettel](00001007700000) |
| 00001012051200 FOLGE | &ldquo;Train of thought&rdquo; of the [given zettel](00001012051200) |
| PICK 1 | REDIRECT | Redirect to a random zettel |