Datasets:
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- pt
|
| 7 |
+
tags:
|
| 8 |
+
- text-to-sql
|
| 9 |
+
- portuguese
|
| 10 |
+
- benchmark
|
| 11 |
+
- sql
|
| 12 |
+
- postgis
|
| 13 |
+
- geospatial
|
| 14 |
+
- environmental-registry
|
| 15 |
+
size_categories:
|
| 16 |
+
- n<1K
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Environmental Registry Test Set
|
| 20 |
+
|
| 21 |
+
This dataset is the anonymized primary benchmark used for evaluating agentic Portuguese Text-to-SQL over a real PostgreSQL/PostGIS environmental-registry database. The underlying production database is not released, but the benchmark metadata and gold labels are provided for transparency and comparison.
|
| 22 |
+
|
| 23 |
+
Code and reproducibility repository:
|
| 24 |
+
|
| 25 |
+
https://github.com/Boakpe/distilled-slms-for-text-to-sql-pt-br
|
| 26 |
+
|
| 27 |
+
Related collection:
|
| 28 |
+
|
| 29 |
+
https://huggingface.co/collections/Boakpe/distilled-slms-for-text-to-sql-pt-br
|
| 30 |
+
|
| 31 |
+
## Dataset Summary
|
| 32 |
+
|
| 33 |
+
- Rows: 180
|
| 34 |
+
- Split: `test`
|
| 35 |
+
- SQL questions: 90
|
| 36 |
+
- Clarification questions: 45
|
| 37 |
+
- Unanswerable questions: 45
|
| 38 |
+
- SQL difficulty split: 20 easy, 30 medium, 30 hard, 10 expert
|
| 39 |
+
- Language: Brazilian Portuguese
|
| 40 |
+
- Database type: PostgreSQL/PostGIS environmental-registry database
|
| 41 |
+
|
| 42 |
+
The primary schema contains 19 tables and covers rural properties, municipalities, Indigenous Lands, conservation units, environmental embargoes, settlements, quilombola territories, federal public lands, deforestation events, and spatial-overlap facts.
|
| 43 |
+
|
| 44 |
+
## Columns
|
| 45 |
+
|
| 46 |
+
- `id`: benchmark identifier.
|
| 47 |
+
- `pergunta`: natural-language question in Portuguese.
|
| 48 |
+
- `sql`: gold SQL for SQL questions, or terminal label such as `clarification` / `unanswerable` for non-SQL questions.
|
| 49 |
+
- `dificuldade`: SQL difficulty label.
|
| 50 |
+
- `categorias`: topic labels.
|
| 51 |
+
- `order_matters`: whether row order is semantically required.
|
| 52 |
+
- `num_column_matters`: whether exact column count is required.
|
| 53 |
+
- `num_row_matters`: whether exact row count is required.
|
| 54 |
+
|
| 55 |
+
## Evaluation Design
|
| 56 |
+
|
| 57 |
+
The benchmark combines:
|
| 58 |
+
|
| 59 |
+
- SQL generation.
|
| 60 |
+
- Ambiguity detection through clarification questions.
|
| 61 |
+
- Unanswerability detection.
|
| 62 |
+
- PostGIS/geospatial reasoning.
|
| 63 |
+
- Temporal filters, joins, aggregations, and domain-specific value grounding.
|
| 64 |
+
|
| 65 |
+
SQL evaluation uses execution comparison rather than exact SQL-string match. The reported primary metric is relaxed execution accuracy, with strict execution accuracy also reported as a diagnostic.
|
| 66 |
+
|
| 67 |
+
## Reported Results
|
| 68 |
+
|
| 69 |
+
Primary environmental-registry benchmark, Pass@1:
|
| 70 |
+
|
| 71 |
+
| Model | Overall | Strict SQL | Relaxed SQL | Non-SQL | Clarification | Unanswerable |
|
| 72 |
+
|---|---:|---:|---:|---:|---:|---:|
|
| 73 |
+
| DeepSeek V4 Pro | 86.7 | 44.4 | 83.3 | 90.0 | 93.3 | 86.7 |
|
| 74 |
+
| GLM 5.1 | 84.4 | 44.4 | 80.0 | 88.9 | 86.7 | 91.1 |
|
| 75 |
+
| Qwen3-4B-Thinking FT | 78.9 | 34.4 | 70.0 | 87.8 | 86.7 | 88.9 |
|
| 76 |
+
| Qwen3.5-27B-Q3_K_M teacher | 75.0 | 40.0 | 70.0 | 80.0 | 75.6 | 84.4 |
|
| 77 |
+
| Qwen3-4B-Thinking-2507 base | 56.1 | 28.9 | 36.7 | 75.6 | 71.1 | 80.0 |
|
| 78 |
+
|
| 79 |
+
Fine-tuned model Pass@K:
|
| 80 |
+
|
| 81 |
+
| Setting | Overall | Relaxed SQL | Non-SQL |
|
| 82 |
+
|---|---:|---:|---:|
|
| 83 |
+
| Pass@1 | 78.9 | 70.0 | 87.8 |
|
| 84 |
+
| Pass@5 | 91.7 | 87.8 | 95.6 |
|
| 85 |
+
|
| 86 |
+
## License
|
| 87 |
+
|
| 88 |
+
Apache 2.0.
|