Precedence: NOT > AND > OR. Use parentheses sparingly by structuring conditions; (parentheses not required in current grammar).
LIMIT: positive integer; caps returned rows.
SINCE: ISO-8601 timestamp string (e.g., 2025-08-01T00:00:00Z) or numeric epoch (s/ms/µs/ns). Parsed and normalized to epoch seconds (fractional parts truncated to whole seconds).
USING: Selects the time field used by SINCE and bucketing; defaults to core timestamp. Common choices: a schema field like created_at declared as "datetime".
DEFINE order_created AS 1 FIELDS {
id: "uuid",
amount: "float",
currency: "string",
created_at: "datetime"
}
STORE order_created FOR ctx_123 PAYLOAD {
"id": "a1-b2",
"amount": 42.5,
"currency": "EUR",
"created_at": "2025-09-07T12:00:00Z"
}
QUERY order_created FOR "ctx_123" SINCE "2025-08-01T00:00:00Z" USING created_at
WHERE amount >= 40 AND currency = "EUR"
LIMIT 100
QUERY page_view FOLLOWED BY order_created LINKED BY user_id WHERE page_view.page="/checkout"
REPLAY order_created FOR ctx_123 SINCE "2025-08-01T00:00:00Z" USING created_at