Skip to main content
A StockfulQL query is built from clauses. Every query needs two: FROM, which chooses the dataset, and SHOW, which lists the metrics to return. Every other clause is optional and shapes the result.

Anatomy of a query

The smallest useful query is a dataset and a metric:
From there you add clauses to filter, group, set a date range, sort and chart. They always appear in a fixed order, and the report editor writes them in that order for you, so you rarely type a whole query by hand:

Clauses

With no VISUALIZE line the query renders as a table, which is the default. Leaving out the date clause reads all of your history.