# Sample data explorer

Query a sample of ToolboxFM Data Export with SQL in your browser, using a demo construction company's real export files.

Data Export gives you Parquet files for reports in your own tools. Try the sample below before you buy: explore work activities, approvals, delays and zone use with SQL. [DuckDB](https://duckdb.org/) runs in your browser, so you do not need to install anything or enter a key.

1. Pick a question below to see a query and its result.
2. Change the SQL, then select **Run query** or press Ctrl+Enter.
3. Select **Download CSV** to save the result.

The files use the same Parquet format and dataset definitions as customer exports. See the
[data dictionary](/reference/data-dictionary/) for columns, types and relationships.

## Try a simple query

Paste this into the query box to see ten activities:

```sql
SELECT title, lifecycle, approval_status, work_start_at
FROM work_activities
ORDER BY work_start_at DESC, activity_id
LIMIT 10;
```

Or count activities by approval status:

```sql
SELECT approval_status, count(*) AS activities
FROM work_activities
GROUP BY approval_status
ORDER BY activities DESC, approval_status;
```

Tables such as `work_activities` contain current records, with deleted records removed. Add
`_changes`, as in `work_activities_changes`, to inspect the change history. Hourly QR page views
are counts, not individual changes; see the [dictionary](/reference/data-dictionary/#qr_page_views_hourly).

## About the sample

The files come from DemoCo, the sample company at [demo.toolboxfm.com](https://demo.toolboxfm.com).
Visitors can add demo records. The export refreshes daily at 03:00 Brisbane time, so your results
can differ from someone else's. These are demo records, not private customer exports.

- Timestamps are stored in UTC. The explorer displays and groups them in Brisbane time.
- For trends, use the time of the work, such as `work_start_at`. `occurred_at` is when a record changed.
- Some tables can be empty, including pauses or QR page views.

## Use the sample files in your own tools

Each `snapshot=<time>/` folder is a complete sample export. Load one snapshot only; do not combine
different snapshots. Customer exports keep adding deliveries, so customer integrations keep
reading new manifests instead of choosing a new snapshot.

1. [List the sample snapshots](https://dsqgzk0ja7o6g.cloudfront.net/?list-type=2&delimiter=/).
   The list is XML. Sort the `snapshot=` folder names from newest to oldest. Samples are kept for 7 days.
2. Open `_snapshot.json` inside the newest folder. If it is missing, try the next older folder.
   This file lists each project or organisation folder's manifests in delivery order.
3. Download the listed manifests. For each file URL, add its key to
   `https://dsqgzk0ja7o6g.cloudfront.net/` followed by your chosen `snapshot=<time>/` folder.
   Use this rule for both manifest keys and Parquet file keys.
4. Within each project or organisation folder, check that manifest sequences start at `0` and have
   no gaps. Download only the Parquet files the manifests list, and check their sizes and SHA-256 values.

See [Retrieve Data Export files](/reference/data-export-files/#read-the-data) for the rules that
combine deliveries into current tables and a Python example. To use that example with a sample,
save downloaded files under `export/`, keeping the part of each manifest key after the organisation
ID. For example, `project=<project-id>/_manifests/...` and `project=<project-id>/work_activities/...`.
The Python example reads work activities; the browser explorer loads all available datasets.