Datasets:
Upload folder using huggingface_hub
Browse files- README.md +74 -0
- certificate.json +774 -0
- manifest.json +240 -0
- questions.jsonl +108 -0
- schema.misata.yaml +98 -0
- tables/mrr_movements.csv +0 -0
- verify.py +53 -0
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pretty_name: "Misata SaaS Finance Evalpack (MRR waterfalls that reconcile)"
|
| 4 |
+
tags:
|
| 5 |
+
- synthetic
|
| 6 |
+
- text-to-sql
|
| 7 |
+
- evaluation
|
| 8 |
+
- data-agents
|
| 9 |
+
- tabular
|
| 10 |
+
- sql
|
| 11 |
+
task_categories:
|
| 12 |
+
- table-question-answering
|
| 13 |
+
configs:
|
| 14 |
+
- config_name: mrr_movements
|
| 15 |
+
data_files: "tables/mrr_movements.csv"
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Misata SaaS Finance Evalpack (MRR waterfalls that reconcile)
|
| 19 |
+
|
| 20 |
+
An **evalpack**: an evaluation database generated from the answer key, not
|
| 21 |
+
annotated after the fact. A VLDB 2026 audit found 52.8% of BIRD Mini-Dev
|
| 22 |
+
answer keys wrong because benchmarks annotate answers onto existing
|
| 23 |
+
databases; this dataset inverts the order. The declared properties (curves,
|
| 24 |
+
shares, identities) are the specification, the database is generated to
|
| 25 |
+
satisfy them exactly, and every shipped question was re-verified by
|
| 26 |
+
executing its gold SQL against these exact files with DuckDB, an engine
|
| 27 |
+
that shares no code with the generator.
|
| 28 |
+
|
| 29 |
+
## What is in it
|
| 30 |
+
|
| 31 |
+
Tables: mrr_movements (6,000 rows).
|
| 32 |
+
|
| 33 |
+
Three SaaS tenants (acme growing, globex declining, initech steady) share one
|
| 34 |
+
movements table of new / expansion / contraction / churn rows. Every tenant's
|
| 35 |
+
running MRR balance, recomputed from the raw rows, lands on its declared
|
| 36 |
+
ending value for every month, to the cent. 108 questions ship with the pack:
|
| 37 |
+
per-tenant net movements, per-type totals, and running balances.
|
| 38 |
+
|
| 39 |
+
## Files
|
| 40 |
+
|
| 41 |
+
- `tables/*.csv`: the database
|
| 42 |
+
- `questions.jsonl`: one verified question per line (natural language,
|
| 43 |
+
gold SQL, expected answer, tags)
|
| 44 |
+
- `certificate.json`: per-question DuckDB verification plus FK proof
|
| 45 |
+
- `manifest.json`: spec hash, seed, library versions, dropped candidates
|
| 46 |
+
- `verify.py`: standalone re-verification (needs only `pip install duckdb`)
|
| 47 |
+
- `schema.misata.yaml`: the full declaration; regenerate or rotate the pack
|
| 48 |
+
from it
|
| 49 |
+
|
| 50 |
+
## Re-verify in thirty seconds
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
pip install duckdb
|
| 54 |
+
python verify.py
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## Rotate the environment without touching the answer key
|
| 58 |
+
|
| 59 |
+
```bash
|
| 60 |
+
pip install misata
|
| 61 |
+
misata evalpack --config schema.misata.yaml -o rotated_pack --seed 7
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
A new seed replaces the rows; the declared answers stay the answers, so
|
| 65 |
+
agents cannot memorize the environment. Same version + same schema + same
|
| 66 |
+
seed reproduces these bytes exactly.
|
| 67 |
+
|
| 68 |
+
## Provenance
|
| 69 |
+
|
| 70 |
+
No real data: fully declaration-generated, offline, deterministic
|
| 71 |
+
([provenance statement](https://github.com/rasinmuhammed/misata/blob/main/DATA-PROVENANCE.md)).
|
| 72 |
+
Generated with [misata](https://github.com/rasinmuhammed/misata) (MIT).
|
| 73 |
+
Where the approach fails is documented in
|
| 74 |
+
[LIMITATIONS.md](https://github.com/rasinmuhammed/misata/blob/main/LIMITATIONS.md).
|
certificate.json
ADDED
|
@@ -0,0 +1,774 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pack": "saas-finance-evalpack",
|
| 3 |
+
"misata_version": "0.8.7.1",
|
| 4 |
+
"seed": 42,
|
| 5 |
+
"spec_sha256": "775506c1d65475794a6cc5d454312176afae2d7d3614805494af99e86444df86",
|
| 6 |
+
"generated_at": "2026-07-16T15:06:00.602888+00:00",
|
| 7 |
+
"verifier": {
|
| 8 |
+
"engine": "duckdb",
|
| 9 |
+
"version": "1.4.2"
|
| 10 |
+
},
|
| 11 |
+
"sql_dialect": "duckdb",
|
| 12 |
+
"answer_comparison": "numeric at round_decimals (never string equality); strings compared exactly",
|
| 13 |
+
"fk_integrity": [],
|
| 14 |
+
"conformance_warnings": [],
|
| 15 |
+
"questions": [
|
| 16 |
+
{
|
| 17 |
+
"id": "q001",
|
| 18 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"tenant\" = 'acme'",
|
| 19 |
+
"expected": 3000.0,
|
| 20 |
+
"observed": 3000.0,
|
| 21 |
+
"match": true
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"id": "q002",
|
| 25 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'",
|
| 26 |
+
"expected": 2925.0,
|
| 27 |
+
"observed": 2925.0,
|
| 28 |
+
"match": true
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"id": "q003",
|
| 32 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'",
|
| 33 |
+
"expected": 1575.0,
|
| 34 |
+
"observed": 1575.0,
|
| 35 |
+
"match": true
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"id": "q004",
|
| 39 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'",
|
| 40 |
+
"expected": 1050.0,
|
| 41 |
+
"observed": 1050.0,
|
| 42 |
+
"match": true
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"id": "q005",
|
| 46 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'",
|
| 47 |
+
"expected": 450.0,
|
| 48 |
+
"observed": 450.0,
|
| 49 |
+
"match": true
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"id": "q006",
|
| 53 |
+
"gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-01' AND \"tenant\" = 'acme'",
|
| 54 |
+
"expected": 53000.0,
|
| 55 |
+
"observed": 53000.0,
|
| 56 |
+
"match": true
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"id": "q007",
|
| 60 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"tenant\" = 'acme'",
|
| 61 |
+
"expected": 3000.0,
|
| 62 |
+
"observed": 3000.0,
|
| 63 |
+
"match": true
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"id": "q008",
|
| 67 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'",
|
| 68 |
+
"expected": 2983.5,
|
| 69 |
+
"observed": 2983.5,
|
| 70 |
+
"match": true
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"id": "q009",
|
| 74 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'",
|
| 75 |
+
"expected": 1606.5,
|
| 76 |
+
"observed": 1606.5,
|
| 77 |
+
"match": true
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"id": "q010",
|
| 81 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'",
|
| 82 |
+
"expected": 1113.0,
|
| 83 |
+
"observed": 1113.0,
|
| 84 |
+
"match": true
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"id": "q011",
|
| 88 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'",
|
| 89 |
+
"expected": 477.0,
|
| 90 |
+
"observed": 477.0,
|
| 91 |
+
"match": true
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"id": "q012",
|
| 95 |
+
"gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-02' AND \"tenant\" = 'acme'",
|
| 96 |
+
"expected": 56000.0,
|
| 97 |
+
"observed": 56000.0,
|
| 98 |
+
"match": true
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"id": "q013",
|
| 102 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"tenant\" = 'acme'",
|
| 103 |
+
"expected": 3000.0,
|
| 104 |
+
"observed": 3000.0,
|
| 105 |
+
"match": true
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"id": "q014",
|
| 109 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'",
|
| 110 |
+
"expected": 3042.0,
|
| 111 |
+
"observed": 3042.0,
|
| 112 |
+
"match": true
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"id": "q015",
|
| 116 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'",
|
| 117 |
+
"expected": 1638.0,
|
| 118 |
+
"observed": 1638.0,
|
| 119 |
+
"match": true
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"id": "q016",
|
| 123 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'",
|
| 124 |
+
"expected": 1176.0,
|
| 125 |
+
"observed": 1176.0,
|
| 126 |
+
"match": true
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"id": "q017",
|
| 130 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'",
|
| 131 |
+
"expected": 504.0,
|
| 132 |
+
"observed": 504.0,
|
| 133 |
+
"match": true
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"id": "q018",
|
| 137 |
+
"gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-03' AND \"tenant\" = 'acme'",
|
| 138 |
+
"expected": 59000.0,
|
| 139 |
+
"observed": 59000.0,
|
| 140 |
+
"match": true
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"id": "q019",
|
| 144 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"tenant\" = 'acme'",
|
| 145 |
+
"expected": 3000.0,
|
| 146 |
+
"observed": 3000.0,
|
| 147 |
+
"match": true
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"id": "q020",
|
| 151 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'",
|
| 152 |
+
"expected": 3100.5,
|
| 153 |
+
"observed": 3100.5,
|
| 154 |
+
"match": true
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"id": "q021",
|
| 158 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'",
|
| 159 |
+
"expected": 1669.5,
|
| 160 |
+
"observed": 1669.5,
|
| 161 |
+
"match": true
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"id": "q022",
|
| 165 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'",
|
| 166 |
+
"expected": 1239.0,
|
| 167 |
+
"observed": 1239.0,
|
| 168 |
+
"match": true
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"id": "q023",
|
| 172 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'",
|
| 173 |
+
"expected": 531.0,
|
| 174 |
+
"observed": 531.0,
|
| 175 |
+
"match": true
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"id": "q024",
|
| 179 |
+
"gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-04' AND \"tenant\" = 'acme'",
|
| 180 |
+
"expected": 62000.0,
|
| 181 |
+
"observed": 62000.0,
|
| 182 |
+
"match": true
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"id": "q025",
|
| 186 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"tenant\" = 'acme'",
|
| 187 |
+
"expected": 3000.0,
|
| 188 |
+
"observed": 3000.0,
|
| 189 |
+
"match": true
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"id": "q026",
|
| 193 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'",
|
| 194 |
+
"expected": 3159.0,
|
| 195 |
+
"observed": 3159.0,
|
| 196 |
+
"match": true
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"id": "q027",
|
| 200 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'",
|
| 201 |
+
"expected": 1701.0,
|
| 202 |
+
"observed": 1701.0,
|
| 203 |
+
"match": true
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"id": "q028",
|
| 207 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'",
|
| 208 |
+
"expected": 1302.0,
|
| 209 |
+
"observed": 1302.0,
|
| 210 |
+
"match": true
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"id": "q029",
|
| 214 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'",
|
| 215 |
+
"expected": 558.0,
|
| 216 |
+
"observed": 558.0,
|
| 217 |
+
"match": true
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"id": "q030",
|
| 221 |
+
"gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-05' AND \"tenant\" = 'acme'",
|
| 222 |
+
"expected": 65000.0,
|
| 223 |
+
"observed": 65000.0,
|
| 224 |
+
"match": true
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"id": "q031",
|
| 228 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"tenant\" = 'acme'",
|
| 229 |
+
"expected": 3000.0,
|
| 230 |
+
"observed": 3000.0,
|
| 231 |
+
"match": true
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"id": "q032",
|
| 235 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'",
|
| 236 |
+
"expected": 3217.5,
|
| 237 |
+
"observed": 3217.5,
|
| 238 |
+
"match": true
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"id": "q033",
|
| 242 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'",
|
| 243 |
+
"expected": 1732.5,
|
| 244 |
+
"observed": 1732.5,
|
| 245 |
+
"match": true
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"id": "q034",
|
| 249 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'",
|
| 250 |
+
"expected": 1365.0,
|
| 251 |
+
"observed": 1365.0,
|
| 252 |
+
"match": true
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"id": "q035",
|
| 256 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'",
|
| 257 |
+
"expected": 585.0,
|
| 258 |
+
"observed": 585.0,
|
| 259 |
+
"match": true
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"id": "q036",
|
| 263 |
+
"gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-06' AND \"tenant\" = 'acme'",
|
| 264 |
+
"expected": 68000.0,
|
| 265 |
+
"observed": 68000.0,
|
| 266 |
+
"match": true
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"id": "q037",
|
| 270 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"tenant\" = 'globex'",
|
| 271 |
+
"expected": -1500.0,
|
| 272 |
+
"observed": -1500.0,
|
| 273 |
+
"match": true
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"id": "q038",
|
| 277 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'",
|
| 278 |
+
"expected": 1365.0,
|
| 279 |
+
"observed": 1365.0,
|
| 280 |
+
"match": true
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"id": "q039",
|
| 284 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'",
|
| 285 |
+
"expected": 735.0,
|
| 286 |
+
"observed": 735.0,
|
| 287 |
+
"match": true
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"id": "q040",
|
| 291 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'",
|
| 292 |
+
"expected": 2520.0,
|
| 293 |
+
"observed": 2520.0,
|
| 294 |
+
"match": true
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"id": "q041",
|
| 298 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'",
|
| 299 |
+
"expected": 1080.0,
|
| 300 |
+
"observed": 1080.0,
|
| 301 |
+
"match": true
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"id": "q042",
|
| 305 |
+
"gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-01' AND \"tenant\" = 'globex'",
|
| 306 |
+
"expected": 118500.0,
|
| 307 |
+
"observed": 118500.0,
|
| 308 |
+
"match": true
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"id": "q043",
|
| 312 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"tenant\" = 'globex'",
|
| 313 |
+
"expected": -1500.0,
|
| 314 |
+
"observed": -1500.0,
|
| 315 |
+
"match": true
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"id": "q044",
|
| 319 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'",
|
| 320 |
+
"expected": 1335.75,
|
| 321 |
+
"observed": 1335.75,
|
| 322 |
+
"match": true
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"id": "q045",
|
| 326 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'",
|
| 327 |
+
"expected": 719.25,
|
| 328 |
+
"observed": 719.25,
|
| 329 |
+
"match": true
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"id": "q046",
|
| 333 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'",
|
| 334 |
+
"expected": 2488.5,
|
| 335 |
+
"observed": 2488.5,
|
| 336 |
+
"match": true
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"id": "q047",
|
| 340 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'",
|
| 341 |
+
"expected": 1066.5,
|
| 342 |
+
"observed": 1066.5,
|
| 343 |
+
"match": true
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"id": "q048",
|
| 347 |
+
"gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-02' AND \"tenant\" = 'globex'",
|
| 348 |
+
"expected": 117000.0,
|
| 349 |
+
"observed": 117000.0,
|
| 350 |
+
"match": true
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"id": "q049",
|
| 354 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"tenant\" = 'globex'",
|
| 355 |
+
"expected": -1500.0,
|
| 356 |
+
"observed": -1500.0,
|
| 357 |
+
"match": true
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"id": "q050",
|
| 361 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'",
|
| 362 |
+
"expected": 1306.5,
|
| 363 |
+
"observed": 1306.5,
|
| 364 |
+
"match": true
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"id": "q051",
|
| 368 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'",
|
| 369 |
+
"expected": 703.5,
|
| 370 |
+
"observed": 703.5,
|
| 371 |
+
"match": true
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"id": "q052",
|
| 375 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'",
|
| 376 |
+
"expected": 2457.0,
|
| 377 |
+
"observed": 2457.0,
|
| 378 |
+
"match": true
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"id": "q053",
|
| 382 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'",
|
| 383 |
+
"expected": 1053.0,
|
| 384 |
+
"observed": 1053.0,
|
| 385 |
+
"match": true
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"id": "q054",
|
| 389 |
+
"gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-03' AND \"tenant\" = 'globex'",
|
| 390 |
+
"expected": 115500.0,
|
| 391 |
+
"observed": 115500.0,
|
| 392 |
+
"match": true
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"id": "q055",
|
| 396 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"tenant\" = 'globex'",
|
| 397 |
+
"expected": -1500.0,
|
| 398 |
+
"observed": -1500.0,
|
| 399 |
+
"match": true
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"id": "q056",
|
| 403 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'",
|
| 404 |
+
"expected": 1277.25,
|
| 405 |
+
"observed": 1277.25,
|
| 406 |
+
"match": true
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"id": "q057",
|
| 410 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'",
|
| 411 |
+
"expected": 687.75,
|
| 412 |
+
"observed": 687.75,
|
| 413 |
+
"match": true
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"id": "q058",
|
| 417 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'",
|
| 418 |
+
"expected": 2425.5,
|
| 419 |
+
"observed": 2425.5,
|
| 420 |
+
"match": true
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"id": "q059",
|
| 424 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'",
|
| 425 |
+
"expected": 1039.5,
|
| 426 |
+
"observed": 1039.5,
|
| 427 |
+
"match": true
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"id": "q060",
|
| 431 |
+
"gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-04' AND \"tenant\" = 'globex'",
|
| 432 |
+
"expected": 114000.0,
|
| 433 |
+
"observed": 114000.0,
|
| 434 |
+
"match": true
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"id": "q061",
|
| 438 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"tenant\" = 'globex'",
|
| 439 |
+
"expected": -1500.0,
|
| 440 |
+
"observed": -1500.0,
|
| 441 |
+
"match": true
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"id": "q062",
|
| 445 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'",
|
| 446 |
+
"expected": 1248.0,
|
| 447 |
+
"observed": 1248.0,
|
| 448 |
+
"match": true
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"id": "q063",
|
| 452 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'",
|
| 453 |
+
"expected": 672.0,
|
| 454 |
+
"observed": 672.0,
|
| 455 |
+
"match": true
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"id": "q064",
|
| 459 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'",
|
| 460 |
+
"expected": 2394.0,
|
| 461 |
+
"observed": 2394.0,
|
| 462 |
+
"match": true
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"id": "q065",
|
| 466 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'",
|
| 467 |
+
"expected": 1026.0,
|
| 468 |
+
"observed": 1026.0,
|
| 469 |
+
"match": true
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"id": "q066",
|
| 473 |
+
"gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-05' AND \"tenant\" = 'globex'",
|
| 474 |
+
"expected": 112500.0,
|
| 475 |
+
"observed": 112500.0,
|
| 476 |
+
"match": true
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"id": "q067",
|
| 480 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"tenant\" = 'globex'",
|
| 481 |
+
"expected": -1500.0,
|
| 482 |
+
"observed": -1500.0,
|
| 483 |
+
"match": true
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"id": "q068",
|
| 487 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'",
|
| 488 |
+
"expected": 1218.75,
|
| 489 |
+
"observed": 1218.75,
|
| 490 |
+
"match": true
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"id": "q069",
|
| 494 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'",
|
| 495 |
+
"expected": 656.25,
|
| 496 |
+
"observed": 656.25,
|
| 497 |
+
"match": true
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"id": "q070",
|
| 501 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'",
|
| 502 |
+
"expected": 2362.5,
|
| 503 |
+
"observed": 2362.5,
|
| 504 |
+
"match": true
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"id": "q071",
|
| 508 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'",
|
| 509 |
+
"expected": 1012.5,
|
| 510 |
+
"observed": 1012.5,
|
| 511 |
+
"match": true
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"id": "q072",
|
| 515 |
+
"gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-06' AND \"tenant\" = 'globex'",
|
| 516 |
+
"expected": 111000.0,
|
| 517 |
+
"observed": 111000.0,
|
| 518 |
+
"match": true
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"id": "q073",
|
| 522 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"tenant\" = 'initech'",
|
| 523 |
+
"expected": 800.0,
|
| 524 |
+
"observed": 800.0,
|
| 525 |
+
"match": true
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"id": "q074",
|
| 529 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'",
|
| 530 |
+
"expected": 910.0,
|
| 531 |
+
"observed": 910.0,
|
| 532 |
+
"match": true
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"id": "q075",
|
| 536 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'",
|
| 537 |
+
"expected": 490.0,
|
| 538 |
+
"observed": 490.0,
|
| 539 |
+
"match": true
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"id": "q076",
|
| 543 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'",
|
| 544 |
+
"expected": 420.0,
|
| 545 |
+
"observed": 420.0,
|
| 546 |
+
"match": true
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"id": "q077",
|
| 550 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'",
|
| 551 |
+
"expected": 180.0,
|
| 552 |
+
"observed": 180.0,
|
| 553 |
+
"match": true
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"id": "q078",
|
| 557 |
+
"gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-01' AND \"tenant\" = 'initech'",
|
| 558 |
+
"expected": 20800.0,
|
| 559 |
+
"observed": 20800.0,
|
| 560 |
+
"match": true
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"id": "q079",
|
| 564 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"tenant\" = 'initech'",
|
| 565 |
+
"expected": 800.0,
|
| 566 |
+
"observed": 800.0,
|
| 567 |
+
"match": true
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"id": "q080",
|
| 571 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'",
|
| 572 |
+
"expected": 925.6,
|
| 573 |
+
"observed": 925.6,
|
| 574 |
+
"match": true
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"id": "q081",
|
| 578 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'",
|
| 579 |
+
"expected": 498.4,
|
| 580 |
+
"observed": 498.4,
|
| 581 |
+
"match": true
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"id": "q082",
|
| 585 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'",
|
| 586 |
+
"expected": 436.8,
|
| 587 |
+
"observed": 436.8,
|
| 588 |
+
"match": true
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"id": "q083",
|
| 592 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'",
|
| 593 |
+
"expected": 187.2,
|
| 594 |
+
"observed": 187.2,
|
| 595 |
+
"match": true
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"id": "q084",
|
| 599 |
+
"gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-02' AND \"tenant\" = 'initech'",
|
| 600 |
+
"expected": 21600.0,
|
| 601 |
+
"observed": 21600.0,
|
| 602 |
+
"match": true
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"id": "q085",
|
| 606 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"tenant\" = 'initech'",
|
| 607 |
+
"expected": 800.0,
|
| 608 |
+
"observed": 800.0,
|
| 609 |
+
"match": true
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"id": "q086",
|
| 613 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'",
|
| 614 |
+
"expected": 941.2,
|
| 615 |
+
"observed": 941.2,
|
| 616 |
+
"match": true
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"id": "q087",
|
| 620 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'",
|
| 621 |
+
"expected": 506.8,
|
| 622 |
+
"observed": 506.8,
|
| 623 |
+
"match": true
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"id": "q088",
|
| 627 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'",
|
| 628 |
+
"expected": 453.6,
|
| 629 |
+
"observed": 453.6,
|
| 630 |
+
"match": true
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"id": "q089",
|
| 634 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'",
|
| 635 |
+
"expected": 194.4,
|
| 636 |
+
"observed": 194.4,
|
| 637 |
+
"match": true
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"id": "q090",
|
| 641 |
+
"gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-03' AND \"tenant\" = 'initech'",
|
| 642 |
+
"expected": 22400.0,
|
| 643 |
+
"observed": 22400.0,
|
| 644 |
+
"match": true
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"id": "q091",
|
| 648 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"tenant\" = 'initech'",
|
| 649 |
+
"expected": 800.0,
|
| 650 |
+
"observed": 800.0,
|
| 651 |
+
"match": true
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"id": "q092",
|
| 655 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'",
|
| 656 |
+
"expected": 956.8,
|
| 657 |
+
"observed": 956.8,
|
| 658 |
+
"match": true
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"id": "q093",
|
| 662 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'",
|
| 663 |
+
"expected": 515.2,
|
| 664 |
+
"observed": 515.2,
|
| 665 |
+
"match": true
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"id": "q094",
|
| 669 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'",
|
| 670 |
+
"expected": 470.4,
|
| 671 |
+
"observed": 470.4,
|
| 672 |
+
"match": true
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"id": "q095",
|
| 676 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'",
|
| 677 |
+
"expected": 201.6,
|
| 678 |
+
"observed": 201.6,
|
| 679 |
+
"match": true
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"id": "q096",
|
| 683 |
+
"gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-04' AND \"tenant\" = 'initech'",
|
| 684 |
+
"expected": 23200.0,
|
| 685 |
+
"observed": 23200.0,
|
| 686 |
+
"match": true
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"id": "q097",
|
| 690 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"tenant\" = 'initech'",
|
| 691 |
+
"expected": 800.0,
|
| 692 |
+
"observed": 800.0,
|
| 693 |
+
"match": true
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"id": "q098",
|
| 697 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'",
|
| 698 |
+
"expected": 972.4,
|
| 699 |
+
"observed": 972.4,
|
| 700 |
+
"match": true
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"id": "q099",
|
| 704 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'",
|
| 705 |
+
"expected": 523.6,
|
| 706 |
+
"observed": 523.6,
|
| 707 |
+
"match": true
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"id": "q100",
|
| 711 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'",
|
| 712 |
+
"expected": 487.2,
|
| 713 |
+
"observed": 487.2,
|
| 714 |
+
"match": true
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"id": "q101",
|
| 718 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'",
|
| 719 |
+
"expected": 208.8,
|
| 720 |
+
"observed": 208.8,
|
| 721 |
+
"match": true
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"id": "q102",
|
| 725 |
+
"gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-05' AND \"tenant\" = 'initech'",
|
| 726 |
+
"expected": 24000.0,
|
| 727 |
+
"observed": 24000.0,
|
| 728 |
+
"match": true
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"id": "q103",
|
| 732 |
+
"gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"tenant\" = 'initech'",
|
| 733 |
+
"expected": 800.0,
|
| 734 |
+
"observed": 800.0,
|
| 735 |
+
"match": true
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"id": "q104",
|
| 739 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'",
|
| 740 |
+
"expected": 988.0,
|
| 741 |
+
"observed": 988.0,
|
| 742 |
+
"match": true
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"id": "q105",
|
| 746 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'",
|
| 747 |
+
"expected": 532.0,
|
| 748 |
+
"observed": 532.0,
|
| 749 |
+
"match": true
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"id": "q106",
|
| 753 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'",
|
| 754 |
+
"expected": 504.0,
|
| 755 |
+
"observed": 504.0,
|
| 756 |
+
"match": true
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"id": "q107",
|
| 760 |
+
"gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'",
|
| 761 |
+
"expected": 216.0,
|
| 762 |
+
"observed": 216.0,
|
| 763 |
+
"match": true
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"id": "q108",
|
| 767 |
+
"gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-06' AND \"tenant\" = 'initech'",
|
| 768 |
+
"expected": 24800.0,
|
| 769 |
+
"observed": 24800.0,
|
| 770 |
+
"match": true
|
| 771 |
+
}
|
| 772 |
+
],
|
| 773 |
+
"all_match": true
|
| 774 |
+
}
|
manifest.json
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pack": "saas-finance-evalpack",
|
| 3 |
+
"misata_version": "0.8.7.1",
|
| 4 |
+
"seed": 42,
|
| 5 |
+
"spec_sha256": "775506c1d65475794a6cc5d454312176afae2d7d3614805494af99e86444df86",
|
| 6 |
+
"tables": {
|
| 7 |
+
"mrr_movements": 6000
|
| 8 |
+
},
|
| 9 |
+
"questions_shipped": 108,
|
| 10 |
+
"questions_dropped": 0,
|
| 11 |
+
"dropped_questions": [],
|
| 12 |
+
"conformance_warnings": [],
|
| 13 |
+
"story_audit": {
|
| 14 |
+
"clean": true,
|
| 15 |
+
"score": 100.0,
|
| 16 |
+
"findings": []
|
| 17 |
+
},
|
| 18 |
+
"schema": {
|
| 19 |
+
"name": "saas-finance-evalpack",
|
| 20 |
+
"description": null,
|
| 21 |
+
"domain": null,
|
| 22 |
+
"tables": [
|
| 23 |
+
{
|
| 24 |
+
"name": "mrr_movements",
|
| 25 |
+
"row_count": 6000,
|
| 26 |
+
"description": null,
|
| 27 |
+
"is_reference": false,
|
| 28 |
+
"inline_data": null,
|
| 29 |
+
"columns": [],
|
| 30 |
+
"constraints": [],
|
| 31 |
+
"workflow_preset": null,
|
| 32 |
+
"workflow_config": null,
|
| 33 |
+
"correlations": [],
|
| 34 |
+
"state_machine": null,
|
| 35 |
+
"scd2": null,
|
| 36 |
+
"cluster_effect": null
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"columns": {
|
| 40 |
+
"mrr_movements": [
|
| 41 |
+
{
|
| 42 |
+
"name": "movement_id",
|
| 43 |
+
"type": "int",
|
| 44 |
+
"distribution_params": {
|
| 45 |
+
"min": 1,
|
| 46 |
+
"max": 9999999,
|
| 47 |
+
"distribution": "normal",
|
| 48 |
+
"_distribution_is_default": true
|
| 49 |
+
},
|
| 50 |
+
"nullable": false,
|
| 51 |
+
"unique": true,
|
| 52 |
+
"description": null
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"name": "tenant",
|
| 56 |
+
"type": "text",
|
| 57 |
+
"distribution_params": {},
|
| 58 |
+
"nullable": false,
|
| 59 |
+
"unique": false,
|
| 60 |
+
"description": null
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "period",
|
| 64 |
+
"type": "text",
|
| 65 |
+
"distribution_params": {},
|
| 66 |
+
"nullable": false,
|
| 67 |
+
"unique": false,
|
| 68 |
+
"description": null
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"name": "movement_type",
|
| 72 |
+
"type": "text",
|
| 73 |
+
"distribution_params": {},
|
| 74 |
+
"nullable": false,
|
| 75 |
+
"unique": false,
|
| 76 |
+
"description": null
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name": "amount",
|
| 80 |
+
"type": "float",
|
| 81 |
+
"distribution_params": {
|
| 82 |
+
"distribution": "normal",
|
| 83 |
+
"_distribution_is_default": true
|
| 84 |
+
},
|
| 85 |
+
"nullable": false,
|
| 86 |
+
"unique": false,
|
| 87 |
+
"description": null
|
| 88 |
+
}
|
| 89 |
+
]
|
| 90 |
+
},
|
| 91 |
+
"relationships": [],
|
| 92 |
+
"events": [],
|
| 93 |
+
"outcome_curves": [],
|
| 94 |
+
"rate_curves": [],
|
| 95 |
+
"group_shares": [],
|
| 96 |
+
"waterfalls": [
|
| 97 |
+
{
|
| 98 |
+
"table": "mrr_movements",
|
| 99 |
+
"period_column": "period",
|
| 100 |
+
"type_column": "movement_type",
|
| 101 |
+
"amount_column": "amount",
|
| 102 |
+
"starting_value": 50000.0,
|
| 103 |
+
"points": [
|
| 104 |
+
{
|
| 105 |
+
"period": "2025-01",
|
| 106 |
+
"ending_value": 53000.0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"period": "2025-02",
|
| 110 |
+
"ending_value": 56000.0
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"period": "2025-03",
|
| 114 |
+
"ending_value": 59000.0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"period": "2025-04",
|
| 118 |
+
"ending_value": 62000.0
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"period": "2025-05",
|
| 122 |
+
"ending_value": 65000.0
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"period": "2025-06",
|
| 126 |
+
"ending_value": 68000.0
|
| 127 |
+
}
|
| 128 |
+
],
|
| 129 |
+
"inflow_shares": {
|
| 130 |
+
"new": 0.65,
|
| 131 |
+
"expansion": 0.35
|
| 132 |
+
},
|
| 133 |
+
"outflow_shares": {
|
| 134 |
+
"churn": 0.7,
|
| 135 |
+
"contraction": 0.3
|
| 136 |
+
},
|
| 137 |
+
"outflow_rate": 0.03,
|
| 138 |
+
"segment_column": "tenant",
|
| 139 |
+
"segment_value": "acme",
|
| 140 |
+
"description": null
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"table": "mrr_movements",
|
| 144 |
+
"period_column": "period",
|
| 145 |
+
"type_column": "movement_type",
|
| 146 |
+
"amount_column": "amount",
|
| 147 |
+
"starting_value": 120000.0,
|
| 148 |
+
"points": [
|
| 149 |
+
{
|
| 150 |
+
"period": "2025-01",
|
| 151 |
+
"ending_value": 118500.0
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"period": "2025-02",
|
| 155 |
+
"ending_value": 117000.0
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"period": "2025-03",
|
| 159 |
+
"ending_value": 115500.0
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"period": "2025-04",
|
| 163 |
+
"ending_value": 114000.0
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"period": "2025-05",
|
| 167 |
+
"ending_value": 112500.0
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"period": "2025-06",
|
| 171 |
+
"ending_value": 111000.0
|
| 172 |
+
}
|
| 173 |
+
],
|
| 174 |
+
"inflow_shares": {
|
| 175 |
+
"new": 0.65,
|
| 176 |
+
"expansion": 0.35
|
| 177 |
+
},
|
| 178 |
+
"outflow_shares": {
|
| 179 |
+
"churn": 0.7,
|
| 180 |
+
"contraction": 0.3
|
| 181 |
+
},
|
| 182 |
+
"outflow_rate": 0.03,
|
| 183 |
+
"segment_column": "tenant",
|
| 184 |
+
"segment_value": "globex",
|
| 185 |
+
"description": null
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"table": "mrr_movements",
|
| 189 |
+
"period_column": "period",
|
| 190 |
+
"type_column": "movement_type",
|
| 191 |
+
"amount_column": "amount",
|
| 192 |
+
"starting_value": 20000.0,
|
| 193 |
+
"points": [
|
| 194 |
+
{
|
| 195 |
+
"period": "2025-01",
|
| 196 |
+
"ending_value": 20800.0
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"period": "2025-02",
|
| 200 |
+
"ending_value": 21600.0
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"period": "2025-03",
|
| 204 |
+
"ending_value": 22400.0
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"period": "2025-04",
|
| 208 |
+
"ending_value": 23200.0
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"period": "2025-05",
|
| 212 |
+
"ending_value": 24000.0
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"period": "2025-06",
|
| 216 |
+
"ending_value": 24800.0
|
| 217 |
+
}
|
| 218 |
+
],
|
| 219 |
+
"inflow_shares": {
|
| 220 |
+
"new": 0.65,
|
| 221 |
+
"expansion": 0.35
|
| 222 |
+
},
|
| 223 |
+
"outflow_shares": {
|
| 224 |
+
"churn": 0.7,
|
| 225 |
+
"contraction": 0.3
|
| 226 |
+
},
|
| 227 |
+
"outflow_rate": 0.03,
|
| 228 |
+
"segment_column": "tenant",
|
| 229 |
+
"segment_value": "initech",
|
| 230 |
+
"description": null
|
| 231 |
+
}
|
| 232 |
+
],
|
| 233 |
+
"stock_flows": [],
|
| 234 |
+
"generation_mode": "anchored",
|
| 235 |
+
"noise_config": null,
|
| 236 |
+
"realism": null,
|
| 237 |
+
"seed": 42,
|
| 238 |
+
"vocabularies": null
|
| 239 |
+
}
|
| 240 |
+
}
|
questions.jsonl
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id": "q001", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2}
|
| 2 |
+
{"id": "q002", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 2925.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "new"}, "round_decimals": 2}
|
| 3 |
+
{"id": "q003", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1575.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "expansion"}, "round_decimals": 2}
|
| 4 |
+
{"id": "q004", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1050.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "churn"}, "round_decimals": 2}
|
| 5 |
+
{"id": "q005", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 450.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "contraction"}, "round_decimals": 2}
|
| 6 |
+
{"id": "q006", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-01' AND \"tenant\" = 'acme'", "expected_answer": 53000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2}
|
| 7 |
+
{"id": "q007", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2}
|
| 8 |
+
{"id": "q008", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 2983.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "new"}, "round_decimals": 2}
|
| 9 |
+
{"id": "q009", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1606.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "expansion"}, "round_decimals": 2}
|
| 10 |
+
{"id": "q010", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1113.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "churn"}, "round_decimals": 2}
|
| 11 |
+
{"id": "q011", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 477.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "contraction"}, "round_decimals": 2}
|
| 12 |
+
{"id": "q012", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-02' AND \"tenant\" = 'acme'", "expected_answer": 56000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2}
|
| 13 |
+
{"id": "q013", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2}
|
| 14 |
+
{"id": "q014", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 3042.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "new"}, "round_decimals": 2}
|
| 15 |
+
{"id": "q015", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1638.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "expansion"}, "round_decimals": 2}
|
| 16 |
+
{"id": "q016", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1176.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "churn"}, "round_decimals": 2}
|
| 17 |
+
{"id": "q017", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 504.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "contraction"}, "round_decimals": 2}
|
| 18 |
+
{"id": "q018", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-03' AND \"tenant\" = 'acme'", "expected_answer": 59000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2}
|
| 19 |
+
{"id": "q019", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2}
|
| 20 |
+
{"id": "q020", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 3100.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "new"}, "round_decimals": 2}
|
| 21 |
+
{"id": "q021", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1669.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "expansion"}, "round_decimals": 2}
|
| 22 |
+
{"id": "q022", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1239.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "churn"}, "round_decimals": 2}
|
| 23 |
+
{"id": "q023", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 531.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "contraction"}, "round_decimals": 2}
|
| 24 |
+
{"id": "q024", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-04' AND \"tenant\" = 'acme'", "expected_answer": 62000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2}
|
| 25 |
+
{"id": "q025", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2}
|
| 26 |
+
{"id": "q026", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 3159.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "new"}, "round_decimals": 2}
|
| 27 |
+
{"id": "q027", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1701.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "expansion"}, "round_decimals": 2}
|
| 28 |
+
{"id": "q028", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1302.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "churn"}, "round_decimals": 2}
|
| 29 |
+
{"id": "q029", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 558.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "contraction"}, "round_decimals": 2}
|
| 30 |
+
{"id": "q030", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-05' AND \"tenant\" = 'acme'", "expected_answer": 65000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2}
|
| 31 |
+
{"id": "q031", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"tenant\" = 'acme'", "expected_answer": 3000.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2}
|
| 32 |
+
{"id": "q032", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'new' AND \"tenant\" = 'acme'", "expected_answer": 3217.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "new"}, "round_decimals": 2}
|
| 33 |
+
{"id": "q033", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'acme'", "expected_answer": 1732.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "expansion"}, "round_decimals": 2}
|
| 34 |
+
{"id": "q034", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'churn' AND \"tenant\" = 'acme'", "expected_answer": 1365.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "churn"}, "round_decimals": 2}
|
| 35 |
+
{"id": "q035", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'acme' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'acme'", "expected_answer": 585.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "contraction"}, "round_decimals": 2}
|
| 36 |
+
{"id": "q036", "question": "The balance before the first period in the mrr_movements table was 50000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'acme' at the end of period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(50000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-06' AND \"tenant\" = 'acme'", "expected_answer": 68000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2}
|
| 37 |
+
{"id": "q037", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2}
|
| 38 |
+
{"id": "q038", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1365.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "new"}, "round_decimals": 2}
|
| 39 |
+
{"id": "q039", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 735.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "expansion"}, "round_decimals": 2}
|
| 40 |
+
{"id": "q040", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2520.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "churn"}, "round_decimals": 2}
|
| 41 |
+
{"id": "q041", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1080.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "contraction"}, "round_decimals": 2}
|
| 42 |
+
{"id": "q042", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-01' AND \"tenant\" = 'globex'", "expected_answer": 118500.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2}
|
| 43 |
+
{"id": "q043", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2}
|
| 44 |
+
{"id": "q044", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1335.75, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "new"}, "round_decimals": 2}
|
| 45 |
+
{"id": "q045", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 719.25, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "expansion"}, "round_decimals": 2}
|
| 46 |
+
{"id": "q046", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2488.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "churn"}, "round_decimals": 2}
|
| 47 |
+
{"id": "q047", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1066.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "contraction"}, "round_decimals": 2}
|
| 48 |
+
{"id": "q048", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-02' AND \"tenant\" = 'globex'", "expected_answer": 117000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2}
|
| 49 |
+
{"id": "q049", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2}
|
| 50 |
+
{"id": "q050", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1306.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "new"}, "round_decimals": 2}
|
| 51 |
+
{"id": "q051", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 703.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "expansion"}, "round_decimals": 2}
|
| 52 |
+
{"id": "q052", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2457.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "churn"}, "round_decimals": 2}
|
| 53 |
+
{"id": "q053", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1053.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "contraction"}, "round_decimals": 2}
|
| 54 |
+
{"id": "q054", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-03' AND \"tenant\" = 'globex'", "expected_answer": 115500.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2}
|
| 55 |
+
{"id": "q055", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2}
|
| 56 |
+
{"id": "q056", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1277.25, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "new"}, "round_decimals": 2}
|
| 57 |
+
{"id": "q057", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 687.75, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "expansion"}, "round_decimals": 2}
|
| 58 |
+
{"id": "q058", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2425.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "churn"}, "round_decimals": 2}
|
| 59 |
+
{"id": "q059", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1039.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "contraction"}, "round_decimals": 2}
|
| 60 |
+
{"id": "q060", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-04' AND \"tenant\" = 'globex'", "expected_answer": 114000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2}
|
| 61 |
+
{"id": "q061", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2}
|
| 62 |
+
{"id": "q062", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1248.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "new"}, "round_decimals": 2}
|
| 63 |
+
{"id": "q063", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 672.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "expansion"}, "round_decimals": 2}
|
| 64 |
+
{"id": "q064", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2394.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "churn"}, "round_decimals": 2}
|
| 65 |
+
{"id": "q065", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1026.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "contraction"}, "round_decimals": 2}
|
| 66 |
+
{"id": "q066", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-05' AND \"tenant\" = 'globex'", "expected_answer": 112500.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2}
|
| 67 |
+
{"id": "q067", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"tenant\" = 'globex'", "expected_answer": -1500.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2}
|
| 68 |
+
{"id": "q068", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'new' AND \"tenant\" = 'globex'", "expected_answer": 1218.75, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "new"}, "round_decimals": 2}
|
| 69 |
+
{"id": "q069", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'globex'", "expected_answer": 656.25, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "expansion"}, "round_decimals": 2}
|
| 70 |
+
{"id": "q070", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'churn' AND \"tenant\" = 'globex'", "expected_answer": 2362.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "churn"}, "round_decimals": 2}
|
| 71 |
+
{"id": "q071", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'globex' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'globex'", "expected_answer": 1012.5, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "contraction"}, "round_decimals": 2}
|
| 72 |
+
{"id": "q072", "question": "The balance before the first period in the mrr_movements table was 120000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'globex' at the end of period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(120000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-06' AND \"tenant\" = 'globex'", "expected_answer": 111000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2}
|
| 73 |
+
{"id": "q073", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2}
|
| 74 |
+
{"id": "q074", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 910.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "new"}, "round_decimals": 2}
|
| 75 |
+
{"id": "q075", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 490.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "expansion"}, "round_decimals": 2}
|
| 76 |
+
{"id": "q076", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 420.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "churn"}, "round_decimals": 2}
|
| 77 |
+
{"id": "q077", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-01' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 180.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-01", "type": "contraction"}, "round_decimals": 2}
|
| 78 |
+
{"id": "q078", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-01'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-01' AND \"tenant\" = 'initech'", "expected_answer": 20800.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-01"}, "round_decimals": 2}
|
| 79 |
+
{"id": "q079", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2}
|
| 80 |
+
{"id": "q080", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 925.6, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "new"}, "round_decimals": 2}
|
| 81 |
+
{"id": "q081", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 498.4, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "expansion"}, "round_decimals": 2}
|
| 82 |
+
{"id": "q082", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 436.8, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "churn"}, "round_decimals": 2}
|
| 83 |
+
{"id": "q083", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-02' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 187.2, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-02", "type": "contraction"}, "round_decimals": 2}
|
| 84 |
+
{"id": "q084", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-02'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-02' AND \"tenant\" = 'initech'", "expected_answer": 21600.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-02"}, "round_decimals": 2}
|
| 85 |
+
{"id": "q085", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2}
|
| 86 |
+
{"id": "q086", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 941.2, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "new"}, "round_decimals": 2}
|
| 87 |
+
{"id": "q087", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 506.8, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "expansion"}, "round_decimals": 2}
|
| 88 |
+
{"id": "q088", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 453.6, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "churn"}, "round_decimals": 2}
|
| 89 |
+
{"id": "q089", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-03' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 194.4, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-03", "type": "contraction"}, "round_decimals": 2}
|
| 90 |
+
{"id": "q090", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-03'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-03' AND \"tenant\" = 'initech'", "expected_answer": 22400.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-03"}, "round_decimals": 2}
|
| 91 |
+
{"id": "q091", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2}
|
| 92 |
+
{"id": "q092", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 956.8, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "new"}, "round_decimals": 2}
|
| 93 |
+
{"id": "q093", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 515.2, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "expansion"}, "round_decimals": 2}
|
| 94 |
+
{"id": "q094", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 470.4, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "churn"}, "round_decimals": 2}
|
| 95 |
+
{"id": "q095", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-04' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 201.6, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-04", "type": "contraction"}, "round_decimals": 2}
|
| 96 |
+
{"id": "q096", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-04'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-04' AND \"tenant\" = 'initech'", "expected_answer": 23200.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-04"}, "round_decimals": 2}
|
| 97 |
+
{"id": "q097", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2}
|
| 98 |
+
{"id": "q098", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 972.4, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "new"}, "round_decimals": 2}
|
| 99 |
+
{"id": "q099", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 523.6, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "expansion"}, "round_decimals": 2}
|
| 100 |
+
{"id": "q100", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 487.2, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "churn"}, "round_decimals": 2}
|
| 101 |
+
{"id": "q101", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-05' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 208.8, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-05", "type": "contraction"}, "round_decimals": 2}
|
| 102 |
+
{"id": "q102", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-05'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-05' AND \"tenant\" = 'initech'", "expected_answer": 24000.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-05"}, "round_decimals": 2}
|
| 103 |
+
{"id": "q103", "question": "In the mrr_movements table, treating expansion, new as inflows and every other movement_type as an outflow, what is the net movement of amount for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places (negative for a net decline).", "gold_sql": "SELECT ROUND(SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"tenant\" = 'initech'", "expected_answer": 800.0, "answer_type": "number", "tags": ["identity", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_net", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2}
|
| 104 |
+
{"id": "q104", "question": "In the mrr_movements table, what is the total amount of movement_type 'new' for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'new' AND \"tenant\" = 'initech'", "expected_answer": 988.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "new"}, "round_decimals": 2}
|
| 105 |
+
{"id": "q105", "question": "In the mrr_movements table, what is the total amount of movement_type 'expansion' for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'expansion' AND \"tenant\" = 'initech'", "expected_answer": 532.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "expansion"}, "round_decimals": 2}
|
| 106 |
+
{"id": "q106", "question": "In the mrr_movements table, what is the total amount of movement_type 'churn' for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'churn' AND \"tenant\" = 'initech'", "expected_answer": 504.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "churn"}, "round_decimals": 2}
|
| 107 |
+
{"id": "q107", "question": "In the mrr_movements table, what is the total amount of movement_type 'contraction' for rows where tenant is 'initech' in period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(SUM(\"amount\"), 2) FROM \"mrr_movements\" WHERE \"period\" = '2025-06' AND \"movement_type\" = 'contraction' AND \"tenant\" = 'initech'", "expected_answer": 216.0, "answer_type": "number", "tags": ["group_by", "filtered_aggregation", "single_table"], "source": {"kind": "waterfall_component", "table": "mrr_movements", "period": "2025-06", "type": "contraction"}, "round_decimals": 2}
|
| 108 |
+
{"id": "q108", "question": "The balance before the first period in the mrr_movements table was 20000.0. Treating expansion, new as inflows and every other movement_type as an outflow, what is the balance for rows where tenant is 'initech' at the end of period '2025-06'? Give a number rounded to 2 decimal places.", "gold_sql": "SELECT ROUND(20000.0 + SUM(CASE WHEN \"movement_type\" IN ('expansion', 'new') THEN \"amount\" ELSE -\"amount\" END), 2) FROM \"mrr_movements\" WHERE \"period\" <= '2025-06' AND \"tenant\" = 'initech'", "expected_answer": 24800.0, "answer_type": "number", "tags": ["identity", "running_total", "single_table"], "source": {"kind": "waterfall_balance", "table": "mrr_movements", "period": "2025-06"}, "round_decimals": 2}
|
schema.misata.yaml
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# yaml-language-server: $schema=https://raw.githubusercontent.com/rasinmuhammed/misata/main/schema/misata.schema.json
|
| 2 |
+
name: saas-finance-evalpack
|
| 3 |
+
seed: 42
|
| 4 |
+
generation_mode: anchored
|
| 5 |
+
tables:
|
| 6 |
+
mrr_movements:
|
| 7 |
+
rows: 6000
|
| 8 |
+
columns:
|
| 9 |
+
movement_id:
|
| 10 |
+
type: int
|
| 11 |
+
unique: true
|
| 12 |
+
nullable: false
|
| 13 |
+
min: 1
|
| 14 |
+
max: 9999999
|
| 15 |
+
distribution: normal
|
| 16 |
+
tenant:
|
| 17 |
+
type: text
|
| 18 |
+
nullable: false
|
| 19 |
+
period:
|
| 20 |
+
type: text
|
| 21 |
+
nullable: false
|
| 22 |
+
movement_type:
|
| 23 |
+
type: text
|
| 24 |
+
nullable: false
|
| 25 |
+
amount:
|
| 26 |
+
type: float
|
| 27 |
+
nullable: false
|
| 28 |
+
distribution: normal
|
| 29 |
+
waterfalls:
|
| 30 |
+
- table: mrr_movements
|
| 31 |
+
segment_column: tenant
|
| 32 |
+
segment_value: acme
|
| 33 |
+
starting_value: 50000.0
|
| 34 |
+
points:
|
| 35 |
+
- period: 2025-01
|
| 36 |
+
ending_value: 53000.0
|
| 37 |
+
- period: 2025-02
|
| 38 |
+
ending_value: 56000.0
|
| 39 |
+
- period: 2025-03
|
| 40 |
+
ending_value: 59000.0
|
| 41 |
+
- period: 2025-04
|
| 42 |
+
ending_value: 62000.0
|
| 43 |
+
- period: 2025-05
|
| 44 |
+
ending_value: 65000.0
|
| 45 |
+
- period: 2025-06
|
| 46 |
+
ending_value: 68000.0
|
| 47 |
+
inflow_shares:
|
| 48 |
+
new: 0.65
|
| 49 |
+
expansion: 0.35
|
| 50 |
+
outflow_shares:
|
| 51 |
+
churn: 0.7
|
| 52 |
+
contraction: 0.3
|
| 53 |
+
- table: mrr_movements
|
| 54 |
+
segment_column: tenant
|
| 55 |
+
segment_value: globex
|
| 56 |
+
starting_value: 120000.0
|
| 57 |
+
points:
|
| 58 |
+
- period: 2025-01
|
| 59 |
+
ending_value: 118500.0
|
| 60 |
+
- period: 2025-02
|
| 61 |
+
ending_value: 117000.0
|
| 62 |
+
- period: 2025-03
|
| 63 |
+
ending_value: 115500.0
|
| 64 |
+
- period: 2025-04
|
| 65 |
+
ending_value: 114000.0
|
| 66 |
+
- period: 2025-05
|
| 67 |
+
ending_value: 112500.0
|
| 68 |
+
- period: 2025-06
|
| 69 |
+
ending_value: 111000.0
|
| 70 |
+
inflow_shares:
|
| 71 |
+
new: 0.65
|
| 72 |
+
expansion: 0.35
|
| 73 |
+
outflow_shares:
|
| 74 |
+
churn: 0.7
|
| 75 |
+
contraction: 0.3
|
| 76 |
+
- table: mrr_movements
|
| 77 |
+
segment_column: tenant
|
| 78 |
+
segment_value: initech
|
| 79 |
+
starting_value: 20000.0
|
| 80 |
+
points:
|
| 81 |
+
- period: 2025-01
|
| 82 |
+
ending_value: 20800.0
|
| 83 |
+
- period: 2025-02
|
| 84 |
+
ending_value: 21600.0
|
| 85 |
+
- period: 2025-03
|
| 86 |
+
ending_value: 22400.0
|
| 87 |
+
- period: 2025-04
|
| 88 |
+
ending_value: 23200.0
|
| 89 |
+
- period: 2025-05
|
| 90 |
+
ending_value: 24000.0
|
| 91 |
+
- period: 2025-06
|
| 92 |
+
ending_value: 24800.0
|
| 93 |
+
inflow_shares:
|
| 94 |
+
new: 0.65
|
| 95 |
+
expansion: 0.35
|
| 96 |
+
outflow_shares:
|
| 97 |
+
churn: 0.7
|
| 98 |
+
contraction: 0.3
|
tables/mrr_movements.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
verify.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Independently re-verify this evalpack: run every gold SQL with DuckDB
|
| 3 |
+
against the CSVs in tables/ and compare to the expected answers.
|
| 4 |
+
|
| 5 |
+
Usage: python verify.py (exits 1 on any mismatch)
|
| 6 |
+
"""
|
| 7 |
+
import json
|
| 8 |
+
import sys
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
|
| 11 |
+
import duckdb
|
| 12 |
+
|
| 13 |
+
HERE = Path(__file__).parent
|
| 14 |
+
con = duckdb.connect()
|
| 15 |
+
for csv in sorted((HERE / "tables").glob("*.csv")):
|
| 16 |
+
path = str(csv.resolve()).replace("'", "''")
|
| 17 |
+
con.execute(
|
| 18 |
+
'CREATE VIEW "%s" AS SELECT * FROM read_csv_auto(\'%s\')'
|
| 19 |
+
% (csv.stem, path)
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
failures = 0
|
| 23 |
+
total = 0
|
| 24 |
+
for line in (HERE / "questions.jsonl").read_text().splitlines():
|
| 25 |
+
if not line.strip():
|
| 26 |
+
continue
|
| 27 |
+
q = json.loads(line)
|
| 28 |
+
total += 1
|
| 29 |
+
row = con.execute(q["gold_sql"]).fetchone()
|
| 30 |
+
observed = row[0] if row else None
|
| 31 |
+
expected = q["expected_answer"]
|
| 32 |
+
if q["answer_type"] == "string":
|
| 33 |
+
ok = str(observed) == str(expected)
|
| 34 |
+
else:
|
| 35 |
+
nd = q.get("round_decimals", 0)
|
| 36 |
+
try:
|
| 37 |
+
ok = (
|
| 38 |
+
observed is not None
|
| 39 |
+
and abs(round(float(observed), nd) - round(float(expected), nd))
|
| 40 |
+
< 1e-9
|
| 41 |
+
)
|
| 42 |
+
except (TypeError, ValueError):
|
| 43 |
+
ok = False
|
| 44 |
+
status = "OK " if ok else "FAIL"
|
| 45 |
+
if not ok:
|
| 46 |
+
failures += 1
|
| 47 |
+
print(f"{status} {q['id']}: expected={expected} observed={observed}")
|
| 48 |
+
print(f" {q['gold_sql']}")
|
| 49 |
+
else:
|
| 50 |
+
print(f"{status} {q['id']}: {expected}")
|
| 51 |
+
|
| 52 |
+
print(f"\n{total - failures}/{total} verified exactly")
|
| 53 |
+
sys.exit(1 if failures else 0)
|