Datasets:
SREB v0.2.0: корпус 204 семейства, 5712 состояний, улики на 136 семейств, 4 модели
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +3 -60
- .github/workflows/validate.yml +39 -0
- .gitignore +4 -0
- .zenodo.json +17 -0
- CITATION.cff +11 -0
- data/corpus/families.json +928 -0
- data/corpus/shop.json +956 -0
- data/corpus/university.json +966 -0
- data/evidence/active_outer.json +113 -0
- data/evidence/all_returned.json +160 -0
- data/evidence/borrowers.json +62 -0
- data/evidence/latest_ties.json +62 -0
- data/evidence/lib_book_cheaper_than_other.json +62 -0
- data/evidence/lib_book_loan_sum.json +62 -0
- data/evidence/lib_books_distinct_prices.json +62 -0
- data/evidence/lib_books_loaned_in.json +207 -0
- data/evidence/lib_books_never_loaned.json +95 -0
- data/evidence/lib_books_not_loaned_in.json +62 -0
- data/evidence/lib_books_order_price_desc.json +62 -0
- data/evidence/lib_books_price_boundary.json +62 -0
- data/evidence/lib_books_price_open_range.json +88 -0
- data/evidence/lib_books_price_or.json +62 -0
- data/evidence/lib_books_price_rank.json +62 -0
- data/evidence/lib_books_title_like.json +62 -0
- data/evidence/lib_count_star_vs_col.json +114 -0
- data/evidence/lib_global_stats.json +62 -0
- data/evidence/lib_loan_book_price.json +62 -0
- data/evidence/lib_loans_above_avg.json +62 -0
- data/evidence/lib_loans_count_by_day_order.json +109 -0
- data/evidence/lib_loans_cte.json +62 -0
- data/evidence/lib_loans_day_range.json +62 -0
- data/evidence/lib_loans_fee_in.json +62 -0
- data/evidence/lib_loans_fee_or_returned.json +94 -0
- data/evidence/lib_loans_fee_range.json +62 -0
- data/evidence/lib_loans_fee_zero_sum.json +96 -0
- data/evidence/lib_loans_limit3.json +62 -0
- data/evidence/lib_loans_order_fee.json +62 -0
- data/evidence/lib_loans_returned_in.json +62 -0
- data/evidence/lib_loans_returned_null.json +62 -0
- data/evidence/lib_loans_row_number.json +63 -0
- data/evidence/lib_reader_all_null_returned.json +99 -0
- data/evidence/lib_reader_avg_fee.json +62 -0
- data/evidence/lib_reader_book_multiplicity.json +62 -0
- data/evidence/lib_reader_book_titles.json +112 -0
- data/evidence/lib_reader_cheapest_book.json +62 -0
- data/evidence/lib_reader_count_returned_equal.json +62 -0
- data/evidence/lib_reader_derived_counts.json +98 -0
- data/evidence/lib_reader_distinct_books.json +62 -0
- data/evidence/lib_reader_fee_positive.json +62 -0
- data/evidence/lib_reader_fee_rank.json +62 -0
.gitattributes
CHANGED
|
@@ -1,60 +1,3 @@
|
|
| 1 |
-
*
|
| 2 |
-
*.
|
| 3 |
-
*.
|
| 4 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
-
# Audio files - uncompressed
|
| 40 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
-
# Audio files - compressed
|
| 44 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
-
# Image files - uncompressed
|
| 50 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
-
# Image files - compressed
|
| 55 |
-
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
-
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
-
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
-
# Video files - compressed
|
| 59 |
-
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
-
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
* text=auto eol=lf
|
| 2 |
+
*.png binary
|
| 3 |
+
*.jpg binary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/validate.yml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: validate dataset
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
pull_request:
|
| 6 |
+
|
| 7 |
+
jobs:
|
| 8 |
+
validate:
|
| 9 |
+
runs-on: ubuntu-latest
|
| 10 |
+
steps:
|
| 11 |
+
- uses: actions/checkout@v4
|
| 12 |
+
|
| 13 |
+
- uses: actions/setup-python@v5
|
| 14 |
+
with:
|
| 15 |
+
python-version: "3.12"
|
| 16 |
+
|
| 17 |
+
- name: Syntax check of all scripts
|
| 18 |
+
run: |
|
| 19 |
+
set -e
|
| 20 |
+
for f in scripts/*.py; do
|
| 21 |
+
echo "checking $f"
|
| 22 |
+
python -m py_compile "$f"
|
| 23 |
+
done
|
| 24 |
+
|
| 25 |
+
- name: Validate dataset integrity
|
| 26 |
+
run: python scripts/check_corpus.py --repo-root .
|
| 27 |
+
|
| 28 |
+
- name: Recompute summary tables and compare with committed docs/tables.md
|
| 29 |
+
run: python scripts/recompute_tables.py --repo-root .
|
| 30 |
+
|
| 31 |
+
- name: Fail if generated tables differ from committed ones
|
| 32 |
+
run: |
|
| 33 |
+
set -e
|
| 34 |
+
python scripts/recompute_tables.py --repo-root . --write
|
| 35 |
+
if ! git diff --quiet -- docs/tables.md; then
|
| 36 |
+
echo "::error::docs/tables.md is stale: run scripts/recompute_tables.py --write and commit the result"
|
| 37 |
+
git --no-pager diff -- docs/tables.md
|
| 38 |
+
exit 1
|
| 39 |
+
fi
|
.gitignore
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/
|
| 2 |
+
*.pyc
|
| 3 |
+
.env
|
| 4 |
+
runs_local/
|
.zenodo.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"title": "SREB: SQL Rewrite Evidence Benchmark",
|
| 3 |
+
"description": "A benchmark of executable evidence for SQL query rewrites proposed by language models. For every rewrite the dataset records the database state on which the result changes and the rows that prove it, together with the DBMS version, model digest, sampling parameters and a counterexample.",
|
| 4 |
+
"upload_type": "dataset",
|
| 5 |
+
"access_right": "open",
|
| 6 |
+
"license": "cc-by-4.0",
|
| 7 |
+
"creators": [
|
| 8 |
+
{"name": "Yakovlev, Artem", "orcid": "0009-0006-8617-7895"}
|
| 9 |
+
],
|
| 10 |
+
"keywords": [
|
| 11 |
+
"SQL", "query rewriting", "query optimization", "language models",
|
| 12 |
+
"counterexamples", "database testing", "benchmark", "reproducibility"
|
| 13 |
+
],
|
| 14 |
+
"related_identifiers": [
|
| 15 |
+
{"identifier": "https://github.com/ykvlev/sql-rewrite-evidence-bench", "relation": "isSupplementTo", "scheme": "url"}
|
| 16 |
+
]
|
| 17 |
+
}
|
CITATION.cff
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
title: "SREB: SQL Rewrite Evidence Benchmark"
|
| 3 |
+
message: "If you use this dataset, please cite it as below."
|
| 4 |
+
type: dataset
|
| 5 |
+
authors:
|
| 6 |
+
- family-names: Yakovlev
|
| 7 |
+
given-names: Artem
|
| 8 |
+
orcid: "https://orcid.org/0009-0006-8617-7895"
|
| 9 |
+
version: "0.2.0"
|
| 10 |
+
date-released: "2026-10-19"
|
| 11 |
+
license: CC-BY-4.0
|
data/corpus/families.json
ADDED
|
@@ -0,0 +1,928 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset": "SREB",
|
| 4 |
+
"dataset_version": "0.2.0",
|
| 5 |
+
"dialect": "mysql",
|
| 6 |
+
"dbms_tested": "MySQL 8.4.11",
|
| 7 |
+
"source": {
|
| 8 |
+
"corpus_sha256": "ff7d02331e7c5a4b650eff35742bb7d466753e7a2ed51d59310a6e8c3581ca58",
|
| 9 |
+
"source_file": "research/library_v1/corpus.json",
|
| 10 |
+
"frozen": "2026-10-15",
|
| 11 |
+
"note": "Frozen synthetic library corpus: 12 hand-written queries, 28 allowed states per family, 4 positive controls in the upstream corpus."
|
| 12 |
+
},
|
| 13 |
+
"ddl": [
|
| 14 |
+
"CREATE TABLE lib_readers(id INTEGER PRIMARY KEY, name VARCHAR(40) NOT NULL UNIQUE)",
|
| 15 |
+
"CREATE TABLE lib_books(id INTEGER PRIMARY KEY, title VARCHAR(40) NOT NULL UNIQUE, price INTEGER NOT NULL)",
|
| 16 |
+
"CREATE TABLE lib_loans(id INTEGER PRIMARY KEY, reader_id INTEGER NOT NULL, book_id INTEGER NOT NULL, day_no INTEGER NOT NULL, fee INTEGER NOT NULL, returned INTEGER, FOREIGN KEY(reader_id) REFERENCES lib_readers(id), FOREIGN KEY(book_id) REFERENCES lib_books(id))"
|
| 17 |
+
],
|
| 18 |
+
"constraints": [
|
| 19 |
+
"lib_readers.id PRIMARY KEY",
|
| 20 |
+
"lib_readers.name NOT NULL UNIQUE",
|
| 21 |
+
"lib_books.id PRIMARY KEY",
|
| 22 |
+
"lib_books.title NOT NULL UNIQUE",
|
| 23 |
+
"lib_books.price NOT NULL",
|
| 24 |
+
"lib_loans.id PRIMARY KEY",
|
| 25 |
+
"lib_loans.reader_id NOT NULL",
|
| 26 |
+
"lib_loans.reader_id REFERENCES lib_readers(id)",
|
| 27 |
+
"lib_loans.book_id NOT NULL",
|
| 28 |
+
"lib_loans.book_id REFERENCES lib_books(id)",
|
| 29 |
+
"lib_loans.day_no NOT NULL",
|
| 30 |
+
"lib_loans.fee NOT NULL",
|
| 31 |
+
"lib_loans.returned NULL allowed (nullable column)"
|
| 32 |
+
],
|
| 33 |
+
"families": [
|
| 34 |
+
{
|
| 35 |
+
"id": "no_loans",
|
| 36 |
+
"reference_sql": "SELECT r.id FROM lib_readers r WHERE NOT EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id) ORDER BY r.id",
|
| 37 |
+
"profile": "anti_join_subquery",
|
| 38 |
+
"intent": "Читатели без выдач",
|
| 39 |
+
"ordered": true,
|
| 40 |
+
"tables": [
|
| 41 |
+
"lib_readers",
|
| 42 |
+
"lib_loans"
|
| 43 |
+
],
|
| 44 |
+
"schema": "library",
|
| 45 |
+
"breaking_profile": "nullable"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"id": "loan_count",
|
| 49 |
+
"reference_sql": "SELECT r.id,COUNT(l.id) AS n FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id=r.id GROUP BY r.id ORDER BY r.id",
|
| 50 |
+
"profile": "outer_join_aggregate",
|
| 51 |
+
"intent": "Число выдач, включая ноль",
|
| 52 |
+
"ordered": true,
|
| 53 |
+
"tables": [
|
| 54 |
+
"lib_readers",
|
| 55 |
+
"lib_loans"
|
| 56 |
+
],
|
| 57 |
+
"schema": "library",
|
| 58 |
+
"breaking_profile": "empty"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"id": "zero_fee",
|
| 62 |
+
"reference_sql": "SELECT r.id FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id=r.id GROUP BY r.id HAVING COALESCE(SUM(l.fee),0)=0 ORDER BY r.id",
|
| 63 |
+
"profile": "aggregate_having",
|
| 64 |
+
"intent": "Читатели с нулевой суммой сборов",
|
| 65 |
+
"ordered": true,
|
| 66 |
+
"tables": [
|
| 67 |
+
"lib_readers",
|
| 68 |
+
"lib_loans"
|
| 69 |
+
],
|
| 70 |
+
"schema": "library",
|
| 71 |
+
"breaking_profile": "zero_value"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"id": "returned_count",
|
| 75 |
+
"reference_sql": "SELECT reader_id,COUNT(CASE WHEN returned=1 THEN 1 END) AS n FROM lib_loans GROUP BY reader_id ORDER BY reader_id",
|
| 76 |
+
"profile": "aggregate_case",
|
| 77 |
+
"intent": "Число возвратов среди имеющих выдачи",
|
| 78 |
+
"ordered": true,
|
| 79 |
+
"tables": [
|
| 80 |
+
"lib_loans"
|
| 81 |
+
],
|
| 82 |
+
"schema": "library",
|
| 83 |
+
"breaking_profile": "nullable"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"id": "borrowers",
|
| 87 |
+
"reference_sql": "SELECT DISTINCT r.id FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id WHERE b.price<=20 ORDER BY r.id",
|
| 88 |
+
"profile": "distinct_join",
|
| 89 |
+
"intent": "Читатели, бравшие недорогие книги",
|
| 90 |
+
"ordered": true,
|
| 91 |
+
"tables": [
|
| 92 |
+
"lib_readers",
|
| 93 |
+
"lib_books",
|
| 94 |
+
"lib_loans"
|
| 95 |
+
],
|
| 96 |
+
"schema": "library",
|
| 97 |
+
"breaking_profile": "multiplicity"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"id": "latest_ties",
|
| 101 |
+
"reference_sql": "SELECT l.id,l.reader_id,l.day_no FROM lib_loans l WHERE l.day_no=(SELECT MAX(x.day_no) FROM lib_loans x WHERE x.reader_id=l.reader_id) ORDER BY l.id",
|
| 102 |
+
"profile": "correlated_max",
|
| 103 |
+
"intent": "Все выдачи в последний день читателя",
|
| 104 |
+
"ordered": true,
|
| 105 |
+
"tables": [
|
| 106 |
+
"lib_loans"
|
| 107 |
+
],
|
| 108 |
+
"schema": "library",
|
| 109 |
+
"breaking_profile": "ties"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"id": "price_range",
|
| 113 |
+
"reference_sql": "SELECT id,price FROM lib_books WHERE price BETWEEN 10 AND 20 ORDER BY id",
|
| 114 |
+
"profile": "range_filter",
|
| 115 |
+
"intent": "Книги в замкнутом диапазоне цены",
|
| 116 |
+
"ordered": true,
|
| 117 |
+
"tables": [
|
| 118 |
+
"lib_books"
|
| 119 |
+
],
|
| 120 |
+
"schema": "library",
|
| 121 |
+
"breaking_profile": "boundary"
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"id": "not_returned",
|
| 125 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE returned<>1 ORDER BY id",
|
| 126 |
+
"profile": "null_aware_filter",
|
| 127 |
+
"intent": "Выдачи с известным отсутствием возврата",
|
| 128 |
+
"ordered": true,
|
| 129 |
+
"tables": [
|
| 130 |
+
"lib_loans"
|
| 131 |
+
],
|
| 132 |
+
"schema": "library",
|
| 133 |
+
"breaking_profile": "nullable"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"id": "active_outer",
|
| 137 |
+
"reference_sql": "SELECT r.id,l.id AS loan_id FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id=r.id AND l.returned=0 ORDER BY r.id,l.id",
|
| 138 |
+
"profile": "outer_join_predicate",
|
| 139 |
+
"intent": "Все читатели и невозвращённые выдачи",
|
| 140 |
+
"ordered": true,
|
| 141 |
+
"tables": [
|
| 142 |
+
"lib_readers",
|
| 143 |
+
"lib_loans"
|
| 144 |
+
],
|
| 145 |
+
"schema": "library",
|
| 146 |
+
"breaking_profile": "multiplicity"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"id": "union_bag",
|
| 150 |
+
"reference_sql": "SELECT reader_id FROM lib_loans WHERE returned=0 UNION ALL SELECT reader_id FROM lib_loans WHERE fee=0 ORDER BY reader_id",
|
| 151 |
+
"profile": "union_all",
|
| 152 |
+
"intent": "Объединение выдач с сохранением повторов",
|
| 153 |
+
"ordered": true,
|
| 154 |
+
"tables": [
|
| 155 |
+
"lib_loans"
|
| 156 |
+
],
|
| 157 |
+
"schema": "library",
|
| 158 |
+
"breaking_profile": "multiplicity"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"id": "all_returned",
|
| 162 |
+
"reference_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id) AND NOT EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id AND (l.returned<>1 OR l.returned IS NULL)) ORDER BY r.id",
|
| 163 |
+
"profile": "semi_anti_join",
|
| 164 |
+
"intent": "Читатели, у которых все выдачи возвращены",
|
| 165 |
+
"ordered": true,
|
| 166 |
+
"tables": [
|
| 167 |
+
"lib_readers",
|
| 168 |
+
"lib_loans"
|
| 169 |
+
],
|
| 170 |
+
"schema": "library",
|
| 171 |
+
"breaking_profile": "nullable"
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"id": "top_books",
|
| 175 |
+
"reference_sql": "SELECT id,price FROM lib_books ORDER BY price DESC,id ASC LIMIT 2",
|
| 176 |
+
"profile": "top_n_ties",
|
| 177 |
+
"intent": "Две самые дорогие книги с разрешением равенств",
|
| 178 |
+
"ordered": true,
|
| 179 |
+
"tables": [
|
| 180 |
+
"lib_books"
|
| 181 |
+
],
|
| 182 |
+
"schema": "library",
|
| 183 |
+
"breaking_profile": "ties"
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"id": "lib_reader_loan_sum",
|
| 187 |
+
"schema": "library",
|
| 188 |
+
"reference_sql": "SELECT r.id, COALESCE(SUM(l.fee),0) AS total FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id=r.id GROUP BY r.id ORDER BY r.id",
|
| 189 |
+
"profile": "outer_join_aggregate",
|
| 190 |
+
"breaking_profile": "zero_value",
|
| 191 |
+
"intent": "Сумма сборов по читателям, включая ноль",
|
| 192 |
+
"ordered": true,
|
| 193 |
+
"tables": [
|
| 194 |
+
"lib_readers",
|
| 195 |
+
"lib_loans"
|
| 196 |
+
]
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"id": "lib_reader_avg_fee",
|
| 200 |
+
"schema": "library",
|
| 201 |
+
"reference_sql": "SELECT l.reader_id, AVG(l.fee) AS avg_fee FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 202 |
+
"profile": "aggregate",
|
| 203 |
+
"breaking_profile": "zero_value",
|
| 204 |
+
"intent": "Средний сбор по читателям",
|
| 205 |
+
"ordered": true,
|
| 206 |
+
"tables": [
|
| 207 |
+
"lib_loans"
|
| 208 |
+
]
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"id": "lib_reader_max_fee",
|
| 212 |
+
"schema": "library",
|
| 213 |
+
"reference_sql": "SELECT l.reader_id, MAX(l.fee) AS max_fee FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 214 |
+
"profile": "aggregate",
|
| 215 |
+
"breaking_profile": "zero_value",
|
| 216 |
+
"intent": "Максимальный сбор по читателям",
|
| 217 |
+
"ordered": true,
|
| 218 |
+
"tables": [
|
| 219 |
+
"lib_loans"
|
| 220 |
+
]
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"id": "lib_reader_distinct_books",
|
| 224 |
+
"schema": "library",
|
| 225 |
+
"reference_sql": "SELECT l.reader_id, COUNT(DISTINCT l.book_id) AS n FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 226 |
+
"profile": "aggregate",
|
| 227 |
+
"breaking_profile": "multiplicity",
|
| 228 |
+
"intent": "Число разных книг у читателя",
|
| 229 |
+
"ordered": true,
|
| 230 |
+
"tables": [
|
| 231 |
+
"lib_loans"
|
| 232 |
+
]
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"id": "lib_reader_loan_rows",
|
| 236 |
+
"schema": "library",
|
| 237 |
+
"reference_sql": "SELECT l.reader_id, COUNT(*) AS n FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 238 |
+
"profile": "aggregate",
|
| 239 |
+
"breaking_profile": "multiplicity",
|
| 240 |
+
"intent": "Число выдач по читателям",
|
| 241 |
+
"ordered": true,
|
| 242 |
+
"tables": [
|
| 243 |
+
"lib_loans"
|
| 244 |
+
]
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"id": "lib_reader_returned_sum",
|
| 248 |
+
"schema": "library",
|
| 249 |
+
"reference_sql": "SELECT l.reader_id, SUM(CASE WHEN l.returned=1 THEN 1 ELSE 0 END) AS returned_cnt FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 250 |
+
"profile": "aggregate_case",
|
| 251 |
+
"breaking_profile": "nullable",
|
| 252 |
+
"intent": "Число возвратов по читателям",
|
| 253 |
+
"ordered": true,
|
| 254 |
+
"tables": [
|
| 255 |
+
"lib_loans"
|
| 256 |
+
]
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"id": "lib_reader_fee_positive",
|
| 260 |
+
"schema": "library",
|
| 261 |
+
"reference_sql": "SELECT l.reader_id, SUM(l.fee) AS total FROM lib_loans l GROUP BY l.reader_id HAVING SUM(l.fee) > 10 ORDER BY l.reader_id",
|
| 262 |
+
"profile": "aggregate_having",
|
| 263 |
+
"breaking_profile": "zero_value",
|
| 264 |
+
"intent": "Читатели с суммой сборов больше 10",
|
| 265 |
+
"ordered": true,
|
| 266 |
+
"tables": [
|
| 267 |
+
"lib_loans"
|
| 268 |
+
]
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"id": "lib_reader_multiple_loans",
|
| 272 |
+
"schema": "library",
|
| 273 |
+
"reference_sql": "SELECT l.reader_id FROM lib_loans l GROUP BY l.reader_id HAVING COUNT(*) >= 2 ORDER BY l.reader_id",
|
| 274 |
+
"profile": "aggregate_having",
|
| 275 |
+
"breaking_profile": "multiplicity",
|
| 276 |
+
"intent": "Читатели с двумя и более выдачами",
|
| 277 |
+
"ordered": true,
|
| 278 |
+
"tables": [
|
| 279 |
+
"lib_loans"
|
| 280 |
+
]
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"id": "lib_book_loan_sum",
|
| 284 |
+
"schema": "library",
|
| 285 |
+
"reference_sql": "SELECT b.id, SUM(l.fee) AS total FROM lib_books b LEFT JOIN lib_loans l ON l.book_id=b.id GROUP BY b.id ORDER BY b.id",
|
| 286 |
+
"profile": "outer_join_aggregate",
|
| 287 |
+
"breaking_profile": "zero_value",
|
| 288 |
+
"intent": "Сумма сборов по книгам, включая ноль",
|
| 289 |
+
"ordered": true,
|
| 290 |
+
"tables": [
|
| 291 |
+
"lib_books",
|
| 292 |
+
"lib_loans"
|
| 293 |
+
]
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"id": "lib_global_stats",
|
| 297 |
+
"schema": "library",
|
| 298 |
+
"reference_sql": "SELECT COUNT(*) AS loans, SUM(fee) AS total_fee, AVG(fee) AS avg_fee FROM lib_loans",
|
| 299 |
+
"profile": "aggregate",
|
| 300 |
+
"breaking_profile": "empty",
|
| 301 |
+
"intent": "Общая статистика по выдачам",
|
| 302 |
+
"ordered": false,
|
| 303 |
+
"tables": [
|
| 304 |
+
"lib_loans"
|
| 305 |
+
]
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"id": "lib_reader_book_titles",
|
| 309 |
+
"schema": "library",
|
| 310 |
+
"reference_sql": "SELECT r.id, b.title FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id ORDER BY r.id, b.title",
|
| 311 |
+
"profile": "join",
|
| 312 |
+
"breaking_profile": "multiplicity",
|
| 313 |
+
"intent": "Читатели и названия взятых книг",
|
| 314 |
+
"ordered": true,
|
| 315 |
+
"tables": [
|
| 316 |
+
"lib_readers",
|
| 317 |
+
"lib_books",
|
| 318 |
+
"lib_loans"
|
| 319 |
+
]
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"id": "lib_reader_no_fee_loans",
|
| 323 |
+
"schema": "library",
|
| 324 |
+
"reference_sql": "SELECT DISTINCT r.id FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id WHERE l.fee=0 ORDER BY r.id",
|
| 325 |
+
"profile": "distinct_join",
|
| 326 |
+
"breaking_profile": "multiplicity",
|
| 327 |
+
"intent": "Читатели, бравшие книги без сбора",
|
| 328 |
+
"ordered": true,
|
| 329 |
+
"tables": [
|
| 330 |
+
"lib_readers",
|
| 331 |
+
"lib_loans"
|
| 332 |
+
]
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"id": "lib_reader_left_with_flag",
|
| 336 |
+
"schema": "library",
|
| 337 |
+
"reference_sql": "SELECT r.id, l.id AS loan_id FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id=r.id ORDER BY r.id, l.id",
|
| 338 |
+
"profile": "outer_join_predicate",
|
| 339 |
+
"breaking_profile": "empty",
|
| 340 |
+
"intent": "Все читатели и их выдачи, включая отсутствующие",
|
| 341 |
+
"ordered": true,
|
| 342 |
+
"tables": [
|
| 343 |
+
"lib_readers",
|
| 344 |
+
"lib_loans"
|
| 345 |
+
]
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"id": "lib_loan_book_price",
|
| 349 |
+
"schema": "library",
|
| 350 |
+
"reference_sql": "SELECT l.id, b.price FROM lib_loans l JOIN lib_books b ON b.id=l.book_id WHERE b.price > 15 ORDER BY l.id",
|
| 351 |
+
"profile": "join",
|
| 352 |
+
"breaking_profile": "boundary",
|
| 353 |
+
"intent": "Выдачи книг дороже 15",
|
| 354 |
+
"ordered": true,
|
| 355 |
+
"tables": [
|
| 356 |
+
"lib_books",
|
| 357 |
+
"lib_loans"
|
| 358 |
+
]
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"id": "lib_reader_cheapest_book",
|
| 362 |
+
"schema": "library",
|
| 363 |
+
"reference_sql": "SELECT r.id, MIN(b.price) AS min_price FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id GROUP BY r.id ORDER BY r.id",
|
| 364 |
+
"profile": "join_aggregate",
|
| 365 |
+
"breaking_profile": "boundary",
|
| 366 |
+
"intent": "Минимальная цена книги у читателя",
|
| 367 |
+
"ordered": true,
|
| 368 |
+
"tables": [
|
| 369 |
+
"lib_readers",
|
| 370 |
+
"lib_books",
|
| 371 |
+
"lib_loans"
|
| 372 |
+
]
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"id": "lib_same_day_pairs",
|
| 376 |
+
"schema": "library",
|
| 377 |
+
"reference_sql": "SELECT a.id, b.id FROM lib_loans a JOIN lib_loans b ON a.day_no=b.day_no AND a.id < b.id ORDER BY a.id, b.id",
|
| 378 |
+
"profile": "self_join",
|
| 379 |
+
"breaking_profile": "multiplicity",
|
| 380 |
+
"intent": "Пары выдач в один день",
|
| 381 |
+
"ordered": true,
|
| 382 |
+
"tables": [
|
| 383 |
+
"lib_loans"
|
| 384 |
+
]
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"id": "lib_reader_same_book_twice",
|
| 388 |
+
"schema": "library",
|
| 389 |
+
"reference_sql": "SELECT DISTINCT l1.reader_id FROM lib_loans l1 JOIN lib_loans l2 ON l1.reader_id=l2.reader_id AND l1.book_id=l2.book_id AND l1.id<l2.id ORDER BY l1.reader_id",
|
| 390 |
+
"profile": "self_join",
|
| 391 |
+
"breaking_profile": "multiplicity",
|
| 392 |
+
"intent": "Читатели, бравшие одну книгу дважды",
|
| 393 |
+
"ordered": true,
|
| 394 |
+
"tables": [
|
| 395 |
+
"lib_loans"
|
| 396 |
+
]
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"id": "lib_book_cheaper_than_other",
|
| 400 |
+
"schema": "library",
|
| 401 |
+
"reference_sql": "SELECT DISTINCT b.id FROM lib_books b JOIN lib_books o ON o.id<>b.id AND o.price>b.price ORDER BY b.id",
|
| 402 |
+
"profile": "self_join",
|
| 403 |
+
"breaking_profile": "boundary",
|
| 404 |
+
"intent": "Книги дешевле хотя бы одной д��угой",
|
| 405 |
+
"ordered": true,
|
| 406 |
+
"tables": [
|
| 407 |
+
"lib_books"
|
| 408 |
+
]
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"id": "lib_reader_loan_join_agg",
|
| 412 |
+
"schema": "library",
|
| 413 |
+
"reference_sql": "SELECT r.id, COUNT(l.id) AS n, SUM(l.fee) AS total FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id=r.id GROUP BY r.id ORDER BY r.id",
|
| 414 |
+
"profile": "outer_join_aggregate",
|
| 415 |
+
"breaking_profile": "zero_value",
|
| 416 |
+
"intent": "Число выдач и сумма сборов по читателям",
|
| 417 |
+
"ordered": true,
|
| 418 |
+
"tables": [
|
| 419 |
+
"lib_readers",
|
| 420 |
+
"lib_loans"
|
| 421 |
+
]
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"id": "lib_reader_last_book_title",
|
| 425 |
+
"schema": "library",
|
| 426 |
+
"reference_sql": "SELECT l.id, b.title FROM lib_loans l JOIN lib_books b ON b.id=l.book_id WHERE l.day_no=(SELECT MAX(x.day_no) FROM lib_loans x WHERE x.reader_id=l.reader_id) ORDER BY l.id",
|
| 427 |
+
"profile": "correlated_max",
|
| 428 |
+
"breaking_profile": "ties",
|
| 429 |
+
"intent": "Названия книг из последней выдачи читателя",
|
| 430 |
+
"ordered": true,
|
| 431 |
+
"tables": [
|
| 432 |
+
"lib_books",
|
| 433 |
+
"lib_loans"
|
| 434 |
+
]
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"id": "lib_loans_fee_range",
|
| 438 |
+
"schema": "library",
|
| 439 |
+
"reference_sql": "SELECT id, fee FROM lib_loans WHERE fee BETWEEN 0 AND 2 ORDER BY id",
|
| 440 |
+
"profile": "range_filter",
|
| 441 |
+
"breaking_profile": "boundary",
|
| 442 |
+
"intent": "Выдачи со сбором в замкнутом диапазоне",
|
| 443 |
+
"ordered": true,
|
| 444 |
+
"tables": [
|
| 445 |
+
"lib_loans"
|
| 446 |
+
]
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"id": "lib_loans_fee_in",
|
| 450 |
+
"schema": "library",
|
| 451 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE fee IN (0,1,2) ORDER BY id",
|
| 452 |
+
"profile": "range_filter",
|
| 453 |
+
"breaking_profile": "boundary",
|
| 454 |
+
"intent": "Выдачи с одним из перечисленных сборов",
|
| 455 |
+
"ordered": true,
|
| 456 |
+
"tables": [
|
| 457 |
+
"lib_loans"
|
| 458 |
+
]
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"id": "lib_loans_returned_null",
|
| 462 |
+
"schema": "library",
|
| 463 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE returned IS NULL ORDER BY id",
|
| 464 |
+
"profile": "null_aware_filter",
|
| 465 |
+
"breaking_profile": "nullable",
|
| 466 |
+
"intent": "Выдачи без отметки о возврате",
|
| 467 |
+
"ordered": true,
|
| 468 |
+
"tables": [
|
| 469 |
+
"lib_loans"
|
| 470 |
+
]
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"id": "lib_loans_fee_or_returned",
|
| 474 |
+
"schema": "library",
|
| 475 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE fee=0 OR returned=0 ORDER BY id",
|
| 476 |
+
"profile": "or_filter",
|
| 477 |
+
"breaking_profile": "nullable",
|
| 478 |
+
"intent": "Выдачи с нулевым сбором или активные",
|
| 479 |
+
"ordered": true,
|
| 480 |
+
"tables": [
|
| 481 |
+
"lib_loans"
|
| 482 |
+
]
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"id": "lib_books_title_like",
|
| 486 |
+
"schema": "library",
|
| 487 |
+
"reference_sql": "SELECT id, title FROM lib_books WHERE title LIKE 'Book%' ORDER BY id",
|
| 488 |
+
"profile": "pattern_filter",
|
| 489 |
+
"breaking_profile": "random",
|
| 490 |
+
"intent": "Книги с названием по образцу",
|
| 491 |
+
"ordered": true,
|
| 492 |
+
"tables": [
|
| 493 |
+
"lib_books"
|
| 494 |
+
]
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"id": "lib_loans_day_range",
|
| 498 |
+
"schema": "library",
|
| 499 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE day_no BETWEEN 1 AND 3 ORDER BY id",
|
| 500 |
+
"profile": "range_filter",
|
| 501 |
+
"breaking_profile": "boundary",
|
| 502 |
+
"intent": "Выдачи в первые дни",
|
| 503 |
+
"ordered": true,
|
| 504 |
+
"tables": [
|
| 505 |
+
"lib_loans"
|
| 506 |
+
]
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"id": "lib_books_price_or",
|
| 510 |
+
"schema": "library",
|
| 511 |
+
"reference_sql": "SELECT id FROM lib_books WHERE price < 10 OR price > 20 ORDER BY id",
|
| 512 |
+
"profile": "or_filter",
|
| 513 |
+
"breaking_profile": "boundary",
|
| 514 |
+
"intent": "Книги вне среднего диапазона цен",
|
| 515 |
+
"ordered": true,
|
| 516 |
+
"tables": [
|
| 517 |
+
"lib_books"
|
| 518 |
+
]
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"id": "lib_loans_returned_in",
|
| 522 |
+
"schema": "library",
|
| 523 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE returned IN (0,1) ORDER BY id",
|
| 524 |
+
"profile": "null_aware_filter",
|
| 525 |
+
"breaking_profile": "nullable",
|
| 526 |
+
"intent": "Выдачи с известным состоянием возврата",
|
| 527 |
+
"ordered": true,
|
| 528 |
+
"tables": [
|
| 529 |
+
"lib_loans"
|
| 530 |
+
]
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"id": "lib_books_never_loaned",
|
| 534 |
+
"schema": "library",
|
| 535 |
+
"reference_sql": "SELECT b.id FROM lib_books b WHERE NOT EXISTS (SELECT 1 FROM lib_loans l WHERE l.book_id=b.id) ORDER BY b.id",
|
| 536 |
+
"profile": "anti_join_exists",
|
| 537 |
+
"breaking_profile": "nullable",
|
| 538 |
+
"intent": "Книги, которые ни разу не выдавались",
|
| 539 |
+
"ordered": true,
|
| 540 |
+
"tables": [
|
| 541 |
+
"lib_books",
|
| 542 |
+
"lib_loans"
|
| 543 |
+
]
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"id": "lib_readers_with_loans",
|
| 547 |
+
"schema": "library",
|
| 548 |
+
"reference_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id) ORDER BY r.id",
|
| 549 |
+
"profile": "semi_join_exists",
|
| 550 |
+
"breaking_profile": "empty",
|
| 551 |
+
"intent": "Читатели, у которых есть выдачи",
|
| 552 |
+
"ordered": true,
|
| 553 |
+
"tables": [
|
| 554 |
+
"lib_readers",
|
| 555 |
+
"lib_loans"
|
| 556 |
+
]
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"id": "lib_books_loaned_in",
|
| 560 |
+
"schema": "library",
|
| 561 |
+
"reference_sql": "SELECT b.id FROM lib_books b WHERE b.id IN (SELECT l.book_id FROM lib_loans l) ORDER BY b.id",
|
| 562 |
+
"profile": "in_subquery",
|
| 563 |
+
"breaking_profile": "nullable",
|
| 564 |
+
"intent": "Книги, входящие в множество выданных",
|
| 565 |
+
"ordered": true,
|
| 566 |
+
"tables": [
|
| 567 |
+
"lib_books",
|
| 568 |
+
"lib_loans"
|
| 569 |
+
]
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"id": "lib_books_not_loaned_in",
|
| 573 |
+
"schema": "library",
|
| 574 |
+
"reference_sql": "SELECT b.id FROM lib_books b WHERE b.id NOT IN (SELECT l.book_id FROM lib_loans l) ORDER BY b.id",
|
| 575 |
+
"profile": "not_in_subquery",
|
| 576 |
+
"breaking_profile": "nullable",
|
| 577 |
+
"intent": "Книги, не входящие в множество выданных",
|
| 578 |
+
"ordered": true,
|
| 579 |
+
"tables": [
|
| 580 |
+
"lib_books",
|
| 581 |
+
"lib_loans"
|
| 582 |
+
]
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"id": "lib_reader_loan_count_scalar",
|
| 586 |
+
"schema": "library",
|
| 587 |
+
"reference_sql": "SELECT r.id, (SELECT COUNT(*) FROM lib_loans l WHERE l.reader_id=r.id) AS n FROM lib_readers r ORDER BY r.id",
|
| 588 |
+
"profile": "correlated_scalar",
|
| 589 |
+
"breaking_profile": "multiplicity",
|
| 590 |
+
"intent": "Число выдач читателя скалярным подзапросом",
|
| 591 |
+
"ordered": true,
|
| 592 |
+
"tables": [
|
| 593 |
+
"lib_readers",
|
| 594 |
+
"lib_loans"
|
| 595 |
+
]
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"id": "lib_loans_above_avg",
|
| 599 |
+
"schema": "library",
|
| 600 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE fee > (SELECT AVG(fee) FROM lib_loans) ORDER BY id",
|
| 601 |
+
"profile": "scalar_subquery",
|
| 602 |
+
"breaking_profile": "zero_value",
|
| 603 |
+
"intent": "Выдачи со сбором выше среднего",
|
| 604 |
+
"ordered": true,
|
| 605 |
+
"tables": [
|
| 606 |
+
"lib_loans"
|
| 607 |
+
]
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"id": "lib_reader_derived_counts",
|
| 611 |
+
"schema": "library",
|
| 612 |
+
"reference_sql": "SELECT x.reader_id, x.n FROM (SELECT l.reader_id, COUNT(*) AS n FROM lib_loans l GROUP BY l.reader_id) x WHERE x.n >= 2 ORDER BY x.reader_id",
|
| 613 |
+
"profile": "derived_table",
|
| 614 |
+
"breaking_profile": "multiplicity",
|
| 615 |
+
"intent": "Читатели с двумя и более выдачами через производную таблицу",
|
| 616 |
+
"ordered": true,
|
| 617 |
+
"tables": [
|
| 618 |
+
"lib_loans"
|
| 619 |
+
]
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"id": "lib_loans_cte",
|
| 623 |
+
"schema": "library",
|
| 624 |
+
"reference_sql": "WITH ranked AS (SELECT id, day_no FROM lib_loans) SELECT id FROM ranked WHERE day_no = 1 ORDER BY id",
|
| 625 |
+
"profile": "cte",
|
| 626 |
+
"breaking_profile": "boundary",
|
| 627 |
+
"intent": "Выдачи первого дня через общее табличное выражение",
|
| 628 |
+
"ordered": true,
|
| 629 |
+
"tables": [
|
| 630 |
+
"lib_loans"
|
| 631 |
+
]
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"id": "lib_loans_order_fee",
|
| 635 |
+
"schema": "library",
|
| 636 |
+
"reference_sql": "SELECT id, fee FROM lib_loans ORDER BY fee, id",
|
| 637 |
+
"profile": "order_limit",
|
| 638 |
+
"breaking_profile": "ties",
|
| 639 |
+
"intent": "Выдачи, упорядоченные по сбору",
|
| 640 |
+
"ordered": true,
|
| 641 |
+
"tables": [
|
| 642 |
+
"lib_loans"
|
| 643 |
+
]
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"id": "lib_books_order_price_desc",
|
| 647 |
+
"schema": "library",
|
| 648 |
+
"reference_sql": "SELECT id FROM lib_books ORDER BY price DESC, id",
|
| 649 |
+
"profile": "order_limit",
|
| 650 |
+
"breaking_profile": "ties",
|
| 651 |
+
"intent": "Книги по убыванию цены",
|
| 652 |
+
"ordered": true,
|
| 653 |
+
"tables": [
|
| 654 |
+
"lib_books"
|
| 655 |
+
]
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"id": "lib_loans_limit3",
|
| 659 |
+
"schema": "library",
|
| 660 |
+
"reference_sql": "SELECT id FROM lib_loans ORDER BY id LIMIT 3",
|
| 661 |
+
"profile": "order_limit",
|
| 662 |
+
"breaking_profile": "ties",
|
| 663 |
+
"intent": "Первые три выдачи по идентификатору",
|
| 664 |
+
"ordered": true,
|
| 665 |
+
"tables": [
|
| 666 |
+
"lib_loans"
|
| 667 |
+
]
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"id": "lib_readers_order_name",
|
| 671 |
+
"schema": "library",
|
| 672 |
+
"reference_sql": "SELECT id, name FROM lib_readers ORDER BY name",
|
| 673 |
+
"profile": "order_limit",
|
| 674 |
+
"breaking_profile": "random",
|
| 675 |
+
"intent": "Читатели, упорядоченные по имени",
|
| 676 |
+
"ordered": true,
|
| 677 |
+
"tables": [
|
| 678 |
+
"lib_readers"
|
| 679 |
+
]
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"id": "lib_books_distinct_prices",
|
| 683 |
+
"schema": "library",
|
| 684 |
+
"reference_sql": "SELECT DISTINCT price FROM lib_books ORDER BY price",
|
| 685 |
+
"profile": "distinct_filter",
|
| 686 |
+
"breaking_profile": "multiplicity",
|
| 687 |
+
"intent": "Различные цены книг",
|
| 688 |
+
"ordered": true,
|
| 689 |
+
"tables": [
|
| 690 |
+
"lib_books"
|
| 691 |
+
]
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"id": "lib_loans_count_by_day_order",
|
| 695 |
+
"schema": "library",
|
| 696 |
+
"reference_sql": "SELECT day_no, COUNT(*) AS n FROM lib_loans GROUP BY day_no ORDER BY n DESC, day_no",
|
| 697 |
+
"profile": "order_limit",
|
| 698 |
+
"breaking_profile": "ties",
|
| 699 |
+
"intent": "Число выдач по дням, упорядоченное по счётчику",
|
| 700 |
+
"ordered": true,
|
| 701 |
+
"tables": [
|
| 702 |
+
"lib_loans"
|
| 703 |
+
]
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"id": "lib_union_bag_books",
|
| 707 |
+
"schema": "library",
|
| 708 |
+
"reference_sql": "SELECT book_id FROM lib_loans WHERE returned=0 UNION ALL SELECT book_id FROM lib_loans WHERE fee=0 ORDER BY book_id",
|
| 709 |
+
"profile": "union_all",
|
| 710 |
+
"breaking_profile": "multiplicity",
|
| 711 |
+
"intent": "Объединение выданных книг с сохранением повторов",
|
| 712 |
+
"ordered": true,
|
| 713 |
+
"tables": [
|
| 714 |
+
"lib_loans"
|
| 715 |
+
]
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"id": "lib_union_distinct_readers",
|
| 719 |
+
"schema": "library",
|
| 720 |
+
"reference_sql": "SELECT reader_id FROM lib_loans WHERE returned=0 UNION SELECT reader_id FROM lib_loans WHERE fee=0 ORDER BY reader_id",
|
| 721 |
+
"profile": "union_distinct",
|
| 722 |
+
"breaking_profile": "multiplicity",
|
| 723 |
+
"intent": "Объединение читателей без повторов",
|
| 724 |
+
"ordered": true,
|
| 725 |
+
"tables": [
|
| 726 |
+
"lib_loans"
|
| 727 |
+
]
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"id": "lib_count_star_vs_col",
|
| 731 |
+
"schema": "library",
|
| 732 |
+
"reference_sql": "SELECT reader_id, COUNT(*) AS star_cnt, COUNT(returned) AS returned_cnt FROM lib_loans GROUP BY reader_id ORDER BY reader_id",
|
| 733 |
+
"profile": "count_star_vs_column",
|
| 734 |
+
"breaking_profile": "nullable",
|
| 735 |
+
"intent": "Число строк против числа известных отметок возврата",
|
| 736 |
+
"ordered": true,
|
| 737 |
+
"tables": [
|
| 738 |
+
"lib_loans"
|
| 739 |
+
]
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"id": "lib_reader_book_multiplicity",
|
| 743 |
+
"schema": "library",
|
| 744 |
+
"reference_sql": "SELECT r.id, COUNT(*) AS n FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id GROUP BY r.id ORDER BY r.id",
|
| 745 |
+
"profile": "join_multiplicity",
|
| 746 |
+
"breaking_profile": "multiplicity",
|
| 747 |
+
"intent": "Число строк соединения читатель-выдача-книга",
|
| 748 |
+
"ordered": true,
|
| 749 |
+
"tables": [
|
| 750 |
+
"lib_readers",
|
| 751 |
+
"lib_books",
|
| 752 |
+
"lib_loans"
|
| 753 |
+
]
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"id": "lib_books_price_boundary",
|
| 757 |
+
"schema": "library",
|
| 758 |
+
"reference_sql": "SELECT id FROM lib_books WHERE price >= 20 ORDER BY id",
|
| 759 |
+
"profile": "boundary_filter",
|
| 760 |
+
"breaking_profile": "boundary",
|
| 761 |
+
"intent": "Книги не дешевле граничного значения",
|
| 762 |
+
"ordered": true,
|
| 763 |
+
"tables": [
|
| 764 |
+
"lib_books"
|
| 765 |
+
]
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"id": "lib_books_price_open_range",
|
| 769 |
+
"schema": "library",
|
| 770 |
+
"reference_sql": "SELECT id FROM lib_books WHERE price > 10 AND price < 20 ORDER BY id",
|
| 771 |
+
"profile": "boundary_filter",
|
| 772 |
+
"breaking_profile": "boundary",
|
| 773 |
+
"intent": "Книги в открытом диапазоне цен",
|
| 774 |
+
"ordered": true,
|
| 775 |
+
"tables": [
|
| 776 |
+
"lib_books"
|
| 777 |
+
]
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"id": "lib_loans_fee_zero_sum",
|
| 781 |
+
"schema": "library",
|
| 782 |
+
"reference_sql": "SELECT reader_id FROM lib_loans GROUP BY reader_id HAVING SUM(fee) = 0 ORDER BY reader_id",
|
| 783 |
+
"profile": "aggregate_having",
|
| 784 |
+
"breaking_profile": "zero_value",
|
| 785 |
+
"intent": "Читатели с нулевой суммой сборов",
|
| 786 |
+
"ordered": true,
|
| 787 |
+
"tables": [
|
| 788 |
+
"lib_loans"
|
| 789 |
+
]
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"id": "lib_reader_left_join_null",
|
| 793 |
+
"schema": "library",
|
| 794 |
+
"reference_sql": "SELECT r.id FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id=r.id WHERE l.id IS NULL ORDER BY r.id",
|
| 795 |
+
"profile": "anti_join_null",
|
| 796 |
+
"breaking_profile": "empty",
|
| 797 |
+
"intent": "Читатели без единой выдачи через соединение",
|
| 798 |
+
"ordered": true,
|
| 799 |
+
"tables": [
|
| 800 |
+
"lib_readers",
|
| 801 |
+
"lib_loans"
|
| 802 |
+
]
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"id": "lib_reader_all_null_returned",
|
| 806 |
+
"schema": "library",
|
| 807 |
+
"reference_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id AND l.returned IS NULL) ORDER BY r.id",
|
| 808 |
+
"profile": "semi_join_exists",
|
| 809 |
+
"breaking_profile": "nullable",
|
| 810 |
+
"intent": "Читатели с выдачей без отметки возврата",
|
| 811 |
+
"ordered": true,
|
| 812 |
+
"tables": [
|
| 813 |
+
"lib_readers",
|
| 814 |
+
"lib_loans"
|
| 815 |
+
]
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"id": "lib_reader_count_returned_equal",
|
| 819 |
+
"schema": "library",
|
| 820 |
+
"reference_sql": "SELECT l.reader_id FROM lib_loans l GROUP BY l.reader_id HAVING COUNT(*) = COUNT(returned) ORDER BY l.reader_id",
|
| 821 |
+
"profile": "aggregate_having",
|
| 822 |
+
"breaking_profile": "nullable",
|
| 823 |
+
"intent": "Читатели, у которых у всех выдач есть отметка возврата",
|
| 824 |
+
"ordered": true,
|
| 825 |
+
"tables": [
|
| 826 |
+
"lib_loans"
|
| 827 |
+
]
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"id": "lib_loans_row_number",
|
| 831 |
+
"schema": "library",
|
| 832 |
+
"reference_sql": "SELECT id, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM lib_loans ORDER BY id",
|
| 833 |
+
"profile": "window_row_number",
|
| 834 |
+
"breaking_profile": "ties",
|
| 835 |
+
"intent": "Порядковые номера выдач",
|
| 836 |
+
"ordered": true,
|
| 837 |
+
"tables": [
|
| 838 |
+
"lib_loans"
|
| 839 |
+
]
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"id": "lib_reader_fee_rank",
|
| 843 |
+
"schema": "library",
|
| 844 |
+
"reference_sql": "SELECT reader_id, fee, RANK() OVER (PARTITION BY reader_id ORDER BY fee DESC) AS rnk FROM lib_loans ORDER BY reader_id, rnk, fee DESC, id",
|
| 845 |
+
"profile": "window_rank",
|
| 846 |
+
"breaking_profile": "ties",
|
| 847 |
+
"intent": "Ранг сбора в рамках читателя",
|
| 848 |
+
"ordered": true,
|
| 849 |
+
"tables": [
|
| 850 |
+
"lib_loans"
|
| 851 |
+
]
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"id": "lib_reader_running_fee",
|
| 855 |
+
"schema": "library",
|
| 856 |
+
"reference_sql": "SELECT reader_id, id, SUM(fee) OVER (PARTITION BY reader_id ORDER BY id) AS running FROM lib_loans ORDER BY reader_id, id",
|
| 857 |
+
"profile": "window_running",
|
| 858 |
+
"breaking_profile": "ties",
|
| 859 |
+
"intent": "Нарастающая сумма сборов по выдачам читателя",
|
| 860 |
+
"ordered": true,
|
| 861 |
+
"tables": [
|
| 862 |
+
"lib_loans"
|
| 863 |
+
]
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"id": "lib_books_price_rank",
|
| 867 |
+
"schema": "library",
|
| 868 |
+
"reference_sql": "SELECT id, DENSE_RANK() OVER (ORDER BY price DESC) AS price_rank FROM lib_books ORDER BY id",
|
| 869 |
+
"profile": "window_rank",
|
| 870 |
+
"breaking_profile": "ties",
|
| 871 |
+
"intent": "Плотный ранг цены книги",
|
| 872 |
+
"ordered": true,
|
| 873 |
+
"tables": [
|
| 874 |
+
"lib_books"
|
| 875 |
+
]
|
| 876 |
+
}
|
| 877 |
+
],
|
| 878 |
+
"schema_description": "Синтетическая библиотека: читатели, книги, выдачи. NULL допускается только в lib_loans.returned.",
|
| 879 |
+
"profile_legend": {
|
| 880 |
+
"aggregate": "одна агрегатная функция или несколько по одной группировке",
|
| 881 |
+
"aggregate_case": "агрегат с условным выражением CASE",
|
| 882 |
+
"aggregate_having": "группировка с условием HAVING",
|
| 883 |
+
"outer_join_aggregate": "внешнее соединение с агрегатом (включая нулевые группы)",
|
| 884 |
+
"join": "соединение без агрегата",
|
| 885 |
+
"join_aggregate": "соединение с агрегатом",
|
| 886 |
+
"join_multiplicity": "счётчик строк соединения (кратности)",
|
| 887 |
+
"distinct_join": "соединение с DISTINCT",
|
| 888 |
+
"self_join": "соединение таблицы с собой",
|
| 889 |
+
"anti_join_null": "анти-соединение через LEFT JOIN ... IS NULL",
|
| 890 |
+
"anti_join_exists": "анти-соединение через NOT EXISTS",
|
| 891 |
+
"semi_join_exists": "полусоединение через EXISTS",
|
| 892 |
+
"in_subquery": "предикат IN с подзапросом",
|
| 893 |
+
"not_in_subquery": "предикат NOT IN с подзапросом",
|
| 894 |
+
"correlated_scalar": "коррелированный скалярный подзапрос",
|
| 895 |
+
"scalar_subquery": "скалярный подзапрос без корреляции",
|
| 896 |
+
"correlated_max": "коррелированный подзапрос с максимумом",
|
| 897 |
+
"derived_table": "производная таблица в FROM",
|
| 898 |
+
"cte": "общее табличное выражение (CTE)",
|
| 899 |
+
"recursive_cte": "рекурсивное общее табличное выражение",
|
| 900 |
+
"outer_join_predicate": "внешнее соединение с предикатом в ON",
|
| 901 |
+
"semi_anti_join": "комбинация EXISTS и NOT EXISTS в одном запросе",
|
| 902 |
+
"anti_join_subquery": "анти-соединение через NOT EXISTS в подзапросе",
|
| 903 |
+
"range_filter": "фильтр по диапазону или списку",
|
| 904 |
+
"pattern_filter": "фильтр по образцу строки",
|
| 905 |
+
"null_aware_filter": "фильтр с учётом NULL",
|
| 906 |
+
"or_filter": "фильтр с веткой OR",
|
| 907 |
+
"boundary_filter": "фильтр на граничном значении",
|
| 908 |
+
"group_by_expression": "группировка по выражению",
|
| 909 |
+
"order_limit": "сортировка и/или LIMIT",
|
| 910 |
+
"top_n_ties": "сортировка с LIMIT при возможных равенствах",
|
| 911 |
+
"distinct_filter": "DISTINCT без соединения",
|
| 912 |
+
"union_all": "UNION ALL с сохранением кратностей",
|
| 913 |
+
"union_distinct": "UNION с удалением повторов",
|
| 914 |
+
"count_star_vs_column": "COUNT(*) против COUNT(столбец)",
|
| 915 |
+
"window_row_number": "оконная функция ROW_NUMBER",
|
| 916 |
+
"window_rank": "оконная функция RANK / DENSE_RANK",
|
| 917 |
+
"window_running": "оконная сумма с накоплением"
|
| 918 |
+
},
|
| 919 |
+
"breaking_profile_legend": {
|
| 920 |
+
"multiplicity": "состояние с повторяющимися строками и кратностями",
|
| 921 |
+
"nullable": "состояние с NULL в нео��язательном столбце",
|
| 922 |
+
"empty": "пустое состояние или пустой результат",
|
| 923 |
+
"boundary": "состояние с ровно граничным значением",
|
| 924 |
+
"ties": "состояние с равными ключами сортировки",
|
| 925 |
+
"zero_value": "состояние с нулевой суммой или нулевым счётом",
|
| 926 |
+
"random": "псевдослучайное состояние с фиксированным seed"
|
| 927 |
+
}
|
| 928 |
+
}
|
data/corpus/shop.json
ADDED
|
@@ -0,0 +1,956 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "shop",
|
| 3 |
+
"dataset": "SREB",
|
| 4 |
+
"dataset_version": "0.2.0",
|
| 5 |
+
"dialect": "mysql",
|
| 6 |
+
"dbms_tested": "MySQL 8.4.11",
|
| 7 |
+
"schema_description": "Синтетический интернет-магазин: категории, товары, клиенты, заказы, позиции заказов, платежи, отзывы. NULL допускается в categories.parent_id, customers.city, orders.channel, reviews.body.",
|
| 8 |
+
"profile_legend": {
|
| 9 |
+
"aggregate": "одна агрегатная функция или несколько по одной группировке",
|
| 10 |
+
"aggregate_case": "агрегат с условным выражением CASE",
|
| 11 |
+
"aggregate_having": "группировка с условием HAVING",
|
| 12 |
+
"outer_join_aggregate": "внешнее соединение с агрегатом (включая нулевые группы)",
|
| 13 |
+
"join": "соединение без агрегата",
|
| 14 |
+
"join_aggregate": "соединение с агрегатом",
|
| 15 |
+
"join_multiplicity": "счётчик строк соединения (кратности)",
|
| 16 |
+
"distinct_join": "соединение с DISTINCT",
|
| 17 |
+
"self_join": "соединение таблицы с собой",
|
| 18 |
+
"anti_join_null": "анти-соединение через LEFT JOIN ... IS NULL",
|
| 19 |
+
"anti_join_exists": "анти-соединение через NOT EXISTS",
|
| 20 |
+
"semi_join_exists": "полусоединение через EXISTS",
|
| 21 |
+
"in_subquery": "предикат IN с подзапросом",
|
| 22 |
+
"not_in_subquery": "предикат NOT IN с подзапросом",
|
| 23 |
+
"correlated_scalar": "коррелированный скалярный подзапрос",
|
| 24 |
+
"scalar_subquery": "скалярный подзапрос без корреляции",
|
| 25 |
+
"correlated_max": "коррелированный подзапрос с максимумом",
|
| 26 |
+
"derived_table": "производная таблица в FROM",
|
| 27 |
+
"cte": "общее табличное выражение (CTE)",
|
| 28 |
+
"recursive_cte": "рекурсивное общее табличное выражение",
|
| 29 |
+
"outer_join_predicate": "внешнее соединение с предикатом в ON",
|
| 30 |
+
"semi_anti_join": "комбинация EXISTS и NOT EXISTS в одном запросе",
|
| 31 |
+
"anti_join_subquery": "анти-соединение через NOT EXISTS в подзапросе",
|
| 32 |
+
"range_filter": "фильтр по диапазону или списку",
|
| 33 |
+
"pattern_filter": "фильтр по образцу строки",
|
| 34 |
+
"null_aware_filter": "фильтр с учётом NULL",
|
| 35 |
+
"or_filter": "фильтр с веткой OR",
|
| 36 |
+
"boundary_filter": "фильтр на граничном значении",
|
| 37 |
+
"group_by_expression": "группировка по выражению",
|
| 38 |
+
"order_limit": "сортировка и/или LIMIT",
|
| 39 |
+
"top_n_ties": "сортировка с LIMIT при возможных равенствах",
|
| 40 |
+
"distinct_filter": "DISTINCT без соединения",
|
| 41 |
+
"union_all": "UNION ALL с сохранением кратностей",
|
| 42 |
+
"union_distinct": "UNION с удалением повторов",
|
| 43 |
+
"count_star_vs_column": "COUNT(*) против COUNT(столбец)",
|
| 44 |
+
"window_row_number": "оконная функция ROW_NUMBER",
|
| 45 |
+
"window_rank": "оконная функция RANK / DENSE_RANK",
|
| 46 |
+
"window_running": "оконная сумма с накоплением"
|
| 47 |
+
},
|
| 48 |
+
"breaking_profile_legend": {
|
| 49 |
+
"multiplicity": "состояние с повторяющимися строками и кратностями",
|
| 50 |
+
"nullable": "состояние с NULL в необязательном столбце",
|
| 51 |
+
"empty": "пустое состояние или пустой результат",
|
| 52 |
+
"boundary": "состояние с ровно граничным значением",
|
| 53 |
+
"ties": "состояние с равными ключами сортировки",
|
| 54 |
+
"zero_value": "состояние с нулевой суммой или нулевым счётом",
|
| 55 |
+
"random": "псевдослучайное состояние с фиксированным seed"
|
| 56 |
+
},
|
| 57 |
+
"ddl": [
|
| 58 |
+
"CREATE TABLE categories(id INTEGER PRIMARY KEY, name VARCHAR(60) NOT NULL UNIQUE, parent_id INTEGER NULL, FOREIGN KEY(parent_id) REFERENCES categories(id))",
|
| 59 |
+
"CREATE TABLE products(id INTEGER PRIMARY KEY, sku VARCHAR(32) NOT NULL UNIQUE, name VARCHAR(120) NOT NULL, category_id INTEGER NOT NULL, price DECIMAL(10,2) NOT NULL, cost DECIMAL(10,2) NOT NULL, stock INTEGER NOT NULL, active INTEGER NOT NULL DEFAULT 1, created_at DATE NOT NULL, FOREIGN KEY(category_id) REFERENCES categories(id), CHECK(price >= 0), CHECK(cost >= 0), CHECK(stock >= 0))",
|
| 60 |
+
"CREATE TABLE customers(id INTEGER PRIMARY KEY, email VARCHAR(120) NOT NULL UNIQUE, name VARCHAR(80) NOT NULL, city VARCHAR(60) NULL, segment VARCHAR(20) NOT NULL, created_at DATE NOT NULL, CHECK(segment IN ('retail','wholesale','vip')))",
|
| 61 |
+
"CREATE TABLE orders(id INTEGER PRIMARY KEY, customer_id INTEGER NOT NULL, created_at DATE NOT NULL, status VARCHAR(20) NOT NULL, channel VARCHAR(20) NULL, FOREIGN KEY(customer_id) REFERENCES customers(id), CHECK(status IN ('new','paid','shipped','cancelled','returned')))",
|
| 62 |
+
"CREATE TABLE order_items(id INTEGER PRIMARY KEY, order_id INTEGER NOT NULL, product_id INTEGER NOT NULL, quantity INTEGER NOT NULL, unit_price DECIMAL(10,2) NOT NULL, discount DECIMAL(10,2) NOT NULL DEFAULT 0, FOREIGN KEY(order_id) REFERENCES orders(id), FOREIGN KEY(product_id) REFERENCES products(id), CHECK(quantity > 0), CHECK(unit_price >= 0), CHECK(discount >= 0), CHECK(discount <= unit_price))",
|
| 63 |
+
"CREATE TABLE payments(id INTEGER PRIMARY KEY, order_id INTEGER NOT NULL, paid_at DATE NOT NULL, amount DECIMAL(10,2) NOT NULL, method VARCHAR(20) NOT NULL, FOREIGN KEY(order_id) REFERENCES orders(id), CHECK(amount >= 0), CHECK(method IN ('card','cash','transfer')))",
|
| 64 |
+
"CREATE TABLE reviews(id INTEGER PRIMARY KEY, product_id INTEGER NOT NULL, customer_id INTEGER NOT NULL, rating INTEGER NOT NULL, body VARCHAR(200) NULL, created_at DATE NOT NULL, FOREIGN KEY(product_id) REFERENCES products(id), FOREIGN KEY(customer_id) REFERENCES customers(id), CHECK(rating BETWEEN 1 AND 5))"
|
| 65 |
+
],
|
| 66 |
+
"constraints": [
|
| 67 |
+
"categories.id PRIMARY KEY",
|
| 68 |
+
"categories.name NOT NULL UNIQUE",
|
| 69 |
+
"categories.parent_id NULL allowed, REFERENCES categories(id)",
|
| 70 |
+
"products.id PRIMARY KEY",
|
| 71 |
+
"products.sku NOT NULL UNIQUE",
|
| 72 |
+
"products.name NOT NULL",
|
| 73 |
+
"products.category_id NOT NULL, REFERENCES categories(id)",
|
| 74 |
+
"products.price NOT NULL, CHECK(price >= 0)",
|
| 75 |
+
"products.cost NOT NULL, CHECK(cost >= 0)",
|
| 76 |
+
"products.stock NOT NULL, CHECK(stock >= 0)",
|
| 77 |
+
"products.active NOT NULL",
|
| 78 |
+
"products.created_at NOT NULL",
|
| 79 |
+
"customers.id PRIMARY KEY",
|
| 80 |
+
"customers.email NOT NULL UNIQUE",
|
| 81 |
+
"customers.name NOT NULL",
|
| 82 |
+
"customers.city NULL allowed",
|
| 83 |
+
"customers.segment NOT NULL, CHECK(segment IN (retail, wholesale, vip))",
|
| 84 |
+
"customers.created_at NOT NULL",
|
| 85 |
+
"orders.id PRIMARY KEY",
|
| 86 |
+
"orders.customer_id NOT NULL, REFERENCES customers(id)",
|
| 87 |
+
"orders.created_at NOT NULL",
|
| 88 |
+
"orders.status NOT NULL, CHECK(status IN (new, paid, shipped, cancelled, returned))",
|
| 89 |
+
"orders.channel NULL allowed",
|
| 90 |
+
"order_items.id PRIMARY KEY",
|
| 91 |
+
"order_items.order_id NOT NULL, REFERENCES orders(id)",
|
| 92 |
+
"order_items.product_id NOT NULL, REFERENCES products(id)",
|
| 93 |
+
"order_items.quantity NOT NULL, CHECK(quantity > 0)",
|
| 94 |
+
"order_items.unit_price NOT NULL, CHECK(unit_price >= 0)",
|
| 95 |
+
"order_items.discount NOT NULL, CHECK(discount >= 0), CHECK(discount <= unit_price)",
|
| 96 |
+
"payments.id PRIMARY KEY",
|
| 97 |
+
"payments.order_id NOT NULL, REFERENCES orders(id)",
|
| 98 |
+
"payments.paid_at NOT NULL",
|
| 99 |
+
"payments.amount NOT NULL, CHECK(amount >= 0)",
|
| 100 |
+
"payments.method NOT NULL, CHECK(method IN (card, cash, transfer))",
|
| 101 |
+
"reviews.id PRIMARY KEY",
|
| 102 |
+
"reviews.product_id NOT NULL, REFERENCES products(id)",
|
| 103 |
+
"reviews.customer_id NOT NULL, REFERENCES customers(id)",
|
| 104 |
+
"reviews.rating NOT NULL, CHECK(rating BETWEEN 1 AND 5)",
|
| 105 |
+
"reviews.body NULL allowed",
|
| 106 |
+
"reviews.created_at NOT NULL"
|
| 107 |
+
],
|
| 108 |
+
"families": [
|
| 109 |
+
{
|
| 110 |
+
"id": "shop_customer_order_count",
|
| 111 |
+
"schema": "shop",
|
| 112 |
+
"reference_sql": "SELECT c.id, COUNT(o.id) AS n FROM customers c LEFT JOIN orders o ON o.customer_id=c.id GROUP BY c.id ORDER BY c.id",
|
| 113 |
+
"profile": "outer_join_aggregate",
|
| 114 |
+
"breaking_profile": "empty",
|
| 115 |
+
"intent": "Число заказов клиента, включая ноль",
|
| 116 |
+
"ordered": true,
|
| 117 |
+
"tables": [
|
| 118 |
+
"customers",
|
| 119 |
+
"orders"
|
| 120 |
+
]
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"id": "shop_customer_order_total",
|
| 124 |
+
"schema": "shop",
|
| 125 |
+
"reference_sql": "SELECT c.id, COALESCE(SUM(oi.quantity*oi.unit_price - oi.discount),0) AS total FROM customers c LEFT JOIN orders o ON o.customer_id=c.id LEFT JOIN order_items oi ON oi.order_id=o.id GROUP BY c.id ORDER BY c.id",
|
| 126 |
+
"profile": "outer_join_aggregate",
|
| 127 |
+
"breaking_profile": "zero_value",
|
| 128 |
+
"intent": "Сумма заказов клиента, включая ноль",
|
| 129 |
+
"ordered": true,
|
| 130 |
+
"tables": [
|
| 131 |
+
"customers",
|
| 132 |
+
"orders",
|
| 133 |
+
"order_items"
|
| 134 |
+
]
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"id": "shop_category_product_count",
|
| 138 |
+
"schema": "shop",
|
| 139 |
+
"reference_sql": "SELECT cat.id, COUNT(p.id) AS n FROM categories cat LEFT JOIN products p ON p.category_id=cat.id GROUP BY cat.id ORDER BY cat.id",
|
| 140 |
+
"profile": "outer_join_aggregate",
|
| 141 |
+
"breaking_profile": "empty",
|
| 142 |
+
"intent": "Число товаров в категории, включая пустые",
|
| 143 |
+
"ordered": true,
|
| 144 |
+
"tables": [
|
| 145 |
+
"categories",
|
| 146 |
+
"products"
|
| 147 |
+
]
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"id": "shop_category_avg_price",
|
| 151 |
+
"schema": "shop",
|
| 152 |
+
"reference_sql": "SELECT p.category_id, AVG(p.price) AS avg_price FROM products p GROUP BY p.category_id ORDER BY p.category_id",
|
| 153 |
+
"profile": "aggregate",
|
| 154 |
+
"breaking_profile": "zero_value",
|
| 155 |
+
"intent": "Средняя цена товара по категориям",
|
| 156 |
+
"ordered": true,
|
| 157 |
+
"tables": [
|
| 158 |
+
"products"
|
| 159 |
+
]
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"id": "shop_order_item_count",
|
| 163 |
+
"schema": "shop",
|
| 164 |
+
"reference_sql": "SELECT o.id, COUNT(oi.id) AS n FROM orders o LEFT JOIN order_items oi ON oi.order_id=o.id GROUP BY o.id ORDER BY o.id",
|
| 165 |
+
"profile": "outer_join_aggregate",
|
| 166 |
+
"breaking_profile": "empty",
|
| 167 |
+
"intent": "Число позиций в заказе, включая пустые",
|
| 168 |
+
"ordered": true,
|
| 169 |
+
"tables": [
|
| 170 |
+
"orders",
|
| 171 |
+
"order_items"
|
| 172 |
+
]
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"id": "shop_product_units_sold",
|
| 176 |
+
"schema": "shop",
|
| 177 |
+
"reference_sql": "SELECT oi.product_id, SUM(oi.quantity) AS units FROM order_items oi GROUP BY oi.product_id ORDER BY oi.product_id",
|
| 178 |
+
"profile": "aggregate",
|
| 179 |
+
"breaking_profile": "multiplicity",
|
| 180 |
+
"intent": "Проданное количество по товарам",
|
| 181 |
+
"ordered": true,
|
| 182 |
+
"tables": [
|
| 183 |
+
"order_items"
|
| 184 |
+
]
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"id": "shop_order_gross",
|
| 188 |
+
"schema": "shop",
|
| 189 |
+
"reference_sql": "SELECT o.id, SUM(oi.quantity*oi.unit_price) AS gross FROM orders o JOIN order_items oi ON oi.order_id=o.id GROUP BY o.id ORDER BY o.id",
|
| 190 |
+
"profile": "join_aggregate",
|
| 191 |
+
"breaking_profile": "multiplicity",
|
| 192 |
+
"intent": "Сумма заказа без скидок",
|
| 193 |
+
"ordered": true,
|
| 194 |
+
"tables": [
|
| 195 |
+
"orders",
|
| 196 |
+
"order_items"
|
| 197 |
+
]
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"id": "shop_product_revenue",
|
| 201 |
+
"schema": "shop",
|
| 202 |
+
"reference_sql": "SELECT p.id, SUM(oi.quantity*oi.unit_price - oi.discount) AS revenue FROM products p JOIN order_items oi ON oi.product_id=p.id GROUP BY p.id ORDER BY p.id",
|
| 203 |
+
"profile": "join_aggregate",
|
| 204 |
+
"breaking_profile": "multiplicity",
|
| 205 |
+
"intent": "Выручка по товару с учётом скидок",
|
| 206 |
+
"ordered": true,
|
| 207 |
+
"tables": [
|
| 208 |
+
"products",
|
| 209 |
+
"order_items"
|
| 210 |
+
]
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"id": "shop_order_items_avg_discount",
|
| 214 |
+
"schema": "shop",
|
| 215 |
+
"reference_sql": "SELECT order_id, AVG(discount) AS avg_discount FROM order_items GROUP BY order_id ORDER BY order_id",
|
| 216 |
+
"profile": "aggregate",
|
| 217 |
+
"breaking_profile": "zero_value",
|
| 218 |
+
"intent": "Средняя скидка по позициям заказа",
|
| 219 |
+
"ordered": true,
|
| 220 |
+
"tables": [
|
| 221 |
+
"order_items"
|
| 222 |
+
]
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"id": "shop_status_order_count",
|
| 226 |
+
"schema": "shop",
|
| 227 |
+
"reference_sql": "SELECT status, COUNT(*) AS n FROM orders GROUP BY status ORDER BY status",
|
| 228 |
+
"profile": "aggregate",
|
| 229 |
+
"breaking_profile": "multiplicity",
|
| 230 |
+
"intent": "Число заказов по статусам",
|
| 231 |
+
"ordered": true,
|
| 232 |
+
"tables": [
|
| 233 |
+
"orders"
|
| 234 |
+
]
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"id": "shop_customer_max_line",
|
| 238 |
+
"schema": "shop",
|
| 239 |
+
"reference_sql": "SELECT o.customer_id, MAX(oi.quantity*oi.unit_price) AS max_line FROM orders o JOIN order_items oi ON oi.order_id=o.id GROUP BY o.customer_id ORDER BY o.customer_id",
|
| 240 |
+
"profile": "join_aggregate",
|
| 241 |
+
"breaking_profile": "multiplicity",
|
| 242 |
+
"intent": "Максимальная стоимость позиции у клиента",
|
| 243 |
+
"ordered": true,
|
| 244 |
+
"tables": [
|
| 245 |
+
"orders",
|
| 246 |
+
"order_items"
|
| 247 |
+
]
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"id": "shop_global_orders",
|
| 251 |
+
"schema": "shop",
|
| 252 |
+
"reference_sql": "SELECT COUNT(*) AS payments, SUM(amount) AS paid FROM payments",
|
| 253 |
+
"profile": "aggregate",
|
| 254 |
+
"breaking_profile": "empty",
|
| 255 |
+
"intent": "Общая статистика платежей",
|
| 256 |
+
"ordered": false,
|
| 257 |
+
"tables": [
|
| 258 |
+
"payments"
|
| 259 |
+
]
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"id": "shop_order_customer",
|
| 263 |
+
"schema": "shop",
|
| 264 |
+
"reference_sql": "SELECT o.id, c.email FROM orders o JOIN customers c ON c.id=o.customer_id ORDER BY o.id",
|
| 265 |
+
"profile": "join",
|
| 266 |
+
"breaking_profile": "multiplicity",
|
| 267 |
+
"intent": "Заказы с почтовым адресом клиента",
|
| 268 |
+
"ordered": true,
|
| 269 |
+
"tables": [
|
| 270 |
+
"customers",
|
| 271 |
+
"orders"
|
| 272 |
+
]
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"id": "shop_item_product_name",
|
| 276 |
+
"schema": "shop",
|
| 277 |
+
"reference_sql": "SELECT oi.id, p.name FROM order_items oi JOIN products p ON p.id=oi.product_id ORDER BY oi.id",
|
| 278 |
+
"profile": "join",
|
| 279 |
+
"breaking_profile": "multiplicity",
|
| 280 |
+
"intent": "Позиции заказов с названием товара",
|
| 281 |
+
"ordered": true,
|
| 282 |
+
"tables": [
|
| 283 |
+
"products",
|
| 284 |
+
"order_items"
|
| 285 |
+
]
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"id": "shop_three_way",
|
| 289 |
+
"schema": "shop",
|
| 290 |
+
"reference_sql": "SELECT o.id, p.name FROM orders o JOIN order_items oi ON oi.order_id=o.id JOIN products p ON p.id=oi.product_id ORDER BY o.id, p.name",
|
| 291 |
+
"profile": "join",
|
| 292 |
+
"breaking_profile": "multiplicity",
|
| 293 |
+
"intent": "Заказы и названия товаров в них",
|
| 294 |
+
"ordered": true,
|
| 295 |
+
"tables": [
|
| 296 |
+
"products",
|
| 297 |
+
"orders",
|
| 298 |
+
"order_items"
|
| 299 |
+
]
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"id": "shop_left_orders_no_items",
|
| 303 |
+
"schema": "shop",
|
| 304 |
+
"reference_sql": "SELECT o.id FROM orders o LEFT JOIN order_items oi ON oi.order_id=o.id WHERE oi.id IS NULL ORDER BY o.id",
|
| 305 |
+
"profile": "anti_join_null",
|
| 306 |
+
"breaking_profile": "empty",
|
| 307 |
+
"intent": "Заказы без позиций",
|
| 308 |
+
"ordered": true,
|
| 309 |
+
"tables": [
|
| 310 |
+
"orders",
|
| 311 |
+
"order_items"
|
| 312 |
+
]
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"id": "shop_product_category_name",
|
| 316 |
+
"schema": "shop",
|
| 317 |
+
"reference_sql": "SELECT p.id, cat.name FROM products p JOIN categories cat ON cat.id=p.category_id ORDER BY p.id",
|
| 318 |
+
"profile": "join",
|
| 319 |
+
"breaking_profile": "multiplicity",
|
| 320 |
+
"intent": "Товары с названием категории",
|
| 321 |
+
"ordered": true,
|
| 322 |
+
"tables": [
|
| 323 |
+
"categories",
|
| 324 |
+
"products"
|
| 325 |
+
]
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"id": "shop_order_payments",
|
| 329 |
+
"schema": "shop",
|
| 330 |
+
"reference_sql": "SELECT o.id, pay.amount FROM orders o LEFT JOIN payments pay ON pay.order_id=o.id ORDER BY o.id, pay.id",
|
| 331 |
+
"profile": "outer_join_predicate",
|
| 332 |
+
"breaking_profile": "empty",
|
| 333 |
+
"intent": "Заказы и суммы платежей, включая отсутствующие",
|
| 334 |
+
"ordered": true,
|
| 335 |
+
"tables": [
|
| 336 |
+
"orders",
|
| 337 |
+
"payments"
|
| 338 |
+
]
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"id": "shop_customer_city_orders",
|
| 342 |
+
"schema": "shop",
|
| 343 |
+
"reference_sql": "SELECT DISTINCT c.id FROM customers c JOIN orders o ON o.customer_id=c.id WHERE c.city='Moscow' ORDER BY c.id",
|
| 344 |
+
"profile": "distinct_join",
|
| 345 |
+
"breaking_profile": "multiplicity",
|
| 346 |
+
"intent": "Клиенты из города с заказами",
|
| 347 |
+
"ordered": true,
|
| 348 |
+
"tables": [
|
| 349 |
+
"customers",
|
| 350 |
+
"orders"
|
| 351 |
+
]
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"id": "shop_category_self",
|
| 355 |
+
"schema": "shop",
|
| 356 |
+
"reference_sql": "SELECT child.id, parent.id AS parent_id FROM categories child JOIN categories parent ON parent.id=child.parent_id ORDER BY child.id",
|
| 357 |
+
"profile": "self_join",
|
| 358 |
+
"breaking_profile": "multiplicity",
|
| 359 |
+
"intent": "Пары категорий родитель-потомок",
|
| 360 |
+
"ordered": true,
|
| 361 |
+
"tables": [
|
| 362 |
+
"categories"
|
| 363 |
+
]
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"id": "shop_join_agg_derived",
|
| 367 |
+
"schema": "shop",
|
| 368 |
+
"reference_sql": "SELECT x.customer_id, x.total FROM (SELECT o.customer_id, SUM(oi.quantity*oi.unit_price) AS total FROM orders o JOIN order_items oi ON oi.order_id=o.id GROUP BY o.customer_id) x WHERE x.total > 100 ORDER BY x.customer_id",
|
| 369 |
+
"profile": "derived_table",
|
| 370 |
+
"breaking_profile": "zero_value",
|
| 371 |
+
"intent": "Клиенты с суммой заказов больше 100",
|
| 372 |
+
"ordered": true,
|
| 373 |
+
"tables": [
|
| 374 |
+
"orders",
|
| 375 |
+
"order_items"
|
| 376 |
+
]
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"id": "shop_customer_without_orders",
|
| 380 |
+
"schema": "shop",
|
| 381 |
+
"reference_sql": "SELECT c.id FROM customers c LEFT JOIN orders o ON o.customer_id=c.id WHERE o.id IS NULL ORDER BY c.id",
|
| 382 |
+
"profile": "anti_join_null",
|
| 383 |
+
"breaking_profile": "empty",
|
| 384 |
+
"intent": "Клиенты без заказов",
|
| 385 |
+
"ordered": true,
|
| 386 |
+
"tables": [
|
| 387 |
+
"customers",
|
| 388 |
+
"orders"
|
| 389 |
+
]
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"id": "shop_order_max_quantity_items",
|
| 393 |
+
"schema": "shop",
|
| 394 |
+
"reference_sql": "SELECT oi.id FROM order_items oi JOIN (SELECT order_id, MAX(quantity) AS mq FROM order_items GROUP BY order_id) m ON oi.order_id=m.order_id AND oi.quantity=m.mq ORDER BY oi.id",
|
| 395 |
+
"profile": "join_aggregate",
|
| 396 |
+
"breaking_profile": "ties",
|
| 397 |
+
"intent": "Позиции с максимальным количеством в заказе",
|
| 398 |
+
"ordered": true,
|
| 399 |
+
"tables": [
|
| 400 |
+
"order_items"
|
| 401 |
+
]
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"id": "shop_latest_order_per_customer",
|
| 405 |
+
"schema": "shop",
|
| 406 |
+
"reference_sql": "SELECT o.id, o.customer_id FROM orders o WHERE o.created_at=(SELECT MAX(x.created_at) FROM orders x WHERE x.customer_id=o.customer_id) ORDER BY o.id",
|
| 407 |
+
"profile": "correlated_max",
|
| 408 |
+
"breaking_profile": "ties",
|
| 409 |
+
"intent": "Последние заказы клиентов",
|
| 410 |
+
"ordered": true,
|
| 411 |
+
"tables": [
|
| 412 |
+
"orders"
|
| 413 |
+
]
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"id": "shop_products_price_range",
|
| 417 |
+
"schema": "shop",
|
| 418 |
+
"reference_sql": "SELECT id, price FROM products WHERE price BETWEEN 10 AND 20 ORDER BY id",
|
| 419 |
+
"profile": "range_filter",
|
| 420 |
+
"breaking_profile": "boundary",
|
| 421 |
+
"intent": "Товары с ценой в замкнутом диапазоне",
|
| 422 |
+
"ordered": true,
|
| 423 |
+
"tables": [
|
| 424 |
+
"products"
|
| 425 |
+
]
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"id": "shop_products_stock_positive",
|
| 429 |
+
"schema": "shop",
|
| 430 |
+
"reference_sql": "SELECT id FROM products WHERE stock > 0 ORDER BY id",
|
| 431 |
+
"profile": "boundary_filter",
|
| 432 |
+
"breaking_profile": "boundary",
|
| 433 |
+
"intent": "Товары с положительным остатком",
|
| 434 |
+
"ordered": true,
|
| 435 |
+
"tables": [
|
| 436 |
+
"products"
|
| 437 |
+
]
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"id": "shop_orders_status_in",
|
| 441 |
+
"schema": "shop",
|
| 442 |
+
"reference_sql": "SELECT id FROM orders WHERE status IN ('paid','shipped') ORDER BY id",
|
| 443 |
+
"profile": "range_filter",
|
| 444 |
+
"breaking_profile": "boundary",
|
| 445 |
+
"intent": "Заказы в оплаченном или отправленном статусе",
|
| 446 |
+
"ordered": true,
|
| 447 |
+
"tables": [
|
| 448 |
+
"orders"
|
| 449 |
+
]
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"id": "shop_orders_status_not_in",
|
| 453 |
+
"schema": "shop",
|
| 454 |
+
"reference_sql": "SELECT id FROM orders WHERE status NOT IN ('cancelled','returned') ORDER BY id",
|
| 455 |
+
"profile": "not_in_subquery",
|
| 456 |
+
"breaking_profile": "nullable",
|
| 457 |
+
"intent": "Заказы вне отменённых и возвращённых",
|
| 458 |
+
"ordered": true,
|
| 459 |
+
"tables": [
|
| 460 |
+
"orders"
|
| 461 |
+
]
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"id": "shop_customers_city_null",
|
| 465 |
+
"schema": "shop",
|
| 466 |
+
"reference_sql": "SELECT id FROM customers WHERE city IS NULL ORDER BY id",
|
| 467 |
+
"profile": "null_aware_filter",
|
| 468 |
+
"breaking_profile": "nullable",
|
| 469 |
+
"intent": "Клиенты без указанного города",
|
| 470 |
+
"ordered": true,
|
| 471 |
+
"tables": [
|
| 472 |
+
"customers"
|
| 473 |
+
]
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"id": "shop_customers_city_not_null",
|
| 477 |
+
"schema": "shop",
|
| 478 |
+
"reference_sql": "SELECT id FROM customers WHERE city IS NOT NULL ORDER BY id",
|
| 479 |
+
"profile": "null_aware_filter",
|
| 480 |
+
"breaking_profile": "nullable",
|
| 481 |
+
"intent": "Клиенты с указанным городом",
|
| 482 |
+
"ordered": true,
|
| 483 |
+
"tables": [
|
| 484 |
+
"customers"
|
| 485 |
+
]
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"id": "shop_products_active_flag",
|
| 489 |
+
"schema": "shop",
|
| 490 |
+
"reference_sql": "SELECT id FROM products WHERE active = 1 ORDER BY id",
|
| 491 |
+
"profile": "boundary_filter",
|
| 492 |
+
"breaking_profile": "boundary",
|
| 493 |
+
"intent": "Активные товары",
|
| 494 |
+
"ordered": true,
|
| 495 |
+
"tables": [
|
| 496 |
+
"products"
|
| 497 |
+
]
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"id": "shop_orders_channel_or",
|
| 501 |
+
"schema": "shop",
|
| 502 |
+
"reference_sql": "SELECT id FROM orders WHERE channel IS NULL OR channel = 'web' ORDER BY id",
|
| 503 |
+
"profile": "or_filter",
|
| 504 |
+
"breaking_profile": "nullable",
|
| 505 |
+
"intent": "Заказы веб-канала или без канала",
|
| 506 |
+
"ordered": true,
|
| 507 |
+
"tables": [
|
| 508 |
+
"orders"
|
| 509 |
+
]
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"id": "shop_reviews_rating_boundary",
|
| 513 |
+
"schema": "shop",
|
| 514 |
+
"reference_sql": "SELECT id FROM reviews WHERE rating >= 4 ORDER BY id",
|
| 515 |
+
"profile": "boundary_filter",
|
| 516 |
+
"breaking_profile": "boundary",
|
| 517 |
+
"intent": "Отзывы с высокой оценкой",
|
| 518 |
+
"ordered": true,
|
| 519 |
+
"tables": [
|
| 520 |
+
"reviews"
|
| 521 |
+
]
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"id": "shop_payments_method_equal",
|
| 525 |
+
"schema": "shop",
|
| 526 |
+
"reference_sql": "SELECT id FROM payments WHERE method = 'card' ORDER BY id",
|
| 527 |
+
"profile": "pattern_filter",
|
| 528 |
+
"breaking_profile": "random",
|
| 529 |
+
"intent": "Платежи картой",
|
| 530 |
+
"ordered": true,
|
| 531 |
+
"tables": [
|
| 532 |
+
"payments"
|
| 533 |
+
]
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"id": "shop_products_sku_like",
|
| 537 |
+
"schema": "shop",
|
| 538 |
+
"reference_sql": "SELECT id, sku FROM products WHERE sku LIKE 'SKU-%' ORDER BY id",
|
| 539 |
+
"profile": "pattern_filter",
|
| 540 |
+
"breaking_profile": "random",
|
| 541 |
+
"intent": "Товары с артикулом по образцу",
|
| 542 |
+
"ordered": true,
|
| 543 |
+
"tables": [
|
| 544 |
+
"products"
|
| 545 |
+
]
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"id": "shop_customers_with_orders",
|
| 549 |
+
"schema": "shop",
|
| 550 |
+
"reference_sql": "SELECT c.id FROM customers c WHERE EXISTS (SELECT 1 FROM orders o WHERE o.customer_id=c.id) ORDER BY c.id",
|
| 551 |
+
"profile": "semi_join_exists",
|
| 552 |
+
"breaking_profile": "empty",
|
| 553 |
+
"intent": "Клиенты с хотя бы одним заказом",
|
| 554 |
+
"ordered": true,
|
| 555 |
+
"tables": [
|
| 556 |
+
"customers",
|
| 557 |
+
"orders"
|
| 558 |
+
]
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"id": "shop_customers_without_orders",
|
| 562 |
+
"schema": "shop",
|
| 563 |
+
"reference_sql": "SELECT c.id FROM customers c WHERE NOT EXISTS (SELECT 1 FROM orders o WHERE o.customer_id=c.id) ORDER BY c.id",
|
| 564 |
+
"profile": "anti_join_exists",
|
| 565 |
+
"breaking_profile": "empty",
|
| 566 |
+
"intent": "Клиенты без заказов через анти-соединение",
|
| 567 |
+
"ordered": true,
|
| 568 |
+
"tables": [
|
| 569 |
+
"customers",
|
| 570 |
+
"orders"
|
| 571 |
+
]
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"id": "shop_products_ordered_in",
|
| 575 |
+
"schema": "shop",
|
| 576 |
+
"reference_sql": "SELECT p.id FROM products p WHERE p.id IN (SELECT oi.product_id FROM order_items oi) ORDER BY p.id",
|
| 577 |
+
"profile": "in_subquery",
|
| 578 |
+
"breaking_profile": "nullable",
|
| 579 |
+
"intent": "Товары, входящие в множество заказанных",
|
| 580 |
+
"ordered": true,
|
| 581 |
+
"tables": [
|
| 582 |
+
"products",
|
| 583 |
+
"order_items"
|
| 584 |
+
]
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"id": "shop_products_not_ordered_in",
|
| 588 |
+
"schema": "shop",
|
| 589 |
+
"reference_sql": "SELECT p.id FROM products p WHERE p.id NOT IN (SELECT oi.product_id FROM order_items oi) ORDER BY p.id",
|
| 590 |
+
"profile": "not_in_subquery",
|
| 591 |
+
"breaking_profile": "nullable",
|
| 592 |
+
"intent": "Товары, не входящие в множество заказанных",
|
| 593 |
+
"ordered": true,
|
| 594 |
+
"tables": [
|
| 595 |
+
"products",
|
| 596 |
+
"order_items"
|
| 597 |
+
]
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"id": "shop_orders_above_avg",
|
| 601 |
+
"schema": "shop",
|
| 602 |
+
"reference_sql": "SELECT o.id FROM orders o WHERE (SELECT COALESCE(SUM(oi.quantity*oi.unit_price),0) FROM order_items oi WHERE oi.order_id=o.id) > (SELECT AVG(oi.quantity*oi.unit_price) FROM order_items oi) ORDER BY o.id",
|
| 603 |
+
"profile": "scalar_subquery",
|
| 604 |
+
"breaking_profile": "zero_value",
|
| 605 |
+
"intent": "Заказы дороже средней позиции",
|
| 606 |
+
"ordered": true,
|
| 607 |
+
"tables": [
|
| 608 |
+
"orders",
|
| 609 |
+
"order_items"
|
| 610 |
+
]
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"id": "shop_customer_order_count_scalar",
|
| 614 |
+
"schema": "shop",
|
| 615 |
+
"reference_sql": "SELECT c.id, (SELECT COUNT(*) FROM orders o WHERE o.customer_id=c.id) AS n FROM customers c ORDER BY c.id",
|
| 616 |
+
"profile": "correlated_scalar",
|
| 617 |
+
"breaking_profile": "empty",
|
| 618 |
+
"intent": "Число заказов клиента скалярным подзапросом",
|
| 619 |
+
"ordered": true,
|
| 620 |
+
"tables": [
|
| 621 |
+
"customers",
|
| 622 |
+
"orders"
|
| 623 |
+
]
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"id": "shop_product_rating_avg",
|
| 627 |
+
"schema": "shop",
|
| 628 |
+
"reference_sql": "SELECT p.id, (SELECT AVG(r.rating) FROM reviews r WHERE r.product_id=p.id) AS avg_rating FROM products p ORDER BY p.id",
|
| 629 |
+
"profile": "correlated_scalar",
|
| 630 |
+
"breaking_profile": "nullable",
|
| 631 |
+
"intent": "Средняя оценка товара скалярным подзапросом",
|
| 632 |
+
"ordered": true,
|
| 633 |
+
"tables": [
|
| 634 |
+
"products",
|
| 635 |
+
"reviews"
|
| 636 |
+
]
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"id": "shop_customers_cte",
|
| 640 |
+
"schema": "shop",
|
| 641 |
+
"reference_sql": "WITH active_orders AS (SELECT id, customer_id FROM orders WHERE status = 'paid') SELECT id FROM active_orders ORDER BY id",
|
| 642 |
+
"profile": "cte",
|
| 643 |
+
"breaking_profile": "empty",
|
| 644 |
+
"intent": "Оплаченные заказы через общее табличное выражение",
|
| 645 |
+
"ordered": true,
|
| 646 |
+
"tables": [
|
| 647 |
+
"orders"
|
| 648 |
+
]
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"id": "shop_products_order_price_desc",
|
| 652 |
+
"schema": "shop",
|
| 653 |
+
"reference_sql": "SELECT id FROM products ORDER BY price DESC, id",
|
| 654 |
+
"profile": "order_limit",
|
| 655 |
+
"breaking_profile": "ties",
|
| 656 |
+
"intent": "Товары по убыванию цены",
|
| 657 |
+
"ordered": true,
|
| 658 |
+
"tables": [
|
| 659 |
+
"products"
|
| 660 |
+
]
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"id": "shop_orders_limit5",
|
| 664 |
+
"schema": "shop",
|
| 665 |
+
"reference_sql": "SELECT id FROM orders ORDER BY id LIMIT 5",
|
| 666 |
+
"profile": "order_limit",
|
| 667 |
+
"breaking_profile": "ties",
|
| 668 |
+
"intent": "Первые пять заказов по идентификатору",
|
| 669 |
+
"ordered": true,
|
| 670 |
+
"tables": [
|
| 671 |
+
"orders"
|
| 672 |
+
]
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"id": "shop_customers_order_email",
|
| 676 |
+
"schema": "shop",
|
| 677 |
+
"reference_sql": "SELECT id, email FROM customers ORDER BY email",
|
| 678 |
+
"profile": "order_limit",
|
| 679 |
+
"breaking_profile": "random",
|
| 680 |
+
"intent": "Клиенты, упорядоченные по адресу",
|
| 681 |
+
"ordered": true,
|
| 682 |
+
"tables": [
|
| 683 |
+
"customers"
|
| 684 |
+
]
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"id": "shop_products_top_price",
|
| 688 |
+
"schema": "shop",
|
| 689 |
+
"reference_sql": "SELECT id FROM products ORDER BY price DESC, id ASC LIMIT 1",
|
| 690 |
+
"profile": "top_n_ties",
|
| 691 |
+
"breaking_profile": "ties",
|
| 692 |
+
"intent": "Самый дорогой товар с разрешением равенств",
|
| 693 |
+
"ordered": true,
|
| 694 |
+
"tables": [
|
| 695 |
+
"products"
|
| 696 |
+
]
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"id": "shop_payments_order_amount",
|
| 700 |
+
"schema": "shop",
|
| 701 |
+
"reference_sql": "SELECT id, amount FROM payments ORDER BY amount, id",
|
| 702 |
+
"profile": "order_limit",
|
| 703 |
+
"breaking_profile": "ties",
|
| 704 |
+
"intent": "Платежи, упорядоченные по сумме",
|
| 705 |
+
"ordered": true,
|
| 706 |
+
"tables": [
|
| 707 |
+
"payments"
|
| 708 |
+
]
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"id": "shop_orders_order_status_created",
|
| 712 |
+
"schema": "shop",
|
| 713 |
+
"reference_sql": "SELECT id FROM orders ORDER BY status, created_at, id",
|
| 714 |
+
"profile": "order_limit",
|
| 715 |
+
"breaking_profile": "ties",
|
| 716 |
+
"intent": "Заказы, упорядоченные по статусу и дате",
|
| 717 |
+
"ordered": true,
|
| 718 |
+
"tables": [
|
| 719 |
+
"orders"
|
| 720 |
+
]
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"id": "shop_union_bag_items",
|
| 724 |
+
"schema": "shop",
|
| 725 |
+
"reference_sql": "SELECT product_id FROM order_items WHERE quantity >= 2 UNION ALL SELECT product_id FROM order_items WHERE discount > 0 ORDER BY product_id",
|
| 726 |
+
"profile": "union_all",
|
| 727 |
+
"breaking_profile": "multiplicity",
|
| 728 |
+
"intent": "Объединение товаров из двух условий с сохранением повторов",
|
| 729 |
+
"ordered": true,
|
| 730 |
+
"tables": [
|
| 731 |
+
"order_items"
|
| 732 |
+
]
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"id": "shop_union_distinct_customers",
|
| 736 |
+
"schema": "shop",
|
| 737 |
+
"reference_sql": "SELECT customer_id FROM orders WHERE status='paid' UNION SELECT customer_id FROM orders WHERE status='shipped' ORDER BY customer_id",
|
| 738 |
+
"profile": "union_distinct",
|
| 739 |
+
"breaking_profile": "multiplicity",
|
| 740 |
+
"intent": "Объединение клиентов двух статусов без повторов",
|
| 741 |
+
"ordered": true,
|
| 742 |
+
"tables": [
|
| 743 |
+
"orders"
|
| 744 |
+
]
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"id": "shop_count_star_vs_col",
|
| 748 |
+
"schema": "shop",
|
| 749 |
+
"reference_sql": "SELECT product_id, COUNT(*) AS star_cnt, COUNT(discount) AS discount_cnt FROM order_items GROUP BY product_id ORDER BY product_id",
|
| 750 |
+
"profile": "count_star_vs_column",
|
| 751 |
+
"breaking_profile": "nullable",
|
| 752 |
+
"intent": "Число строк против числа известных скидок",
|
| 753 |
+
"ordered": true,
|
| 754 |
+
"tables": [
|
| 755 |
+
"order_items"
|
| 756 |
+
]
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"id": "shop_join_multiplicity",
|
| 760 |
+
"schema": "shop",
|
| 761 |
+
"reference_sql": "SELECT o.customer_id, COUNT(*) AS n FROM orders o JOIN order_items oi ON oi.order_id=o.id GROUP BY o.customer_id ORDER BY o.customer_id",
|
| 762 |
+
"profile": "join_multiplicity",
|
| 763 |
+
"breaking_profile": "multiplicity",
|
| 764 |
+
"intent": "Число строк соединения заказ-позиция по клиентам",
|
| 765 |
+
"ordered": true,
|
| 766 |
+
"tables": [
|
| 767 |
+
"orders",
|
| 768 |
+
"order_items"
|
| 769 |
+
]
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"id": "shop_payments_zero_amount",
|
| 773 |
+
"schema": "shop",
|
| 774 |
+
"reference_sql": "SELECT id FROM payments WHERE amount = 0 ORDER BY id",
|
| 775 |
+
"profile": "boundary_filter",
|
| 776 |
+
"breaking_profile": "zero_value",
|
| 777 |
+
"intent": "Платежи с нулевой суммой",
|
| 778 |
+
"ordered": true,
|
| 779 |
+
"tables": [
|
| 780 |
+
"payments"
|
| 781 |
+
]
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"id": "shop_orders_zero_total",
|
| 785 |
+
"schema": "shop",
|
| 786 |
+
"reference_sql": "SELECT o.id FROM orders o JOIN order_items oi ON oi.order_id=o.id GROUP BY o.id HAVING SUM(oi.quantity*oi.unit_price - oi.discount) = 0 ORDER BY o.id",
|
| 787 |
+
"profile": "aggregate_having",
|
| 788 |
+
"breaking_profile": "zero_value",
|
| 789 |
+
"intent": "Заказы с нулевой суммой позиций",
|
| 790 |
+
"ordered": true,
|
| 791 |
+
"tables": [
|
| 792 |
+
"orders",
|
| 793 |
+
"order_items"
|
| 794 |
+
]
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"id": "shop_products_stock_boundary",
|
| 798 |
+
"schema": "shop",
|
| 799 |
+
"reference_sql": "SELECT id FROM products WHERE stock >= 10 ORDER BY id",
|
| 800 |
+
"profile": "boundary_filter",
|
| 801 |
+
"breaking_profile": "boundary",
|
| 802 |
+
"intent": "Товары с остатком не меньше границы",
|
| 803 |
+
"ordered": true,
|
| 804 |
+
"tables": [
|
| 805 |
+
"products"
|
| 806 |
+
]
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"id": "shop_discount_full",
|
| 810 |
+
"schema": "shop",
|
| 811 |
+
"reference_sql": "SELECT id FROM order_items WHERE discount = unit_price ORDER BY id",
|
| 812 |
+
"profile": "boundary_filter",
|
| 813 |
+
"breaking_profile": "zero_value",
|
| 814 |
+
"intent": "Позиции с полной скидкой",
|
| 815 |
+
"ordered": true,
|
| 816 |
+
"tables": [
|
| 817 |
+
"order_items"
|
| 818 |
+
]
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"id": "shop_orders_null_channel_group",
|
| 822 |
+
"schema": "shop",
|
| 823 |
+
"reference_sql": "SELECT COALESCE(channel, 'unknown') AS channel_key, COUNT(*) AS n FROM orders GROUP BY channel_key ORDER BY channel_key",
|
| 824 |
+
"profile": "group_by_expression",
|
| 825 |
+
"breaking_profile": "nullable",
|
| 826 |
+
"intent": "Число заказов по каналу, включая отсутствующий",
|
| 827 |
+
"ordered": true,
|
| 828 |
+
"tables": [
|
| 829 |
+
"orders"
|
| 830 |
+
]
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"id": "shop_reviews_null_body",
|
| 834 |
+
"schema": "shop",
|
| 835 |
+
"reference_sql": "SELECT id FROM reviews WHERE body IS NULL ORDER BY id",
|
| 836 |
+
"profile": "null_aware_filter",
|
| 837 |
+
"breaking_profile": "nullable",
|
| 838 |
+
"intent": "Отзывы без текста",
|
| 839 |
+
"ordered": true,
|
| 840 |
+
"tables": [
|
| 841 |
+
"reviews"
|
| 842 |
+
]
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"id": "shop_items_row_number",
|
| 846 |
+
"schema": "shop",
|
| 847 |
+
"reference_sql": "SELECT id, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM order_items ORDER BY id",
|
| 848 |
+
"profile": "window_row_number",
|
| 849 |
+
"breaking_profile": "ties",
|
| 850 |
+
"intent": "Порядковые номера позиций",
|
| 851 |
+
"ordered": true,
|
| 852 |
+
"tables": [
|
| 853 |
+
"order_items"
|
| 854 |
+
]
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"id": "shop_customer_order_rank",
|
| 858 |
+
"schema": "shop",
|
| 859 |
+
"reference_sql": "SELECT customer_id, id, RANK() OVER (PARTITION BY customer_id ORDER BY created_at DESC, id) AS rnk FROM orders ORDER BY customer_id, rnk, id",
|
| 860 |
+
"profile": "window_rank",
|
| 861 |
+
"breaking_profile": "ties",
|
| 862 |
+
"intent": "Ранг заказов клиента по дате",
|
| 863 |
+
"ordered": true,
|
| 864 |
+
"tables": [
|
| 865 |
+
"orders"
|
| 866 |
+
]
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"id": "shop_product_units_running",
|
| 870 |
+
"schema": "shop",
|
| 871 |
+
"reference_sql": "SELECT product_id, id, SUM(quantity) OVER (PARTITION BY product_id ORDER BY id) AS running FROM order_items ORDER BY product_id, id",
|
| 872 |
+
"profile": "window_running",
|
| 873 |
+
"breaking_profile": "ties",
|
| 874 |
+
"intent": "Нарастающее проданное количество по товару",
|
| 875 |
+
"ordered": true,
|
| 876 |
+
"tables": [
|
| 877 |
+
"order_items"
|
| 878 |
+
]
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"id": "shop_product_price_rank",
|
| 882 |
+
"schema": "shop",
|
| 883 |
+
"reference_sql": "SELECT id, DENSE_RANK() OVER (ORDER BY price DESC) AS price_rank FROM products ORDER BY id",
|
| 884 |
+
"profile": "window_rank",
|
| 885 |
+
"breaking_profile": "ties",
|
| 886 |
+
"intent": "Плотный ранг цены товара",
|
| 887 |
+
"ordered": true,
|
| 888 |
+
"tables": [
|
| 889 |
+
"products"
|
| 890 |
+
]
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"id": "shop_recursive_category_depth",
|
| 894 |
+
"schema": "shop",
|
| 895 |
+
"reference_sql": "WITH RECURSIVE tree AS (SELECT id, parent_id, 0 AS depth FROM categories WHERE parent_id IS NULL UNION ALL SELECT c.id, c.parent_id, t.depth+1 FROM categories c JOIN tree t ON c.parent_id=t.id) SELECT id, depth FROM tree ORDER BY id, depth",
|
| 896 |
+
"profile": "recursive_cte",
|
| 897 |
+
"breaking_profile": "empty",
|
| 898 |
+
"intent": "Глубина категории в дереве",
|
| 899 |
+
"ordered": true,
|
| 900 |
+
"tables": [
|
| 901 |
+
"categories"
|
| 902 |
+
]
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"id": "shop_order_item_qty_ratio",
|
| 906 |
+
"schema": "shop",
|
| 907 |
+
"reference_sql": "SELECT oi.id, oi.quantity / NULLIF((SELECT AVG(quantity) FROM order_items),0) AS ratio FROM order_items oi ORDER BY oi.id",
|
| 908 |
+
"profile": "correlated_scalar",
|
| 909 |
+
"breaking_profile": "zero_value",
|
| 910 |
+
"intent": "Отношение количества позиции к среднему",
|
| 911 |
+
"ordered": true,
|
| 912 |
+
"tables": [
|
| 913 |
+
"order_items"
|
| 914 |
+
]
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"id": "shop_customer_orders_per_status",
|
| 918 |
+
"schema": "shop",
|
| 919 |
+
"reference_sql": "SELECT c.id, o.status, COUNT(*) AS n FROM customers c JOIN orders o ON o.customer_id=c.id GROUP BY c.id, o.status ORDER BY c.id, o.status",
|
| 920 |
+
"profile": "aggregate",
|
| 921 |
+
"breaking_profile": "multiplicity",
|
| 922 |
+
"intent": "Число заказов клиента по статусам",
|
| 923 |
+
"ordered": true,
|
| 924 |
+
"tables": [
|
| 925 |
+
"customers",
|
| 926 |
+
"orders"
|
| 927 |
+
]
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"id": "shop_product_reviews_count",
|
| 931 |
+
"schema": "shop",
|
| 932 |
+
"reference_sql": "SELECT p.id, COUNT(r.id) AS n FROM products p LEFT JOIN reviews r ON r.product_id=p.id GROUP BY p.id ORDER BY p.id",
|
| 933 |
+
"profile": "outer_join_aggregate",
|
| 934 |
+
"breaking_profile": "empty",
|
| 935 |
+
"intent": "Число отзывов по товарам, включая ноль",
|
| 936 |
+
"ordered": true,
|
| 937 |
+
"tables": [
|
| 938 |
+
"products",
|
| 939 |
+
"reviews"
|
| 940 |
+
]
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"id": "shop_orders_customer_city",
|
| 944 |
+
"schema": "shop",
|
| 945 |
+
"reference_sql": "SELECT o.id, c.city FROM orders o JOIN customers c ON c.id=o.customer_id WHERE c.city IS NOT NULL ORDER BY o.id",
|
| 946 |
+
"profile": "join",
|
| 947 |
+
"breaking_profile": "nullable",
|
| 948 |
+
"intent": "Заказы клиентов с известным городом",
|
| 949 |
+
"ordered": true,
|
| 950 |
+
"tables": [
|
| 951 |
+
"customers",
|
| 952 |
+
"orders"
|
| 953 |
+
]
|
| 954 |
+
}
|
| 955 |
+
]
|
| 956 |
+
}
|
data/corpus/university.json
ADDED
|
@@ -0,0 +1,966 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "university",
|
| 3 |
+
"dataset": "SREB",
|
| 4 |
+
"dataset_version": "0.2.0",
|
| 5 |
+
"dialect": "mysql",
|
| 6 |
+
"dbms_tested": "MySQL 8.4.11",
|
| 7 |
+
"schema_description": "Синтетический университет: подразделения, преподаватели, студенты, семестры, курсы, записи на курсы и оценки. NULL допускается в teachers.salary, students.birth_date, grades.score, grades.grade_letter, grades.graded_on; уникальность (student_id, course_id, semester_id) в enrollments; CHECK на допустимые оценки, статусы и диапазон дат семестра.",
|
| 8 |
+
"profile_legend": {
|
| 9 |
+
"aggregate": "одна агрегатная функция или несколько по одной группировке",
|
| 10 |
+
"aggregate_case": "агрегат с условным выражением CASE",
|
| 11 |
+
"aggregate_having": "группировка с условием HAVING",
|
| 12 |
+
"outer_join_aggregate": "внешнее соединение с агрегатом (включая нулевые группы)",
|
| 13 |
+
"join": "соединение без агрегата",
|
| 14 |
+
"join_aggregate": "соединение с агрегатом",
|
| 15 |
+
"join_multiplicity": "счётчик строк соединения (кратности)",
|
| 16 |
+
"distinct_join": "соединение с DISTINCT",
|
| 17 |
+
"self_join": "соединение таблицы с собой",
|
| 18 |
+
"anti_join_null": "анти-соединение через LEFT JOIN ... IS NULL",
|
| 19 |
+
"anti_join_exists": "анти-соединение через NOT EXISTS",
|
| 20 |
+
"semi_join_exists": "полусоединение через EXISTS",
|
| 21 |
+
"in_subquery": "предикат IN с подзапросом",
|
| 22 |
+
"not_in_subquery": "предикат NOT IN с подзапросом",
|
| 23 |
+
"correlated_scalar": "коррелированный скалярный подзапрос",
|
| 24 |
+
"scalar_subquery": "скалярный подзапрос без корреляции",
|
| 25 |
+
"correlated_max": "коррелированный подзапрос с максимумом",
|
| 26 |
+
"derived_table": "производная таблица в FROM",
|
| 27 |
+
"cte": "общее табличное выражение (CTE)",
|
| 28 |
+
"recursive_cte": "рекурсивное общее табличное выражение",
|
| 29 |
+
"outer_join_predicate": "внешнее соединение с предикатом в ON",
|
| 30 |
+
"semi_anti_join": "комбинация EXISTS и NOT EXISTS в одном запросе",
|
| 31 |
+
"anti_join_subquery": "анти-соединение через NOT EXISTS в подзапросе",
|
| 32 |
+
"range_filter": "фильтр по диапазону или списку",
|
| 33 |
+
"pattern_filter": "фильтр по образцу строки",
|
| 34 |
+
"null_aware_filter": "фильтр с учётом NULL",
|
| 35 |
+
"or_filter": "фильтр с веткой OR",
|
| 36 |
+
"boundary_filter": "фильтр на граничном значении",
|
| 37 |
+
"group_by_expression": "группировка по выражению",
|
| 38 |
+
"order_limit": "сортировка и/или LIMIT",
|
| 39 |
+
"top_n_ties": "сортировка с LIMIT при возможных равенствах",
|
| 40 |
+
"distinct_filter": "DISTINCT без соединения",
|
| 41 |
+
"union_all": "UNION ALL с сохранением кратностей",
|
| 42 |
+
"union_distinct": "UNION с удалением повторов",
|
| 43 |
+
"count_star_vs_column": "COUNT(*) против COUNT(столбец)",
|
| 44 |
+
"window_row_number": "оконная функция ROW_NUMBER",
|
| 45 |
+
"window_rank": "оконная функция RANK / DENSE_RANK",
|
| 46 |
+
"window_running": "оконная сумма с накоплением",
|
| 47 |
+
"date_function": "функция над датой без агрегата"
|
| 48 |
+
},
|
| 49 |
+
"breaking_profile_legend": {
|
| 50 |
+
"multiplicity": "состояние с повторяющимися строками и кратностями",
|
| 51 |
+
"nullable": "состояние с NULL в необязательном столбце",
|
| 52 |
+
"empty": "пустое состояние или пустой результат",
|
| 53 |
+
"boundary": "состояние с ровно граничным значением",
|
| 54 |
+
"ties": "состояние с равными ключами сортировки",
|
| 55 |
+
"zero_value": "состояние с нулевой суммой или нулевым счётом",
|
| 56 |
+
"random": "псевдослучайное состояние с фиксированным seed"
|
| 57 |
+
},
|
| 58 |
+
"ddl": [
|
| 59 |
+
"CREATE TABLE departments(id INTEGER PRIMARY KEY, name VARCHAR(80) NOT NULL UNIQUE, faculty VARCHAR(80) NOT NULL, budget DECIMAL(12,2) NOT NULL, CHECK(budget >= 0))",
|
| 60 |
+
"CREATE TABLE teachers(id INTEGER PRIMARY KEY, name VARCHAR(80) NOT NULL, department_id INTEGER NOT NULL, title VARCHAR(30) NOT NULL, hired_at DATE NOT NULL, salary DECIMAL(10,2) NULL, FOREIGN KEY(department_id) REFERENCES departments(id), CHECK(title IN ('assistant','lecturer','senior_lecturer','professor')), CHECK(salary IS NULL OR salary >= 0))",
|
| 61 |
+
"CREATE TABLE students(id INTEGER PRIMARY KEY, name VARCHAR(80) NOT NULL, email VARCHAR(120) NOT NULL UNIQUE, department_id INTEGER NOT NULL, enrolled_at DATE NOT NULL, status VARCHAR(20) NOT NULL, birth_date DATE NULL, FOREIGN KEY(department_id) REFERENCES departments(id), CHECK(status IN ('active','graduated','expelled','leave')))",
|
| 62 |
+
"CREATE TABLE semesters(id INTEGER PRIMARY KEY, name VARCHAR(20) NOT NULL UNIQUE, starts_on DATE NOT NULL, ends_on DATE NOT NULL, CHECK(ends_on > starts_on))",
|
| 63 |
+
"CREATE TABLE courses(id INTEGER PRIMARY KEY, code VARCHAR(16) NOT NULL UNIQUE, title VARCHAR(120) NOT NULL, department_id INTEGER NOT NULL, credits INTEGER NOT NULL, FOREIGN KEY(department_id) REFERENCES departments(id), CHECK(credits BETWEEN 1 AND 30))",
|
| 64 |
+
"CREATE TABLE enrollments(id INTEGER PRIMARY KEY, student_id INTEGER NOT NULL, course_id INTEGER NOT NULL, semester_id INTEGER NOT NULL, teacher_id INTEGER NOT NULL, enrolled_on DATE NOT NULL, status VARCHAR(20) NOT NULL, FOREIGN KEY(student_id) REFERENCES students(id), FOREIGN KEY(course_id) REFERENCES courses(id), FOREIGN KEY(semester_id) REFERENCES semesters(id), FOREIGN KEY(teacher_id) REFERENCES teachers(id), UNIQUE(student_id, course_id, semester_id), CHECK(status IN ('enrolled','passed','failed','dropped')))",
|
| 65 |
+
"CREATE TABLE grades(id INTEGER PRIMARY KEY, enrollment_id INTEGER NOT NULL UNIQUE, score DECIMAL(5,2) NULL, grade_letter VARCHAR(2) NULL, graded_on DATE NULL, FOREIGN KEY(enrollment_id) REFERENCES enrollments(id), CHECK(score IS NULL OR (score >= 0 AND score <= 100)), CHECK(grade_letter IS NULL OR grade_letter IN ('A','B','C','D','E','F')))"
|
| 66 |
+
],
|
| 67 |
+
"constraints": [
|
| 68 |
+
"departments.id PRIMARY KEY",
|
| 69 |
+
"departments.name NOT NULL UNIQUE",
|
| 70 |
+
"departments.faculty NOT NULL",
|
| 71 |
+
"departments.budget NOT NULL, CHECK(budget >= 0)",
|
| 72 |
+
"teachers.id PRIMARY KEY",
|
| 73 |
+
"teachers.name NOT NULL",
|
| 74 |
+
"teachers.department_id NOT NULL, REFERENCES departments(id)",
|
| 75 |
+
"teachers.title NOT NULL, CHECK(title IN (assistant, lecturer, senior_lecturer, professor))",
|
| 76 |
+
"teachers.hired_at NOT NULL",
|
| 77 |
+
"teachers.salary NULL allowed, CHECK(salary IS NULL OR salary >= 0)",
|
| 78 |
+
"students.id PRIMARY KEY",
|
| 79 |
+
"students.name NOT NULL",
|
| 80 |
+
"students.email NOT NULL UNIQUE",
|
| 81 |
+
"students.department_id NOT NULL, REFERENCES departments(id)",
|
| 82 |
+
"students.enrolled_at NOT NULL",
|
| 83 |
+
"students.status NOT NULL, CHECK(status IN (active, graduated, expelled, leave))",
|
| 84 |
+
"students.birth_date NULL allowed",
|
| 85 |
+
"semesters.id PRIMARY KEY",
|
| 86 |
+
"semesters.name NOT NULL UNIQUE",
|
| 87 |
+
"semesters.starts_on NOT NULL, semesters.ends_on NOT NULL, CHECK(ends_on > starts_on)",
|
| 88 |
+
"courses.id PRIMARY KEY",
|
| 89 |
+
"courses.code NOT NULL UNIQUE",
|
| 90 |
+
"courses.title NOT NULL",
|
| 91 |
+
"courses.department_id NOT NULL, REFERENCES departments(id)",
|
| 92 |
+
"courses.credits NOT NULL, CHECK(credits BETWEEN 1 AND 30)",
|
| 93 |
+
"enrollments.id PRIMARY KEY",
|
| 94 |
+
"enrollments.student_id NOT NULL, REFERENCES students(id)",
|
| 95 |
+
"enrollments.course_id NOT NULL, REFERENCES courses(id)",
|
| 96 |
+
"enrollments.semester_id NOT NULL, REFERENCES semesters(id)",
|
| 97 |
+
"enrollments.teacher_id NOT NULL, REFERENCES teachers(id)",
|
| 98 |
+
"enrollments.enrolled_on NOT NULL",
|
| 99 |
+
"enrollments.status NOT NULL, CHECK(status IN (enrolled, passed, failed, dropped))",
|
| 100 |
+
"UNIQUE(enrollments.student_id, enrollments.course_id, enrollments.semester_id)",
|
| 101 |
+
"grades.id PRIMARY KEY",
|
| 102 |
+
"grades.enrollment_id NOT NULL UNIQUE, REFERENCES enrollments(id)",
|
| 103 |
+
"grades.score NULL allowed, CHECK(score IS NULL OR (score BETWEEN 0 AND 100))",
|
| 104 |
+
"grades.grade_letter NULL allowed, CHECK(grade_letter IS NULL OR grade_letter IN (A, B, C, D, E, F))",
|
| 105 |
+
"grades.graded_on NULL allowed"
|
| 106 |
+
],
|
| 107 |
+
"families": [
|
| 108 |
+
{
|
| 109 |
+
"id": "uni_department_student_count",
|
| 110 |
+
"schema": "university",
|
| 111 |
+
"reference_sql": "SELECT d.id, COUNT(s.id) AS n FROM departments d LEFT JOIN students s ON s.department_id=d.id GROUP BY d.id ORDER BY d.id",
|
| 112 |
+
"profile": "outer_join_aggregate",
|
| 113 |
+
"breaking_profile": "empty",
|
| 114 |
+
"intent": "Число студентов в подразделении, включая пустые",
|
| 115 |
+
"ordered": true,
|
| 116 |
+
"tables": [
|
| 117 |
+
"departments",
|
| 118 |
+
"students"
|
| 119 |
+
]
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"id": "uni_department_payroll",
|
| 123 |
+
"schema": "university",
|
| 124 |
+
"reference_sql": "SELECT d.id, COALESCE(SUM(t.salary),0) AS payroll FROM departments d LEFT JOIN teachers t ON t.department_id=d.id GROUP BY d.id ORDER BY d.id",
|
| 125 |
+
"profile": "outer_join_aggregate",
|
| 126 |
+
"breaking_profile": "zero_value",
|
| 127 |
+
"intent": "Фонд зарплат подразделения, включая отсутствие преподавателей",
|
| 128 |
+
"ordered": true,
|
| 129 |
+
"tables": [
|
| 130 |
+
"departments",
|
| 131 |
+
"teachers"
|
| 132 |
+
]
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"id": "uni_department_teacher_count",
|
| 136 |
+
"schema": "university",
|
| 137 |
+
"reference_sql": "SELECT d.id, COUNT(t.id) AS n FROM departments d LEFT JOIN teachers t ON t.department_id=d.id GROUP BY d.id ORDER BY d.id",
|
| 138 |
+
"profile": "outer_join_aggregate",
|
| 139 |
+
"breaking_profile": "empty",
|
| 140 |
+
"intent": "Число преподавателей в подразделении",
|
| 141 |
+
"ordered": true,
|
| 142 |
+
"tables": [
|
| 143 |
+
"departments",
|
| 144 |
+
"teachers"
|
| 145 |
+
]
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"id": "uni_course_enrollment_count",
|
| 149 |
+
"schema": "university",
|
| 150 |
+
"reference_sql": "SELECT c.id, COUNT(e.id) AS n FROM courses c LEFT JOIN enrollments e ON e.course_id=c.id GROUP BY c.id ORDER BY c.id",
|
| 151 |
+
"profile": "outer_join_aggregate",
|
| 152 |
+
"breaking_profile": "empty",
|
| 153 |
+
"intent": "Число записей на курс, включая курсы без записей",
|
| 154 |
+
"ordered": true,
|
| 155 |
+
"tables": [
|
| 156 |
+
"courses",
|
| 157 |
+
"enrollments"
|
| 158 |
+
]
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"id": "uni_student_enrollment_count",
|
| 162 |
+
"schema": "university",
|
| 163 |
+
"reference_sql": "SELECT s.id, COUNT(e.id) AS n FROM students s LEFT JOIN enrollments e ON e.student_id=s.id GROUP BY s.id ORDER BY s.id",
|
| 164 |
+
"profile": "outer_join_aggregate",
|
| 165 |
+
"breaking_profile": "empty",
|
| 166 |
+
"intent": "Число курсов у студента, включая ноль",
|
| 167 |
+
"ordered": true,
|
| 168 |
+
"tables": [
|
| 169 |
+
"students",
|
| 170 |
+
"enrollments"
|
| 171 |
+
]
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"id": "uni_semester_enrollment_count",
|
| 175 |
+
"schema": "university",
|
| 176 |
+
"reference_sql": "SELECT se.id, COUNT(e.id) AS n FROM semesters se LEFT JOIN enrollments e ON e.semester_id=se.id GROUP BY se.id ORDER BY se.id",
|
| 177 |
+
"profile": "aggregate",
|
| 178 |
+
"breaking_profile": "empty",
|
| 179 |
+
"intent": "Число записей по семестрам",
|
| 180 |
+
"ordered": true,
|
| 181 |
+
"tables": [
|
| 182 |
+
"semesters",
|
| 183 |
+
"enrollments"
|
| 184 |
+
]
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"id": "uni_course_avg_score",
|
| 188 |
+
"schema": "university",
|
| 189 |
+
"reference_sql": "SELECT c.id, AVG(g.score) AS avg_score FROM courses c JOIN enrollments e ON e.course_id=c.id JOIN grades g ON g.enrollment_id=e.id GROUP BY c.id ORDER BY c.id",
|
| 190 |
+
"profile": "aggregate",
|
| 191 |
+
"breaking_profile": "zero_value",
|
| 192 |
+
"intent": "Средний балл по курсу",
|
| 193 |
+
"ordered": true,
|
| 194 |
+
"tables": [
|
| 195 |
+
"courses",
|
| 196 |
+
"enrollments",
|
| 197 |
+
"grades"
|
| 198 |
+
]
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"id": "uni_student_avg_score",
|
| 202 |
+
"schema": "university",
|
| 203 |
+
"reference_sql": "SELECT e.student_id, AVG(g.score) AS avg_score FROM enrollments e JOIN grades g ON g.enrollment_id=e.id GROUP BY e.student_id ORDER BY e.student_id",
|
| 204 |
+
"profile": "aggregate",
|
| 205 |
+
"breaking_profile": "zero_value",
|
| 206 |
+
"intent": "Средний балл по студенту",
|
| 207 |
+
"ordered": true,
|
| 208 |
+
"tables": [
|
| 209 |
+
"enrollments",
|
| 210 |
+
"grades"
|
| 211 |
+
]
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"id": "uni_teacher_student_count",
|
| 215 |
+
"schema": "university",
|
| 216 |
+
"reference_sql": "SELECT t.id, COUNT(DISTINCT e.student_id) AS n FROM teachers t LEFT JOIN enrollments e ON e.teacher_id=t.id GROUP BY t.id ORDER BY t.id",
|
| 217 |
+
"profile": "aggregate",
|
| 218 |
+
"breaking_profile": "multiplicity",
|
| 219 |
+
"intent": "Число разных студентов у преподавателя",
|
| 220 |
+
"ordered": true,
|
| 221 |
+
"tables": [
|
| 222 |
+
"teachers",
|
| 223 |
+
"enrollments"
|
| 224 |
+
]
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"id": "uni_status_student_count",
|
| 228 |
+
"schema": "university",
|
| 229 |
+
"reference_sql": "SELECT status, COUNT(*) AS n FROM students GROUP BY status ORDER BY status",
|
| 230 |
+
"profile": "aggregate",
|
| 231 |
+
"breaking_profile": "multiplicity",
|
| 232 |
+
"intent": "Число студентов по статусам",
|
| 233 |
+
"ordered": true,
|
| 234 |
+
"tables": [
|
| 235 |
+
"students"
|
| 236 |
+
]
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"id": "uni_department_max_salary",
|
| 240 |
+
"schema": "university",
|
| 241 |
+
"reference_sql": "SELECT d.id, MAX(t.salary) AS max_salary FROM departments d LEFT JOIN teachers t ON t.department_id=d.id GROUP BY d.id ORDER BY d.id",
|
| 242 |
+
"profile": "aggregate",
|
| 243 |
+
"breaking_profile": "nullable",
|
| 244 |
+
"intent": "Максимальная зарплата в подразделении",
|
| 245 |
+
"ordered": true,
|
| 246 |
+
"tables": [
|
| 247 |
+
"departments",
|
| 248 |
+
"teachers"
|
| 249 |
+
]
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"id": "uni_global_stats",
|
| 253 |
+
"schema": "university",
|
| 254 |
+
"reference_sql": "SELECT COUNT(*) AS enrollments, AVG(credits) AS avg_credits FROM courses",
|
| 255 |
+
"profile": "aggregate",
|
| 256 |
+
"breaking_profile": "empty",
|
| 257 |
+
"intent": "Общая статистика по курсам",
|
| 258 |
+
"ordered": false,
|
| 259 |
+
"tables": [
|
| 260 |
+
"courses",
|
| 261 |
+
"enrollments"
|
| 262 |
+
]
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"id": "uni_enrollment_student_course",
|
| 266 |
+
"schema": "university",
|
| 267 |
+
"reference_sql": "SELECT e.id, s.name, c.title FROM enrollments e JOIN students s ON s.id=e.student_id JOIN courses c ON c.id=e.course_id ORDER BY e.id",
|
| 268 |
+
"profile": "join",
|
| 269 |
+
"breaking_profile": "multiplicity",
|
| 270 |
+
"intent": "Записи с именем студента и названием курса",
|
| 271 |
+
"ordered": true,
|
| 272 |
+
"tables": [
|
| 273 |
+
"students",
|
| 274 |
+
"courses",
|
| 275 |
+
"enrollments"
|
| 276 |
+
]
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"id": "uni_teacher_department",
|
| 280 |
+
"schema": "university",
|
| 281 |
+
"reference_sql": "SELECT t.id, d.name FROM teachers t JOIN departments d ON d.id=t.department_id ORDER BY t.id",
|
| 282 |
+
"profile": "join",
|
| 283 |
+
"breaking_profile": "multiplicity",
|
| 284 |
+
"intent": "Преподаватели с названием подразделения",
|
| 285 |
+
"ordered": true,
|
| 286 |
+
"tables": [
|
| 287 |
+
"departments",
|
| 288 |
+
"teachers"
|
| 289 |
+
]
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"id": "uni_three_way_grades",
|
| 293 |
+
"schema": "university",
|
| 294 |
+
"reference_sql": "SELECT e.id, s.name, g.score FROM enrollments e JOIN students s ON s.id=e.student_id JOIN grades g ON g.enrollment_id=e.id ORDER BY e.id",
|
| 295 |
+
"profile": "join",
|
| 296 |
+
"breaking_profile": "multiplicity",
|
| 297 |
+
"intent": "Записи с баллами через три таблицы",
|
| 298 |
+
"ordered": true,
|
| 299 |
+
"tables": [
|
| 300 |
+
"students",
|
| 301 |
+
"enrollments",
|
| 302 |
+
"grades"
|
| 303 |
+
]
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"id": "uni_course_department",
|
| 307 |
+
"schema": "university",
|
| 308 |
+
"reference_sql": "SELECT c.id, d.name FROM courses c JOIN departments d ON d.id=c.department_id ORDER BY c.id",
|
| 309 |
+
"profile": "join",
|
| 310 |
+
"breaking_profile": "multiplicity",
|
| 311 |
+
"intent": "Курсы с названием подразделения",
|
| 312 |
+
"ordered": true,
|
| 313 |
+
"tables": [
|
| 314 |
+
"departments",
|
| 315 |
+
"courses"
|
| 316 |
+
]
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"id": "uni_student_no_enrollment",
|
| 320 |
+
"schema": "university",
|
| 321 |
+
"reference_sql": "SELECT s.id FROM students s LEFT JOIN enrollments e ON e.student_id=s.id WHERE e.id IS NULL ORDER BY s.id",
|
| 322 |
+
"profile": "anti_join_null",
|
| 323 |
+
"breaking_profile": "empty",
|
| 324 |
+
"intent": "Студенты без единой записи на курс",
|
| 325 |
+
"ordered": true,
|
| 326 |
+
"tables": [
|
| 327 |
+
"students",
|
| 328 |
+
"enrollments"
|
| 329 |
+
]
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"id": "uni_teacher_no_enrollment",
|
| 333 |
+
"schema": "university",
|
| 334 |
+
"reference_sql": "SELECT t.id FROM teachers t LEFT JOIN enrollments e ON e.teacher_id=t.id WHERE e.id IS NULL ORDER BY t.id",
|
| 335 |
+
"profile": "anti_join_null",
|
| 336 |
+
"breaking_profile": "empty",
|
| 337 |
+
"intent": "Преподаватели без нагрузки",
|
| 338 |
+
"ordered": true,
|
| 339 |
+
"tables": [
|
| 340 |
+
"teachers",
|
| 341 |
+
"enrollments"
|
| 342 |
+
]
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"id": "uni_student_course_pairs",
|
| 346 |
+
"schema": "university",
|
| 347 |
+
"reference_sql": "SELECT a.student_id, a.course_id, b.course_id AS other_course FROM enrollments a JOIN enrollments b ON a.student_id=b.student_id AND a.course_id<b.course_id ORDER BY a.student_id, a.course_id, other_course",
|
| 348 |
+
"profile": "self_join",
|
| 349 |
+
"breaking_profile": "multiplicity",
|
| 350 |
+
"intent": "Пары разных курсов одного студента",
|
| 351 |
+
"ordered": true,
|
| 352 |
+
"tables": [
|
| 353 |
+
"enrollments"
|
| 354 |
+
]
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"id": "uni_teacher_same_department_pairs",
|
| 358 |
+
"schema": "university",
|
| 359 |
+
"reference_sql": "SELECT a.id, b.id FROM teachers a JOIN teachers b ON a.department_id=b.department_id AND a.id<b.id ORDER BY a.id, b.id",
|
| 360 |
+
"profile": "self_join",
|
| 361 |
+
"breaking_profile": "multiplicity",
|
| 362 |
+
"intent": "Пары преподавателей одного подразделения",
|
| 363 |
+
"ordered": true,
|
| 364 |
+
"tables": [
|
| 365 |
+
"teachers"
|
| 366 |
+
]
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"id": "uni_course_more_credits",
|
| 370 |
+
"schema": "university",
|
| 371 |
+
"reference_sql": "SELECT DISTINCT c.id FROM courses c JOIN courses o ON o.department_id=c.department_id AND o.credits>c.credits ORDER BY c.id",
|
| 372 |
+
"profile": "self_join",
|
| 373 |
+
"breaking_profile": "boundary",
|
| 374 |
+
"intent": "Курсы, у которых в подразделении есть более ёмкий курс",
|
| 375 |
+
"ordered": true,
|
| 376 |
+
"tables": [
|
| 377 |
+
"courses"
|
| 378 |
+
]
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"id": "uni_course_avg_join",
|
| 382 |
+
"schema": "university",
|
| 383 |
+
"reference_sql": "SELECT c.id, x.avg_score FROM courses c JOIN (SELECT e.course_id, AVG(g.score) AS avg_score FROM enrollments e JOIN grades g ON g.enrollment_id=e.id GROUP BY e.course_id) x ON x.course_id=c.id ORDER BY c.id",
|
| 384 |
+
"profile": "join_aggregate",
|
| 385 |
+
"breaking_profile": "multiplicity",
|
| 386 |
+
"intent": "Средний балл курса через соединение с агрегатом",
|
| 387 |
+
"ordered": true,
|
| 388 |
+
"tables": [
|
| 389 |
+
"courses",
|
| 390 |
+
"enrollments",
|
| 391 |
+
"grades"
|
| 392 |
+
]
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"id": "uni_enrollment_teacher_student",
|
| 396 |
+
"schema": "university",
|
| 397 |
+
"reference_sql": "SELECT e.id, t.name, s.name FROM enrollments e JOIN teachers t ON t.id=e.teacher_id JOIN students s ON s.id=e.student_id ORDER BY e.id",
|
| 398 |
+
"profile": "join",
|
| 399 |
+
"breaking_profile": "multiplicity",
|
| 400 |
+
"intent": "Записи с преподавателем и студентом",
|
| 401 |
+
"ordered": true,
|
| 402 |
+
"tables": [
|
| 403 |
+
"teachers",
|
| 404 |
+
"students",
|
| 405 |
+
"enrollments"
|
| 406 |
+
]
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"id": "uni_latest_semester_enrollments",
|
| 410 |
+
"schema": "university",
|
| 411 |
+
"reference_sql": "SELECT e.id FROM enrollments e WHERE e.semester_id=(SELECT x.id FROM semesters x ORDER BY x.starts_on DESC, x.id LIMIT 1) ORDER BY e.id",
|
| 412 |
+
"profile": "scalar_subquery",
|
| 413 |
+
"breaking_profile": "ties",
|
| 414 |
+
"intent": "Записи в последнем по дате начала семестре",
|
| 415 |
+
"ordered": true,
|
| 416 |
+
"tables": [
|
| 417 |
+
"semesters",
|
| 418 |
+
"enrollments"
|
| 419 |
+
]
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"id": "uni_courses_credits_range",
|
| 423 |
+
"schema": "university",
|
| 424 |
+
"reference_sql": "SELECT id, credits FROM courses WHERE credits BETWEEN 3 AND 5 ORDER BY id",
|
| 425 |
+
"profile": "range_filter",
|
| 426 |
+
"breaking_profile": "boundary",
|
| 427 |
+
"intent": "Курсы с трудоёмкостью в замкнутом диапазоне",
|
| 428 |
+
"ordered": true,
|
| 429 |
+
"tables": [
|
| 430 |
+
"courses"
|
| 431 |
+
]
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"id": "uni_courses_credits_in",
|
| 435 |
+
"schema": "university",
|
| 436 |
+
"reference_sql": "SELECT id FROM courses WHERE credits IN (3,4,5) ORDER BY id",
|
| 437 |
+
"profile": "range_filter",
|
| 438 |
+
"breaking_profile": "boundary",
|
| 439 |
+
"intent": "Курсы с одной из перечисленных трудоёмкостей",
|
| 440 |
+
"ordered": true,
|
| 441 |
+
"tables": [
|
| 442 |
+
"courses"
|
| 443 |
+
]
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"id": "uni_teachers_salary_null",
|
| 447 |
+
"schema": "university",
|
| 448 |
+
"reference_sql": "SELECT id FROM teachers WHERE salary IS NULL ORDER BY id",
|
| 449 |
+
"profile": "null_aware_filter",
|
| 450 |
+
"breaking_profile": "nullable",
|
| 451 |
+
"intent": "Преподаватели без указанной зарплаты",
|
| 452 |
+
"ordered": true,
|
| 453 |
+
"tables": [
|
| 454 |
+
"teachers"
|
| 455 |
+
]
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"id": "uni_teachers_salary_not_null",
|
| 459 |
+
"schema": "university",
|
| 460 |
+
"reference_sql": "SELECT id FROM teachers WHERE salary IS NOT NULL ORDER BY id",
|
| 461 |
+
"profile": "null_aware_filter",
|
| 462 |
+
"breaking_profile": "nullable",
|
| 463 |
+
"intent": "Преподаватели с указанной зарплатой",
|
| 464 |
+
"ordered": true,
|
| 465 |
+
"tables": [
|
| 466 |
+
"teachers"
|
| 467 |
+
]
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"id": "uni_students_birth_null",
|
| 471 |
+
"schema": "university",
|
| 472 |
+
"reference_sql": "SELECT id FROM students WHERE birth_date IS NULL ORDER BY id",
|
| 473 |
+
"profile": "null_aware_filter",
|
| 474 |
+
"breaking_profile": "nullable",
|
| 475 |
+
"intent": "Студенты без даты рождения",
|
| 476 |
+
"ordered": true,
|
| 477 |
+
"tables": [
|
| 478 |
+
"students"
|
| 479 |
+
]
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"id": "uni_enrollments_status_or",
|
| 483 |
+
"schema": "university",
|
| 484 |
+
"reference_sql": "SELECT id FROM enrollments WHERE status='passed' OR status='failed' ORDER BY id",
|
| 485 |
+
"profile": "or_filter",
|
| 486 |
+
"breaking_profile": "boundary",
|
| 487 |
+
"intent": "Записи с завершённым исходом",
|
| 488 |
+
"ordered": true,
|
| 489 |
+
"tables": [
|
| 490 |
+
"enrollments"
|
| 491 |
+
]
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"id": "uni_grades_score_boundary",
|
| 495 |
+
"schema": "university",
|
| 496 |
+
"reference_sql": "SELECT id FROM grades WHERE score >= 60 ORDER BY id",
|
| 497 |
+
"profile": "boundary_filter",
|
| 498 |
+
"breaking_profile": "boundary",
|
| 499 |
+
"intent": "Оценки не ниже граничного балла",
|
| 500 |
+
"ordered": true,
|
| 501 |
+
"tables": [
|
| 502 |
+
"grades"
|
| 503 |
+
]
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"id": "uni_students_status_in",
|
| 507 |
+
"schema": "university",
|
| 508 |
+
"reference_sql": "SELECT id FROM students WHERE status IN ('active','leave') ORDER BY id",
|
| 509 |
+
"profile": "range_filter",
|
| 510 |
+
"breaking_profile": "boundary",
|
| 511 |
+
"intent": "Студенты в активном статусе или в отпуске",
|
| 512 |
+
"ordered": true,
|
| 513 |
+
"tables": [
|
| 514 |
+
"students"
|
| 515 |
+
]
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"id": "uni_students_email_like",
|
| 519 |
+
"schema": "university",
|
| 520 |
+
"reference_sql": "SELECT id, email FROM students WHERE email LIKE '%@example.test' ORDER BY id",
|
| 521 |
+
"profile": "pattern_filter",
|
| 522 |
+
"breaking_profile": "random",
|
| 523 |
+
"intent": "Студенты с адресом по образцу",
|
| 524 |
+
"ordered": true,
|
| 525 |
+
"tables": [
|
| 526 |
+
"students"
|
| 527 |
+
]
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"id": "uni_grades_score_open_range",
|
| 531 |
+
"schema": "university",
|
| 532 |
+
"reference_sql": "SELECT id FROM grades WHERE score > 60 AND score < 90 ORDER BY id",
|
| 533 |
+
"profile": "boundary_filter",
|
| 534 |
+
"breaking_profile": "boundary",
|
| 535 |
+
"intent": "Оценки в открытом диапазоне баллов",
|
| 536 |
+
"ordered": true,
|
| 537 |
+
"tables": [
|
| 538 |
+
"grades"
|
| 539 |
+
]
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"id": "uni_teachers_title_equal",
|
| 543 |
+
"schema": "university",
|
| 544 |
+
"reference_sql": "SELECT id FROM teachers WHERE title='professor' ORDER BY id",
|
| 545 |
+
"profile": "pattern_filter",
|
| 546 |
+
"breaking_profile": "random",
|
| 547 |
+
"intent": "Преподаватели в звании профессора",
|
| 548 |
+
"ordered": true,
|
| 549 |
+
"tables": [
|
| 550 |
+
"teachers"
|
| 551 |
+
]
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"id": "uni_students_with_enrollments",
|
| 555 |
+
"schema": "university",
|
| 556 |
+
"reference_sql": "SELECT s.id FROM students s WHERE EXISTS (SELECT 1 FROM enrollments e WHERE e.student_id=s.id) ORDER BY s.id",
|
| 557 |
+
"profile": "semi_join_exists",
|
| 558 |
+
"breaking_profile": "empty",
|
| 559 |
+
"intent": "Студенты с хотя бы одной записью на курс",
|
| 560 |
+
"ordered": true,
|
| 561 |
+
"tables": [
|
| 562 |
+
"students",
|
| 563 |
+
"enrollments"
|
| 564 |
+
]
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"id": "uni_students_without_enrollments",
|
| 568 |
+
"schema": "university",
|
| 569 |
+
"reference_sql": "SELECT s.id FROM students s WHERE NOT EXISTS (SELECT 1 FROM enrollments e WHERE e.student_id=s.id) ORDER BY s.id",
|
| 570 |
+
"profile": "anti_join_exists",
|
| 571 |
+
"breaking_profile": "empty",
|
| 572 |
+
"intent": "Студенты без записей на курсы",
|
| 573 |
+
"ordered": true,
|
| 574 |
+
"tables": [
|
| 575 |
+
"students",
|
| 576 |
+
"enrollments"
|
| 577 |
+
]
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"id": "uni_courses_enrolled_in",
|
| 581 |
+
"schema": "university",
|
| 582 |
+
"reference_sql": "SELECT c.id FROM courses c WHERE c.id IN (SELECT e.course_id FROM enrollments e) ORDER BY c.id",
|
| 583 |
+
"profile": "in_subquery",
|
| 584 |
+
"breaking_profile": "nullable",
|
| 585 |
+
"intent": "Курсы, входящие в множество записей",
|
| 586 |
+
"ordered": true,
|
| 587 |
+
"tables": [
|
| 588 |
+
"courses",
|
| 589 |
+
"enrollments"
|
| 590 |
+
]
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"id": "uni_courses_not_enrolled_in",
|
| 594 |
+
"schema": "university",
|
| 595 |
+
"reference_sql": "SELECT c.id FROM courses c WHERE c.id NOT IN (SELECT e.course_id FROM enrollments e) ORDER BY c.id",
|
| 596 |
+
"profile": "not_in_subquery",
|
| 597 |
+
"breaking_profile": "nullable",
|
| 598 |
+
"intent": "Курсы, не входящие в множество записей",
|
| 599 |
+
"ordered": true,
|
| 600 |
+
"tables": [
|
| 601 |
+
"courses",
|
| 602 |
+
"enrollments"
|
| 603 |
+
]
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"id": "uni_students_above_avg_count",
|
| 607 |
+
"schema": "university",
|
| 608 |
+
"reference_sql": "SELECT s.id FROM students s WHERE (SELECT COUNT(*) FROM enrollments e WHERE e.student_id=s.id) > (SELECT AVG(cnt) FROM (SELECT COUNT(*) AS cnt FROM enrollments e GROUP BY e.student_id) x) ORDER BY s.id",
|
| 609 |
+
"profile": "correlated_scalar",
|
| 610 |
+
"breaking_profile": "multiplicity",
|
| 611 |
+
"intent": "Студенты с числом курсов выше среднего",
|
| 612 |
+
"ordered": true,
|
| 613 |
+
"tables": [
|
| 614 |
+
"students",
|
| 615 |
+
"enrollments"
|
| 616 |
+
]
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"id": "uni_course_top_score",
|
| 620 |
+
"schema": "university",
|
| 621 |
+
"reference_sql": "SELECT e.course_id, e.id FROM enrollments e JOIN grades g ON g.enrollment_id=e.id WHERE g.score=(SELECT MAX(x.score) FROM grades x) ORDER BY e.course_id, e.id",
|
| 622 |
+
"profile": "scalar_subquery",
|
| 623 |
+
"breaking_profile": "ties",
|
| 624 |
+
"intent": "Записи с глобально максимальным баллом",
|
| 625 |
+
"ordered": true,
|
| 626 |
+
"tables": [
|
| 627 |
+
"enrollments",
|
| 628 |
+
"grades"
|
| 629 |
+
]
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"id": "uni_department_derived_counts",
|
| 633 |
+
"schema": "university",
|
| 634 |
+
"reference_sql": "SELECT x.department_id, x.n FROM (SELECT s.department_id, COUNT(*) AS n FROM students s GROUP BY s.department_id) x WHERE x.n >= 2 ORDER BY x.department_id",
|
| 635 |
+
"profile": "derived_table",
|
| 636 |
+
"breaking_profile": "multiplicity",
|
| 637 |
+
"intent": "Подразделения с двумя и более студентами",
|
| 638 |
+
"ordered": true,
|
| 639 |
+
"tables": [
|
| 640 |
+
"students"
|
| 641 |
+
]
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"id": "uni_students_cte",
|
| 645 |
+
"schema": "university",
|
| 646 |
+
"reference_sql": "WITH active AS (SELECT id, name FROM students WHERE status='active') SELECT id FROM active ORDER BY id",
|
| 647 |
+
"profile": "cte",
|
| 648 |
+
"breaking_profile": "empty",
|
| 649 |
+
"intent": "Активные студенты через общее табличное выражение",
|
| 650 |
+
"ordered": true,
|
| 651 |
+
"tables": [
|
| 652 |
+
"students"
|
| 653 |
+
]
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"id": "uni_teachers_order_salary",
|
| 657 |
+
"schema": "university",
|
| 658 |
+
"reference_sql": "SELECT id, salary FROM teachers ORDER BY salary, id",
|
| 659 |
+
"profile": "order_limit",
|
| 660 |
+
"breaking_profile": "nullable",
|
| 661 |
+
"intent": "Преподаватели по возрастанию зарплаты",
|
| 662 |
+
"ordered": true,
|
| 663 |
+
"tables": [
|
| 664 |
+
"teachers"
|
| 665 |
+
]
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"id": "uni_students_order_email",
|
| 669 |
+
"schema": "university",
|
| 670 |
+
"reference_sql": "SELECT id, email FROM students ORDER BY email",
|
| 671 |
+
"profile": "order_limit",
|
| 672 |
+
"breaking_profile": "random",
|
| 673 |
+
"intent": "Студенты по адресу",
|
| 674 |
+
"ordered": true,
|
| 675 |
+
"tables": [
|
| 676 |
+
"students"
|
| 677 |
+
]
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"id": "uni_courses_order_credits",
|
| 681 |
+
"schema": "university",
|
| 682 |
+
"reference_sql": "SELECT id FROM courses ORDER BY credits DESC, id",
|
| 683 |
+
"profile": "order_limit",
|
| 684 |
+
"breaking_profile": "ties",
|
| 685 |
+
"intent": "Курсы по убыванию трудоёмкости",
|
| 686 |
+
"ordered": true,
|
| 687 |
+
"tables": [
|
| 688 |
+
"courses"
|
| 689 |
+
]
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"id": "uni_enrollments_limit5",
|
| 693 |
+
"schema": "university",
|
| 694 |
+
"reference_sql": "SELECT id FROM enrollments ORDER BY id LIMIT 5",
|
| 695 |
+
"profile": "order_limit",
|
| 696 |
+
"breaking_profile": "ties",
|
| 697 |
+
"intent": "Первые пять записей по идентификатору",
|
| 698 |
+
"ordered": true,
|
| 699 |
+
"tables": [
|
| 700 |
+
"enrollments"
|
| 701 |
+
]
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"id": "uni_grades_order_score",
|
| 705 |
+
"schema": "university",
|
| 706 |
+
"reference_sql": "SELECT id, score FROM grades ORDER BY score, id",
|
| 707 |
+
"profile": "order_limit",
|
| 708 |
+
"breaking_profile": "nullable",
|
| 709 |
+
"intent": "Оценки по возрастанию балла",
|
| 710 |
+
"ordered": true,
|
| 711 |
+
"tables": [
|
| 712 |
+
"grades"
|
| 713 |
+
]
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"id": "uni_department_order_name",
|
| 717 |
+
"schema": "university",
|
| 718 |
+
"reference_sql": "SELECT id, name FROM departments ORDER BY name",
|
| 719 |
+
"profile": "order_limit",
|
| 720 |
+
"breaking_profile": "random",
|
| 721 |
+
"intent": "Подразделения по названию",
|
| 722 |
+
"ordered": true,
|
| 723 |
+
"tables": [
|
| 724 |
+
"departments"
|
| 725 |
+
]
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"id": "uni_union_bag_students",
|
| 729 |
+
"schema": "university",
|
| 730 |
+
"reference_sql": "SELECT student_id FROM enrollments WHERE status='passed' UNION ALL SELECT student_id FROM enrollments WHERE status='failed' ORDER BY student_id",
|
| 731 |
+
"profile": "union_all",
|
| 732 |
+
"breaking_profile": "multiplicity",
|
| 733 |
+
"intent": "Объединение студентов двух исходов с сохранением повторов",
|
| 734 |
+
"ordered": true,
|
| 735 |
+
"tables": [
|
| 736 |
+
"enrollments"
|
| 737 |
+
]
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"id": "uni_union_distinct_students",
|
| 741 |
+
"schema": "university",
|
| 742 |
+
"reference_sql": "SELECT student_id FROM enrollments WHERE status='passed' UNION SELECT student_id FROM enrollments WHERE status='failed' ORDER BY student_id",
|
| 743 |
+
"profile": "union_distinct",
|
| 744 |
+
"breaking_profile": "multiplicity",
|
| 745 |
+
"intent": "Объединение студентов двух исходов без повторов",
|
| 746 |
+
"ordered": true,
|
| 747 |
+
"tables": [
|
| 748 |
+
"enrollments"
|
| 749 |
+
]
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"id": "uni_count_star_vs_score",
|
| 753 |
+
"schema": "university",
|
| 754 |
+
"reference_sql": "SELECT e.course_id, COUNT(*) AS rows_cnt, COUNT(g.score) AS scored_cnt FROM enrollments e LEFT JOIN grades g ON g.enrollment_id=e.id GROUP BY e.course_id ORDER BY e.course_id",
|
| 755 |
+
"profile": "count_star_vs_column",
|
| 756 |
+
"breaking_profile": "nullable",
|
| 757 |
+
"intent": "Число строк против числа выставленных баллов",
|
| 758 |
+
"ordered": true,
|
| 759 |
+
"tables": [
|
| 760 |
+
"enrollments",
|
| 761 |
+
"grades"
|
| 762 |
+
]
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"id": "uni_department_enrollment_multiplicity",
|
| 766 |
+
"schema": "university",
|
| 767 |
+
"reference_sql": "SELECT s.department_id, COUNT(*) AS n FROM students s JOIN enrollments e ON e.student_id=s.id GROUP BY s.department_id ORDER BY s.department_id",
|
| 768 |
+
"profile": "join_multiplicity",
|
| 769 |
+
"breaking_profile": "multiplicity",
|
| 770 |
+
"intent": "Число строк соединения студент-запись по подразделениям",
|
| 771 |
+
"ordered": true,
|
| 772 |
+
"tables": [
|
| 773 |
+
"students",
|
| 774 |
+
"enrollments"
|
| 775 |
+
]
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"id": "uni_semester_duration",
|
| 779 |
+
"schema": "university",
|
| 780 |
+
"reference_sql": "SELECT id, DATEDIFF(ends_on, starts_on) AS days FROM semesters ORDER BY id",
|
| 781 |
+
"profile": "date_function",
|
| 782 |
+
"breaking_profile": "boundary",
|
| 783 |
+
"intent": "Длительность семестра в днях",
|
| 784 |
+
"ordered": true,
|
| 785 |
+
"tables": [
|
| 786 |
+
"semesters"
|
| 787 |
+
]
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"id": "uni_empty_departments",
|
| 791 |
+
"schema": "university",
|
| 792 |
+
"reference_sql": "SELECT d.id FROM departments d LEFT JOIN students s ON s.department_id=d.id WHERE s.id IS NULL ORDER BY d.id",
|
| 793 |
+
"profile": "anti_join_null",
|
| 794 |
+
"breaking_profile": "empty",
|
| 795 |
+
"intent": "Подразделения без студентов",
|
| 796 |
+
"ordered": true,
|
| 797 |
+
"tables": [
|
| 798 |
+
"departments",
|
| 799 |
+
"students"
|
| 800 |
+
]
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"id": "uni_min_credits_courses",
|
| 804 |
+
"schema": "university",
|
| 805 |
+
"reference_sql": "SELECT id FROM courses WHERE credits = 1 ORDER BY id",
|
| 806 |
+
"profile": "boundary_filter",
|
| 807 |
+
"breaking_profile": "boundary",
|
| 808 |
+
"intent": "Курсы с минимальной граничной трудоёмкостью",
|
| 809 |
+
"ordered": true,
|
| 810 |
+
"tables": [
|
| 811 |
+
"courses"
|
| 812 |
+
]
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"id": "uni_passed_without_grade",
|
| 816 |
+
"schema": "university",
|
| 817 |
+
"reference_sql": "SELECT e.id FROM enrollments e LEFT JOIN grades g ON g.enrollment_id=e.id WHERE e.status='passed' AND g.id IS NULL ORDER BY e.id",
|
| 818 |
+
"profile": "anti_join_null",
|
| 819 |
+
"breaking_profile": "nullable",
|
| 820 |
+
"intent": "Записи с исходом «сдано», но без выставленной оценки",
|
| 821 |
+
"ordered": true,
|
| 822 |
+
"tables": [
|
| 823 |
+
"enrollments",
|
| 824 |
+
"grades"
|
| 825 |
+
]
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"id": "uni_teacher_title_group",
|
| 829 |
+
"schema": "university",
|
| 830 |
+
"reference_sql": "SELECT COALESCE(title,'unknown') AS title_key, COUNT(*) AS n FROM teachers GROUP BY title_key ORDER BY title_key",
|
| 831 |
+
"profile": "group_by_expression",
|
| 832 |
+
"breaking_profile": "nullable",
|
| 833 |
+
"intent": "Число преподавателей по званиям, включая отсутствующие",
|
| 834 |
+
"ordered": true,
|
| 835 |
+
"tables": [
|
| 836 |
+
"teachers"
|
| 837 |
+
]
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"id": "uni_department_status_group",
|
| 841 |
+
"schema": "university",
|
| 842 |
+
"reference_sql": "SELECT d.id, s.status, COUNT(*) AS n FROM departments d JOIN students s ON s.department_id=d.id GROUP BY d.id, s.status ORDER BY d.id, s.status",
|
| 843 |
+
"profile": "aggregate",
|
| 844 |
+
"breaking_profile": "multiplicity",
|
| 845 |
+
"intent": "Число студентов по подразделениям и статусам",
|
| 846 |
+
"ordered": true,
|
| 847 |
+
"tables": [
|
| 848 |
+
"departments",
|
| 849 |
+
"students"
|
| 850 |
+
]
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"id": "uni_students_row_number",
|
| 854 |
+
"schema": "university",
|
| 855 |
+
"reference_sql": "SELECT id, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM students ORDER BY id",
|
| 856 |
+
"profile": "window_row_number",
|
| 857 |
+
"breaking_profile": "ties",
|
| 858 |
+
"intent": "Порядковые номера студентов",
|
| 859 |
+
"ordered": true,
|
| 860 |
+
"tables": [
|
| 861 |
+
"students"
|
| 862 |
+
]
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"id": "uni_course_score_rank",
|
| 866 |
+
"schema": "university",
|
| 867 |
+
"reference_sql": "SELECT e.course_id, g.score, RANK() OVER (PARTITION BY e.course_id ORDER BY g.score DESC) AS rnk FROM enrollments e JOIN grades g ON g.enrollment_id=e.id ORDER BY e.course_id, rnk, g.score DESC, e.id",
|
| 868 |
+
"profile": "window_rank",
|
| 869 |
+
"breaking_profile": "ties",
|
| 870 |
+
"intent": "Ранг балла в рамках курса",
|
| 871 |
+
"ordered": true,
|
| 872 |
+
"tables": [
|
| 873 |
+
"enrollments",
|
| 874 |
+
"grades"
|
| 875 |
+
]
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"id": "uni_student_running_credits",
|
| 879 |
+
"schema": "university",
|
| 880 |
+
"reference_sql": "SELECT e.student_id, e.id, SUM(c.credits) OVER (PARTITION BY e.student_id ORDER BY e.id) AS running_credits FROM enrollments e JOIN courses c ON c.id=e.course_id ORDER BY e.student_id, e.id",
|
| 881 |
+
"profile": "window_running",
|
| 882 |
+
"breaking_profile": "ties",
|
| 883 |
+
"intent": "Нарастающая трудоёмкость записей студента",
|
| 884 |
+
"ordered": true,
|
| 885 |
+
"tables": [
|
| 886 |
+
"courses",
|
| 887 |
+
"enrollments"
|
| 888 |
+
]
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"id": "uni_course_enrollment_rank",
|
| 892 |
+
"schema": "university",
|
| 893 |
+
"reference_sql": "SELECT c.id, COUNT(e.id) AS n, RANK() OVER (ORDER BY COUNT(e.id) DESC) AS rnk FROM courses c LEFT JOIN enrollments e ON e.course_id=c.id GROUP BY c.id ORDER BY rnk, c.id",
|
| 894 |
+
"profile": "window_rank",
|
| 895 |
+
"breaking_profile": "ties",
|
| 896 |
+
"intent": "Ранг курса по числу записей",
|
| 897 |
+
"ordered": true,
|
| 898 |
+
"tables": [
|
| 899 |
+
"courses",
|
| 900 |
+
"enrollments"
|
| 901 |
+
]
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"id": "uni_department_student_share",
|
| 905 |
+
"schema": "university",
|
| 906 |
+
"reference_sql": "SELECT d.id, COUNT(s.id) / NULLIF((SELECT COUNT(*) FROM students),0) AS share FROM departments d LEFT JOIN students s ON s.department_id=d.id GROUP BY d.id ORDER BY d.id",
|
| 907 |
+
"profile": "derived_table",
|
| 908 |
+
"breaking_profile": "zero_value",
|
| 909 |
+
"intent": "Доля студентов подразделения от общего числа",
|
| 910 |
+
"ordered": true,
|
| 911 |
+
"tables": [
|
| 912 |
+
"departments",
|
| 913 |
+
"students"
|
| 914 |
+
]
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"id": "uni_grade_letter_count",
|
| 918 |
+
"schema": "university",
|
| 919 |
+
"reference_sql": "SELECT g.grade_letter, COUNT(*) AS n FROM grades g WHERE g.grade_letter IS NOT NULL GROUP BY g.grade_letter ORDER BY g.grade_letter",
|
| 920 |
+
"profile": "aggregate",
|
| 921 |
+
"breaking_profile": "nullable",
|
| 922 |
+
"intent": "Число оценок по буквам",
|
| 923 |
+
"ordered": true,
|
| 924 |
+
"tables": [
|
| 925 |
+
"grades"
|
| 926 |
+
]
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"id": "uni_course_passed_failed",
|
| 930 |
+
"schema": "university",
|
| 931 |
+
"reference_sql": "SELECT c.id, SUM(CASE WHEN e.status='passed' THEN 1 ELSE 0 END) AS passed, COUNT(*) AS total FROM courses c JOIN enrollments e ON e.course_id=c.id GROUP BY c.id ORDER BY c.id",
|
| 932 |
+
"profile": "aggregate_case",
|
| 933 |
+
"breaking_profile": "multiplicity",
|
| 934 |
+
"intent": "Число сдавших и общее число записей по курсу",
|
| 935 |
+
"ordered": true,
|
| 936 |
+
"tables": [
|
| 937 |
+
"courses",
|
| 938 |
+
"enrollments"
|
| 939 |
+
]
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"id": "uni_teacher_latest_hired",
|
| 943 |
+
"schema": "university",
|
| 944 |
+
"reference_sql": "SELECT t.id FROM teachers t WHERE t.hired_at=(SELECT MAX(x.hired_at) FROM teachers x) ORDER BY t.id",
|
| 945 |
+
"profile": "scalar_subquery",
|
| 946 |
+
"breaking_profile": "ties",
|
| 947 |
+
"intent": "Последние принятые преподаватели",
|
| 948 |
+
"ordered": true,
|
| 949 |
+
"tables": [
|
| 950 |
+
"teachers"
|
| 951 |
+
]
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"id": "uni_course_credits_above_avg",
|
| 955 |
+
"schema": "university",
|
| 956 |
+
"reference_sql": "SELECT id FROM courses WHERE credits > (SELECT AVG(credits) FROM courses) ORDER BY id",
|
| 957 |
+
"profile": "scalar_subquery",
|
| 958 |
+
"breaking_profile": "boundary",
|
| 959 |
+
"intent": "Курсы с трудоёмкостью выше средней",
|
| 960 |
+
"ordered": true,
|
| 961 |
+
"tables": [
|
| 962 |
+
"courses"
|
| 963 |
+
]
|
| 964 |
+
}
|
| 965 |
+
]
|
| 966 |
+
}
|
data/evidence/active_outer.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "active_outer",
|
| 5 |
+
"reference_sql": "SELECT r.id,l.id AS loan_id FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id=r.id AND l.returned=0 ORDER BY r.id,l.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"qwen2.5-coder:7b": "library_evaluation_20261019_qwen25",
|
| 15 |
+
"qwen2.5:7b": "library_evaluation_20261019_qwen25",
|
| 16 |
+
"phi3.5:3.8b": "library_evaluation_20261019_phi35_repro",
|
| 17 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "qwen2.5-coder:7b",
|
| 23 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 24 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT r.id, l.id AS loan_id FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id = r.id AND l.returned = 0 ORDER BY r.id, l.id",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "qwen2.5:7b",
|
| 33 |
+
"model_slug": "qwen2.5-7b",
|
| 34 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT r.id, l.id AS loan_id FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id = r.id AND l.returned = 0 ORDER BY r.id, l.id",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "phi3.5:3.8b",
|
| 43 |
+
"model_slug": "phi3.5-3.8b",
|
| 44 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT r.id, l.id AS loan_id FROM lib_readers r LEFT JOIN lib_loans l ON l.reader_id = r.id AND l.returned = 0 ORDER BY r.id, l.id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "deepseek-coder-v2:latest",
|
| 53 |
+
"model_slug": "deepseek-coder-v2",
|
| 54 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 55 |
+
"status": "refuted",
|
| 56 |
+
"candidate_sql": "SELECT r.id, l.id AS loan_id \nFROM lib_readers r \nJOIN lib_loans l ON r.id = l.reader_id AND l.returned = 0 \nORDER BY r.id, l.id;",
|
| 57 |
+
"refuting_states": [
|
| 58 |
+
"fixed_0",
|
| 59 |
+
"no_loans_0",
|
| 60 |
+
"multiplicity_0",
|
| 61 |
+
"zero_fee_0",
|
| 62 |
+
"nullable_0",
|
| 63 |
+
"boundary_0",
|
| 64 |
+
"ties_0",
|
| 65 |
+
"random_uniform_0",
|
| 66 |
+
"random_uniform_1",
|
| 67 |
+
"random_uniform_2",
|
| 68 |
+
"random_uniform_3",
|
| 69 |
+
"random_uniform_4",
|
| 70 |
+
"random_uniform_5",
|
| 71 |
+
"random_uniform_6",
|
| 72 |
+
"random_uniform_7",
|
| 73 |
+
"random_uniform_8",
|
| 74 |
+
"random_uniform_9",
|
| 75 |
+
"random_uniform_10",
|
| 76 |
+
"random_uniform_12",
|
| 77 |
+
"random_uniform_13",
|
| 78 |
+
"random_uniform_14",
|
| 79 |
+
"random_uniform_15",
|
| 80 |
+
"random_uniform_16",
|
| 81 |
+
"random_uniform_17",
|
| 82 |
+
"random_uniform_18"
|
| 83 |
+
],
|
| 84 |
+
"witness": {
|
| 85 |
+
"state": "fixed_0",
|
| 86 |
+
"state_profile": "fixed_0",
|
| 87 |
+
"reference_rows": [
|
| 88 |
+
[
|
| 89 |
+
1,
|
| 90 |
+
null
|
| 91 |
+
],
|
| 92 |
+
[
|
| 93 |
+
2,
|
| 94 |
+
2
|
| 95 |
+
],
|
| 96 |
+
[
|
| 97 |
+
3,
|
| 98 |
+
null
|
| 99 |
+
]
|
| 100 |
+
],
|
| 101 |
+
"candidate_rows": [
|
| 102 |
+
[
|
| 103 |
+
2,
|
| 104 |
+
2
|
| 105 |
+
]
|
| 106 |
+
],
|
| 107 |
+
"interface_equal": false,
|
| 108 |
+
"independent_replay": "counterexample"
|
| 109 |
+
},
|
| 110 |
+
"checks": 28
|
| 111 |
+
}
|
| 112 |
+
]
|
| 113 |
+
}
|
data/evidence/all_returned.json
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "all_returned",
|
| 5 |
+
"reference_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id) AND NOT EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id AND (l.returned<>1 OR l.returned IS NULL)) ORDER BY r.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"qwen2.5-coder:7b": "library_evaluation_20261019_qwen25",
|
| 15 |
+
"qwen2.5:7b": "library_evaluation_20261019_qwen25",
|
| 16 |
+
"phi3.5:3.8b": "library_evaluation_20261019_phi35_repro",
|
| 17 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "qwen2.5-coder:7b",
|
| 23 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 24 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 25 |
+
"status": "refuted",
|
| 26 |
+
"candidate_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id AND l.returned=0) ORDER BY r.id",
|
| 27 |
+
"refuting_states": [
|
| 28 |
+
"fixed_0",
|
| 29 |
+
"multiplicity_0",
|
| 30 |
+
"zero_fee_0",
|
| 31 |
+
"nullable_0",
|
| 32 |
+
"boundary_0",
|
| 33 |
+
"ties_0",
|
| 34 |
+
"random_uniform_0",
|
| 35 |
+
"random_uniform_1",
|
| 36 |
+
"random_uniform_2",
|
| 37 |
+
"random_uniform_4",
|
| 38 |
+
"random_uniform_5",
|
| 39 |
+
"random_uniform_6",
|
| 40 |
+
"random_uniform_7",
|
| 41 |
+
"random_uniform_8",
|
| 42 |
+
"random_uniform_10",
|
| 43 |
+
"random_uniform_11",
|
| 44 |
+
"random_uniform_12",
|
| 45 |
+
"random_uniform_13",
|
| 46 |
+
"random_uniform_14",
|
| 47 |
+
"random_uniform_16",
|
| 48 |
+
"random_uniform_17",
|
| 49 |
+
"random_uniform_18",
|
| 50 |
+
"random_uniform_19"
|
| 51 |
+
],
|
| 52 |
+
"witness": {
|
| 53 |
+
"state": "fixed_0",
|
| 54 |
+
"state_profile": "fixed",
|
| 55 |
+
"reference_rows": [
|
| 56 |
+
[
|
| 57 |
+
1
|
| 58 |
+
]
|
| 59 |
+
],
|
| 60 |
+
"candidate_rows": [
|
| 61 |
+
[
|
| 62 |
+
2
|
| 63 |
+
]
|
| 64 |
+
],
|
| 65 |
+
"interface_equal": true,
|
| 66 |
+
"independent_replay": "counterexample"
|
| 67 |
+
},
|
| 68 |
+
"checks": 28
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"model": "qwen2.5:7b",
|
| 72 |
+
"model_slug": "qwen2.5-7b",
|
| 73 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 74 |
+
"status": "refuted",
|
| 75 |
+
"candidate_sql": "SELECT r.id \nFROM lib_readers r\nWHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id = r.id AND (l.returned = 0 OR l.returned IS NULL))\nAND NOT EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id = r.id AND (l.returned <> 1 OR l.returned IS NULL))\nORDER BY r.id",
|
| 76 |
+
"refuting_states": [
|
| 77 |
+
"fixed_0",
|
| 78 |
+
"multiplicity_0",
|
| 79 |
+
"zero_fee_0",
|
| 80 |
+
"nullable_0",
|
| 81 |
+
"boundary_0",
|
| 82 |
+
"random_uniform_0",
|
| 83 |
+
"random_uniform_7",
|
| 84 |
+
"random_uniform_10",
|
| 85 |
+
"random_uniform_12",
|
| 86 |
+
"random_uniform_18"
|
| 87 |
+
],
|
| 88 |
+
"witness": {
|
| 89 |
+
"state": "fixed_0",
|
| 90 |
+
"state_profile": "fixed",
|
| 91 |
+
"reference_rows": [
|
| 92 |
+
[
|
| 93 |
+
1
|
| 94 |
+
]
|
| 95 |
+
],
|
| 96 |
+
"candidate_rows": [],
|
| 97 |
+
"interface_equal": true,
|
| 98 |
+
"independent_replay": "counterexample"
|
| 99 |
+
},
|
| 100 |
+
"checks": 28
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"model": "phi3.5:3.8b",
|
| 104 |
+
"model_slug": "phi3.5-3.8b",
|
| 105 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 106 |
+
"status": "no_rewrite",
|
| 107 |
+
"candidate_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id) AND NOT EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id AND (l.returned<>1 OR l.returned IS NULL)) ORDER BY r.id",
|
| 108 |
+
"refuting_states": [],
|
| 109 |
+
"witness": null,
|
| 110 |
+
"checks": 28
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"model": "deepseek-coder-v2:latest",
|
| 114 |
+
"model_slug": "deepseek-coder-v2",
|
| 115 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 116 |
+
"status": "refuted",
|
| 117 |
+
"candidate_sql": "SELECT r.id \nFROM lib_readers r \nJOIN lib_loans l ON r.id = l.reader_id \nWHERE l.returned = 1 \nORDER BY r.id;",
|
| 118 |
+
"refuting_states": [
|
| 119 |
+
"multiplicity_0",
|
| 120 |
+
"zero_fee_0",
|
| 121 |
+
"ties_0",
|
| 122 |
+
"random_uniform_0",
|
| 123 |
+
"random_uniform_1",
|
| 124 |
+
"random_uniform_2",
|
| 125 |
+
"random_uniform_5",
|
| 126 |
+
"random_uniform_6",
|
| 127 |
+
"random_uniform_7",
|
| 128 |
+
"random_uniform_8",
|
| 129 |
+
"random_uniform_11",
|
| 130 |
+
"random_uniform_12",
|
| 131 |
+
"random_uniform_14",
|
| 132 |
+
"random_uniform_15",
|
| 133 |
+
"random_uniform_16",
|
| 134 |
+
"random_uniform_17",
|
| 135 |
+
"random_uniform_18",
|
| 136 |
+
"random_uniform_19"
|
| 137 |
+
],
|
| 138 |
+
"witness": {
|
| 139 |
+
"state": "multiplicity_0",
|
| 140 |
+
"state_profile": "multiplicity_0",
|
| 141 |
+
"reference_rows": [
|
| 142 |
+
[
|
| 143 |
+
2
|
| 144 |
+
]
|
| 145 |
+
],
|
| 146 |
+
"candidate_rows": [
|
| 147 |
+
[
|
| 148 |
+
1
|
| 149 |
+
],
|
| 150 |
+
[
|
| 151 |
+
2
|
| 152 |
+
]
|
| 153 |
+
],
|
| 154 |
+
"interface_equal": true,
|
| 155 |
+
"independent_replay": "counterexample"
|
| 156 |
+
},
|
| 157 |
+
"checks": 28
|
| 158 |
+
}
|
| 159 |
+
]
|
| 160 |
+
}
|
data/evidence/borrowers.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "borrowers",
|
| 5 |
+
"reference_sql": "SELECT DISTINCT r.id FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id WHERE b.price<=20 ORDER BY r.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"qwen2.5-coder:7b": "library_evaluation_20261019_qwen25",
|
| 15 |
+
"qwen2.5:7b": "library_evaluation_20261019_qwen25",
|
| 16 |
+
"phi3.5:3.8b": "library_evaluation_20261019_phi35_repro",
|
| 17 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "qwen2.5-coder:7b",
|
| 23 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 24 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT DISTINCT r.id FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id WHERE b.price<=20 ORDER BY r.id",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "qwen2.5:7b",
|
| 33 |
+
"model_slug": "qwen2.5-7b",
|
| 34 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT DISTINCT r.id FROM lib_readers r JOIN lib_loans l ON l.reader_id = r.id JOIN lib_books b ON b.id = l.book_id WHERE b.price <= 20 ORDER BY r.id",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "phi3.5:3.8b",
|
| 43 |
+
"model_slug": "phi3.5-3.8b",
|
| 44 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT DISTINCT r.id FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id WHERE b.price<=20 ORDER BY r.id;",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "deepseek-coder-v2:latest",
|
| 53 |
+
"model_slug": "deepseek-coder-v2",
|
| 54 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT DISTINCT r.id \nFROM lib_readers r \nJOIN lib_loans l ON l.reader_id = r.id \nJOIN lib_books b ON b.id = l.book_id \nWHERE b.price <= 20 \nORDER BY r.id;",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/latest_ties.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "latest_ties",
|
| 5 |
+
"reference_sql": "SELECT l.id,l.reader_id,l.day_no FROM lib_loans l WHERE l.day_no=(SELECT MAX(x.day_no) FROM lib_loans x WHERE x.reader_id=l.reader_id) ORDER BY l.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"qwen2.5-coder:7b": "library_evaluation_20261019_qwen25",
|
| 15 |
+
"qwen2.5:7b": "library_evaluation_20261019_qwen25",
|
| 16 |
+
"phi3.5:3.8b": "library_evaluation_20261019_phi35_repro",
|
| 17 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "qwen2.5-coder:7b",
|
| 23 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 24 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT l.id, l.reader_id, l.day_no FROM lib_loans l JOIN (SELECT reader_id, MAX(day_no) AS max_day_no FROM lib_loans GROUP BY reader_id) m ON l.reader_id = m.reader_id AND l.day_no = m.max_day_no ORDER BY l.id",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "qwen2.5:7b",
|
| 33 |
+
"model_slug": "qwen2.5-7b",
|
| 34 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 35 |
+
"status": "preserved",
|
| 36 |
+
"candidate_sql": "SELECT l.id, l.reader_id, l.day_no \nFROM lib_loans l \nWHERE (l.reader_id, l.day_no) IN (\n SELECT reader_id, MAX(day_no) \n FROM lib_loans \n GROUP BY reader_id\n) \nORDER BY l.id",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "phi3.5:3.8b",
|
| 43 |
+
"model_slug": "phi3.5-3.8b",
|
| 44 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 45 |
+
"status": "preserved",
|
| 46 |
+
"candidate_sql": "SELECT l.id, l.reader_id, l.day_no \nFROM lib_loans l \nINNER JOIN (\n SELECT reader_id, MAX(day_no) AS max_day_no\n FROM lib_loans\n GROUP BY reader_id\n) AS subquery ON l.reader_id = subquery.reader_id AND l.day_no = subquery.max_day_no\nORDER BY l.id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "deepseek-coder-v2:latest",
|
| 53 |
+
"model_slug": "deepseek-coder-v2",
|
| 54 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 55 |
+
"status": "preserved",
|
| 56 |
+
"candidate_sql": "SELECT l.id, l.reader_id, l.day_no \nFROM lib_loans l \nJOIN (\n SELECT reader_id, MAX(day_no) AS max_day_no \n FROM lib_loans \n GROUP BY reader_id\n) AS max_days ON l.reader_id = max_days.reader_id AND l.day_no = max_days.max_day_no \nORDER BY l.id;",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_book_cheaper_than_other.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_book_cheaper_than_other",
|
| 5 |
+
"reference_sql": "SELECT DISTINCT b.id FROM lib_books b JOIN lib_books o ON o.id<>b.id AND o.price>b.price ORDER BY b.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT DISTINCT b.id \nFROM lib_books b, lib_books o \nWHERE o.id <> b.id AND o.price > b.price \nORDER BY b.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT DISTINCT b.id FROM lib_books b JOIN lib_books o ON o.id<>b.id AND o.price>b.price ORDER BY b.id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT DISTINCT b.id FROM lib_books b JOIN lib_books o ON o.id <> b.id AND o.price > b.price ORDER BY b.id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT DISTINCT b.id FROM lib_books b JOIN lib_books o ON o.id<>b.id AND o.price>b.price ORDER BY b.id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_book_loan_sum.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_book_loan_sum",
|
| 5 |
+
"reference_sql": "SELECT b.id, SUM(l.fee) AS total FROM lib_books b LEFT JOIN lib_loans l ON l.book_id=b.id GROUP BY b.id ORDER BY b.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT b.id, SUM(l.fee) AS total FROM lib_books b LEFT JOIN lib_loans l ON l.book_id=b.id GROUP BY b.id ORDER BY b.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT b.id, SUM(l.fee) AS total FROM lib_books b LEFT JOIN lib_loans l ON l.book_id=b.id GROUP BY b.id ORDER BY b.id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT b.id, SUM(l.fee) AS total FROM lib_books b LEFT JOIN lib_loans l ON l.book_id = b.id GROUP BY b.id ORDER BY b.id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT b.id, SUM(l.fee) AS total FROM lib_books b LEFT JOIN lib_loans l ON l.book_id = b.id GROUP BY b.id ORDER BY b.id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_books_distinct_prices.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_distinct_prices",
|
| 5 |
+
"reference_sql": "SELECT DISTINCT price FROM lib_books ORDER BY price",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT DISTINCT price FROM lib_books ORDER BY price;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT DISTINCT price FROM lib_books ORDER BY price;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT DISTINCT price FROM lib_books ORDER BY price",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT DISTINCT price FROM lib_books ORDER BY price",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_books_loaned_in.json
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_loaned_in",
|
| 5 |
+
"reference_sql": "SELECT b.id FROM lib_books b WHERE b.id IN (SELECT l.book_id FROM lib_loans l) ORDER BY b.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "refuted",
|
| 26 |
+
"candidate_sql": "SELECT b.id \nFROM lib_books b \nJOIN lib_loans l ON b.id = l.book_id \nORDER BY b.id;",
|
| 27 |
+
"refuting_states": [
|
| 28 |
+
"multiplicity_0",
|
| 29 |
+
"ties_0",
|
| 30 |
+
"random_uniform_0",
|
| 31 |
+
"random_uniform_1",
|
| 32 |
+
"random_uniform_2",
|
| 33 |
+
"random_uniform_5",
|
| 34 |
+
"random_uniform_6",
|
| 35 |
+
"random_uniform_8",
|
| 36 |
+
"random_uniform_11",
|
| 37 |
+
"random_uniform_12",
|
| 38 |
+
"random_uniform_13",
|
| 39 |
+
"random_uniform_14",
|
| 40 |
+
"random_uniform_16",
|
| 41 |
+
"random_uniform_17",
|
| 42 |
+
"random_uniform_18",
|
| 43 |
+
"random_uniform_19"
|
| 44 |
+
],
|
| 45 |
+
"witness": {
|
| 46 |
+
"state": "multiplicity_0",
|
| 47 |
+
"state_profile": "multiplicity_0",
|
| 48 |
+
"reference_rows": [
|
| 49 |
+
[
|
| 50 |
+
1
|
| 51 |
+
],
|
| 52 |
+
[
|
| 53 |
+
2
|
| 54 |
+
],
|
| 55 |
+
[
|
| 56 |
+
3
|
| 57 |
+
]
|
| 58 |
+
],
|
| 59 |
+
"candidate_rows": [
|
| 60 |
+
[
|
| 61 |
+
1
|
| 62 |
+
],
|
| 63 |
+
[
|
| 64 |
+
1
|
| 65 |
+
],
|
| 66 |
+
[
|
| 67 |
+
2
|
| 68 |
+
],
|
| 69 |
+
[
|
| 70 |
+
3
|
| 71 |
+
]
|
| 72 |
+
],
|
| 73 |
+
"interface_equal": true,
|
| 74 |
+
"independent_replay": "counterexample"
|
| 75 |
+
},
|
| 76 |
+
"checks": 28
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"model": "phi3.5:3.8b",
|
| 80 |
+
"model_slug": "phi3.5-3.8b",
|
| 81 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 82 |
+
"status": "refuted",
|
| 83 |
+
"candidate_sql": "SELECT b.id, b.title, b.price FROM lib_books b WHERE b.id IN (SELECT l.book_id FROM lib_loans l) ORDER BY b.id;",
|
| 84 |
+
"refuting_states": [
|
| 85 |
+
"fixed_0",
|
| 86 |
+
"multiplicity_0",
|
| 87 |
+
"zero_fee_0",
|
| 88 |
+
"nullable_0",
|
| 89 |
+
"boundary_0",
|
| 90 |
+
"ties_0",
|
| 91 |
+
"random_uniform_0",
|
| 92 |
+
"random_uniform_1",
|
| 93 |
+
"random_uniform_2",
|
| 94 |
+
"random_uniform_4",
|
| 95 |
+
"random_uniform_5",
|
| 96 |
+
"random_uniform_6",
|
| 97 |
+
"random_uniform_7",
|
| 98 |
+
"random_uniform_8",
|
| 99 |
+
"random_uniform_9",
|
| 100 |
+
"random_uniform_10",
|
| 101 |
+
"random_uniform_11",
|
| 102 |
+
"random_uniform_12",
|
| 103 |
+
"random_uniform_13",
|
| 104 |
+
"random_uniform_14",
|
| 105 |
+
"random_uniform_15",
|
| 106 |
+
"random_uniform_16",
|
| 107 |
+
"random_uniform_17",
|
| 108 |
+
"random_uniform_18",
|
| 109 |
+
"random_uniform_19"
|
| 110 |
+
],
|
| 111 |
+
"witness": {
|
| 112 |
+
"state": "fixed_0",
|
| 113 |
+
"state_profile": "fixed_0",
|
| 114 |
+
"reference_rows": [
|
| 115 |
+
[
|
| 116 |
+
1
|
| 117 |
+
],
|
| 118 |
+
[
|
| 119 |
+
2
|
| 120 |
+
]
|
| 121 |
+
],
|
| 122 |
+
"candidate_rows": [
|
| 123 |
+
[
|
| 124 |
+
1,
|
| 125 |
+
"Book_A",
|
| 126 |
+
10
|
| 127 |
+
],
|
| 128 |
+
[
|
| 129 |
+
2,
|
| 130 |
+
"Book_B",
|
| 131 |
+
20
|
| 132 |
+
]
|
| 133 |
+
],
|
| 134 |
+
"interface_equal": false,
|
| 135 |
+
"independent_replay": "counterexample"
|
| 136 |
+
},
|
| 137 |
+
"checks": 28
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"model": "qwen2.5:7b",
|
| 141 |
+
"model_slug": "qwen2.5-7b",
|
| 142 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 143 |
+
"status": "preserved",
|
| 144 |
+
"candidate_sql": "SELECT b.id FROM lib_books b WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.book_id = b.id) ORDER BY b.id",
|
| 145 |
+
"refuting_states": [],
|
| 146 |
+
"witness": null,
|
| 147 |
+
"checks": 28
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"model": "qwen2.5-coder:7b",
|
| 151 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 152 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 153 |
+
"status": "refuted",
|
| 154 |
+
"candidate_sql": "SELECT b.id FROM lib_books b JOIN lib_loans l ON b.id = l.book_id ORDER BY b.id",
|
| 155 |
+
"refuting_states": [
|
| 156 |
+
"multiplicity_0",
|
| 157 |
+
"ties_0",
|
| 158 |
+
"random_uniform_0",
|
| 159 |
+
"random_uniform_1",
|
| 160 |
+
"random_uniform_2",
|
| 161 |
+
"random_uniform_5",
|
| 162 |
+
"random_uniform_6",
|
| 163 |
+
"random_uniform_8",
|
| 164 |
+
"random_uniform_11",
|
| 165 |
+
"random_uniform_12",
|
| 166 |
+
"random_uniform_13",
|
| 167 |
+
"random_uniform_14",
|
| 168 |
+
"random_uniform_16",
|
| 169 |
+
"random_uniform_17",
|
| 170 |
+
"random_uniform_18",
|
| 171 |
+
"random_uniform_19"
|
| 172 |
+
],
|
| 173 |
+
"witness": {
|
| 174 |
+
"state": "multiplicity_0",
|
| 175 |
+
"state_profile": "multiplicity_0",
|
| 176 |
+
"reference_rows": [
|
| 177 |
+
[
|
| 178 |
+
1
|
| 179 |
+
],
|
| 180 |
+
[
|
| 181 |
+
2
|
| 182 |
+
],
|
| 183 |
+
[
|
| 184 |
+
3
|
| 185 |
+
]
|
| 186 |
+
],
|
| 187 |
+
"candidate_rows": [
|
| 188 |
+
[
|
| 189 |
+
1
|
| 190 |
+
],
|
| 191 |
+
[
|
| 192 |
+
1
|
| 193 |
+
],
|
| 194 |
+
[
|
| 195 |
+
2
|
| 196 |
+
],
|
| 197 |
+
[
|
| 198 |
+
3
|
| 199 |
+
]
|
| 200 |
+
],
|
| 201 |
+
"interface_equal": true,
|
| 202 |
+
"independent_replay": "counterexample"
|
| 203 |
+
},
|
| 204 |
+
"checks": 28
|
| 205 |
+
}
|
| 206 |
+
]
|
| 207 |
+
}
|
data/evidence/lib_books_never_loaned.json
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_never_loaned",
|
| 5 |
+
"reference_sql": "SELECT b.id FROM lib_books b WHERE NOT EXISTS (SELECT 1 FROM lib_loans l WHERE l.book_id=b.id) ORDER BY b.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT b.id \nFROM lib_books b \nLEFT JOIN lib_loans l ON b.id = l.book_id \nWHERE l.book_id IS NULL \nORDER BY b.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "refuted",
|
| 36 |
+
"candidate_sql": "SELECT b.id, b.title, b.price FROM lib_books b WHERE NOT EXISTS (SELECT 1 FROM lib_loans l WHERE l.book_id = b.id) ORDER BY b.id;",
|
| 37 |
+
"refuting_states": [
|
| 38 |
+
"fixed_0",
|
| 39 |
+
"no_loans_0",
|
| 40 |
+
"boundary_0",
|
| 41 |
+
"random_uniform_0",
|
| 42 |
+
"random_uniform_2",
|
| 43 |
+
"random_uniform_3",
|
| 44 |
+
"random_uniform_4",
|
| 45 |
+
"random_uniform_7",
|
| 46 |
+
"random_uniform_9",
|
| 47 |
+
"random_uniform_10",
|
| 48 |
+
"random_uniform_12",
|
| 49 |
+
"random_uniform_13",
|
| 50 |
+
"random_uniform_15",
|
| 51 |
+
"random_uniform_16",
|
| 52 |
+
"random_uniform_18"
|
| 53 |
+
],
|
| 54 |
+
"witness": {
|
| 55 |
+
"state": "fixed_0",
|
| 56 |
+
"state_profile": "fixed_0",
|
| 57 |
+
"reference_rows": [
|
| 58 |
+
[
|
| 59 |
+
3
|
| 60 |
+
]
|
| 61 |
+
],
|
| 62 |
+
"candidate_rows": [
|
| 63 |
+
[
|
| 64 |
+
3,
|
| 65 |
+
"Book_C",
|
| 66 |
+
30
|
| 67 |
+
]
|
| 68 |
+
],
|
| 69 |
+
"interface_equal": false,
|
| 70 |
+
"independent_replay": "counterexample"
|
| 71 |
+
},
|
| 72 |
+
"checks": 28
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"model": "qwen2.5:7b",
|
| 76 |
+
"model_slug": "qwen2.5-7b",
|
| 77 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 78 |
+
"status": "no_rewrite",
|
| 79 |
+
"candidate_sql": "SELECT b.id FROM lib_books b WHERE NOT EXISTS (SELECT 1 FROM lib_loans l WHERE l.book_id = b.id) ORDER BY b.id",
|
| 80 |
+
"refuting_states": [],
|
| 81 |
+
"witness": null,
|
| 82 |
+
"checks": 28
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"model": "qwen2.5-coder:7b",
|
| 86 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 87 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 88 |
+
"status": "preserved",
|
| 89 |
+
"candidate_sql": "SELECT b.id FROM lib_books b WHERE b.id NOT IN (SELECT book_id FROM lib_loans) ORDER BY b.id",
|
| 90 |
+
"refuting_states": [],
|
| 91 |
+
"witness": null,
|
| 92 |
+
"checks": 28
|
| 93 |
+
}
|
| 94 |
+
]
|
| 95 |
+
}
|
data/evidence/lib_books_not_loaned_in.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_not_loaned_in",
|
| 5 |
+
"reference_sql": "SELECT b.id FROM lib_books b WHERE b.id NOT IN (SELECT l.book_id FROM lib_loans l) ORDER BY b.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT b.id \nFROM lib_books b \nLEFT JOIN lib_loans l ON b.id = l.book_id \nWHERE l.book_id IS NULL \nORDER BY b.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT b.id FROM lib_books b WHERE b.id NOT IN (SELECT l.book_id FROM lib_loans l) ORDER BY b.id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "preserved",
|
| 46 |
+
"candidate_sql": "SELECT b.id FROM lib_books b LEFT JOIN lib_loans l ON b.id = l.book_id WHERE l.book_id IS NULL ORDER BY b.id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "preserved",
|
| 56 |
+
"candidate_sql": "SELECT b.id FROM lib_books b LEFT JOIN lib_loans l ON b.id = l.book_id WHERE l.book_id IS NULL ORDER BY b.id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_books_order_price_desc.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_order_price_desc",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_books ORDER BY price DESC, id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id FROM lib_books ORDER BY price DESC, id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_books ORDER BY price DESC, id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_books ORDER BY price DESC, id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_books ORDER BY price DESC, id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_books_price_boundary.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_price_boundary",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_books WHERE price >= 20 ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT lb.id \nFROM lib_books lb \nWHERE lb.price >= 20 \nORDER BY lb.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price >= 20 ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price >= 20 ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price >= 20 ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_books_price_open_range.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_price_open_range",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_books WHERE price > 10 AND price < 20 ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price > 10 AND price < 20 ORDER BY id",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price > 10 AND price < 20 ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price > 10 AND price < 20 ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "refuted",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price BETWEEN 10 AND 20 ORDER BY id",
|
| 57 |
+
"refuting_states": [
|
| 58 |
+
"fixed_0",
|
| 59 |
+
"no_loans_0",
|
| 60 |
+
"multiplicity_0",
|
| 61 |
+
"zero_fee_0",
|
| 62 |
+
"nullable_0",
|
| 63 |
+
"boundary_0",
|
| 64 |
+
"ties_0",
|
| 65 |
+
"random_uniform_7",
|
| 66 |
+
"random_uniform_8",
|
| 67 |
+
"random_uniform_9",
|
| 68 |
+
"random_uniform_19"
|
| 69 |
+
],
|
| 70 |
+
"witness": {
|
| 71 |
+
"state": "fixed_0",
|
| 72 |
+
"state_profile": "fixed_0",
|
| 73 |
+
"reference_rows": [],
|
| 74 |
+
"candidate_rows": [
|
| 75 |
+
[
|
| 76 |
+
1
|
| 77 |
+
],
|
| 78 |
+
[
|
| 79 |
+
2
|
| 80 |
+
]
|
| 81 |
+
],
|
| 82 |
+
"interface_equal": true,
|
| 83 |
+
"independent_replay": "counterexample"
|
| 84 |
+
},
|
| 85 |
+
"checks": 28
|
| 86 |
+
}
|
| 87 |
+
]
|
| 88 |
+
}
|
data/evidence/lib_books_price_or.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_price_or",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_books WHERE price < 10 OR price > 20 ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price < 10 OR price > 20 ORDER BY id",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price < 10 OR price > 20 ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price < 10 OR price > 20 ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_books WHERE price < 10 OR price > 20 ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_books_price_rank.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_price_rank",
|
| 5 |
+
"reference_sql": "SELECT id, DENSE_RANK() OVER (ORDER BY price DESC) AS price_rank FROM lib_books ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id, DENSE_RANK() OVER (ORDER BY price DESC) AS price_rank FROM lib_books ORDER BY id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id, DENSE_RANK() OVER (ORDER BY price DESC) AS price_rank \nFROM lib_books \nORDER BY id",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id, DENSE_RANK() OVER (ORDER BY price DESC) AS price_rank FROM lib_books ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id, DENSE_RANK() OVER (ORDER BY price DESC) AS price_rank FROM lib_books ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_books_title_like.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_books_title_like",
|
| 5 |
+
"reference_sql": "SELECT id, title FROM lib_books WHERE title LIKE 'Book%' ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT b.id, b.title \nFROM lib_books b \nWHERE b.title LIKE 'Book%' \nORDER BY b.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id, title FROM lib_books WHERE title LIKE 'Book%' ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id, title FROM lib_books WHERE title LIKE 'Book%' ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id, title FROM lib_books WHERE title LIKE 'Book%' ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_count_star_vs_col.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_count_star_vs_col",
|
| 5 |
+
"reference_sql": "SELECT reader_id, COUNT(*) AS star_cnt, COUNT(returned) AS returned_cnt FROM lib_loans GROUP BY reader_id ORDER BY reader_id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "refuted",
|
| 26 |
+
"candidate_sql": "SELECT reader_id, COUNT(*) AS star_cnt, COUNT(returned) AS returned_cnt FROM lib_loans WHERE returned IS NOT NULL GROUP BY reader_id ORDER BY reader_id;",
|
| 27 |
+
"refuting_states": [
|
| 28 |
+
"nullable_0",
|
| 29 |
+
"ties_0",
|
| 30 |
+
"random_uniform_0",
|
| 31 |
+
"random_uniform_1",
|
| 32 |
+
"random_uniform_4",
|
| 33 |
+
"random_uniform_5",
|
| 34 |
+
"random_uniform_6",
|
| 35 |
+
"random_uniform_7",
|
| 36 |
+
"random_uniform_8",
|
| 37 |
+
"random_uniform_9",
|
| 38 |
+
"random_uniform_11",
|
| 39 |
+
"random_uniform_13",
|
| 40 |
+
"random_uniform_14",
|
| 41 |
+
"random_uniform_15",
|
| 42 |
+
"random_uniform_16",
|
| 43 |
+
"random_uniform_17",
|
| 44 |
+
"random_uniform_19"
|
| 45 |
+
],
|
| 46 |
+
"witness": {
|
| 47 |
+
"state": "nullable_0",
|
| 48 |
+
"state_profile": "nullable_0",
|
| 49 |
+
"reference_rows": [
|
| 50 |
+
[
|
| 51 |
+
1,
|
| 52 |
+
1,
|
| 53 |
+
0
|
| 54 |
+
],
|
| 55 |
+
[
|
| 56 |
+
2,
|
| 57 |
+
1,
|
| 58 |
+
1
|
| 59 |
+
],
|
| 60 |
+
[
|
| 61 |
+
3,
|
| 62 |
+
1,
|
| 63 |
+
1
|
| 64 |
+
]
|
| 65 |
+
],
|
| 66 |
+
"candidate_rows": [
|
| 67 |
+
[
|
| 68 |
+
2,
|
| 69 |
+
1,
|
| 70 |
+
1
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
3,
|
| 74 |
+
1,
|
| 75 |
+
1
|
| 76 |
+
]
|
| 77 |
+
],
|
| 78 |
+
"interface_equal": true,
|
| 79 |
+
"independent_replay": "counterexample"
|
| 80 |
+
},
|
| 81 |
+
"checks": 28
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"model": "phi3.5:3.8b",
|
| 85 |
+
"model_slug": "phi3.5-3.8b",
|
| 86 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 87 |
+
"status": "no_rewrite",
|
| 88 |
+
"candidate_sql": "SELECT reader_id, COUNT(*) AS star_cnt, COUNT(returned) AS returned_cnt \nFROM lib_loans \nGROUP BY reader_id \nORDER BY reader_id;",
|
| 89 |
+
"refuting_states": [],
|
| 90 |
+
"witness": null,
|
| 91 |
+
"checks": 28
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"model": "qwen2.5:7b",
|
| 95 |
+
"model_slug": "qwen2.5-7b",
|
| 96 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 97 |
+
"status": "no_rewrite",
|
| 98 |
+
"candidate_sql": "SELECT reader_id, COUNT(*) AS star_cnt, COUNT(returned) AS returned_cnt FROM lib_loans GROUP BY reader_id ORDER BY reader_id",
|
| 99 |
+
"refuting_states": [],
|
| 100 |
+
"witness": null,
|
| 101 |
+
"checks": 28
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"model": "qwen2.5-coder:7b",
|
| 105 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 106 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 107 |
+
"status": "no_rewrite",
|
| 108 |
+
"candidate_sql": "SELECT reader_id, COUNT(*) AS star_cnt, COUNT(returned) AS returned_cnt FROM lib_loans GROUP BY reader_id ORDER BY reader_id",
|
| 109 |
+
"refuting_states": [],
|
| 110 |
+
"witness": null,
|
| 111 |
+
"checks": 28
|
| 112 |
+
}
|
| 113 |
+
]
|
| 114 |
+
}
|
data/evidence/lib_global_stats.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_global_stats",
|
| 5 |
+
"reference_sql": "SELECT COUNT(*) AS loans, SUM(fee) AS total_fee, AVG(fee) AS avg_fee FROM lib_loans",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT COUNT(*) AS loans, SUM(fee) AS total_fee, AVG(fee) AS avg_fee FROM lib_loans;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "preserved",
|
| 36 |
+
"candidate_sql": "SELECT COUNT(*) AS loans, SUM(fee) AS total_fee, AVG(fee) AS avg_fee FROM lib_loans ORDER BY day_no;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT COUNT(*) AS loans, SUM(fee) AS total_fee, AVG(fee) AS avg_fee FROM lib_loans",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT COUNT(*) AS loans, SUM(fee) AS total_fee, AVG(fee) AS avg_fee FROM lib_loans",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loan_book_price.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loan_book_price",
|
| 5 |
+
"reference_sql": "SELECT l.id, b.price FROM lib_loans l JOIN lib_books b ON b.id=l.book_id WHERE b.price > 15 ORDER BY l.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT l.id, b.price \nFROM lib_loans l \nJOIN lib_books b ON b.id = l.book_id \nWHERE b.price > 15 \nORDER BY l.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT l.id, b.price \nFROM lib_loans l \nJOIN lib_books b ON b.id=l.book_id \nWHERE b.price > 15 \nORDER BY l.id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT l.id, b.price FROM lib_loans l JOIN lib_books b ON b.id = l.book_id WHERE b.price > 15 ORDER BY l.id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT l.id, b.price FROM lib_loans l JOIN lib_books b ON b.id=l.book_id WHERE b.price > 15 ORDER BY l.id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_above_avg.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_above_avg",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE fee > (SELECT AVG(fee) FROM lib_loans) ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT l.id \nFROM lib_loans l, (SELECT AVG(fee) AS avg_fee FROM lib_loans) avg_fee\nWHERE l.fee > avg_fee.avg_fee \nORDER BY l.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee > (SELECT AVG(fee) FROM lib_loans) ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee > (SELECT AVG(fee) FROM lib_loans) ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee > (SELECT AVG(fee) FROM lib_loans) ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_count_by_day_order.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_count_by_day_order",
|
| 5 |
+
"reference_sql": "SELECT day_no, COUNT(*) AS n FROM lib_loans GROUP BY day_no ORDER BY n DESC, day_no",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "refuted",
|
| 26 |
+
"candidate_sql": "SELECT day_no, COUNT(*) AS n \nFROM lib_loans \nWHERE returned = 0 \nGROUP BY day_no \nORDER BY n DESC, day_no;",
|
| 27 |
+
"refuting_states": [
|
| 28 |
+
"fixed_0",
|
| 29 |
+
"multiplicity_0",
|
| 30 |
+
"zero_fee_0",
|
| 31 |
+
"nullable_0",
|
| 32 |
+
"boundary_0",
|
| 33 |
+
"ties_0",
|
| 34 |
+
"random_uniform_0",
|
| 35 |
+
"random_uniform_1",
|
| 36 |
+
"random_uniform_2",
|
| 37 |
+
"random_uniform_4",
|
| 38 |
+
"random_uniform_5",
|
| 39 |
+
"random_uniform_6",
|
| 40 |
+
"random_uniform_7",
|
| 41 |
+
"random_uniform_8",
|
| 42 |
+
"random_uniform_9",
|
| 43 |
+
"random_uniform_10",
|
| 44 |
+
"random_uniform_11",
|
| 45 |
+
"random_uniform_12",
|
| 46 |
+
"random_uniform_13",
|
| 47 |
+
"random_uniform_14",
|
| 48 |
+
"random_uniform_15",
|
| 49 |
+
"random_uniform_16",
|
| 50 |
+
"random_uniform_17",
|
| 51 |
+
"random_uniform_18",
|
| 52 |
+
"random_uniform_19"
|
| 53 |
+
],
|
| 54 |
+
"witness": {
|
| 55 |
+
"state": "fixed_0",
|
| 56 |
+
"state_profile": "fixed_0",
|
| 57 |
+
"reference_rows": [
|
| 58 |
+
[
|
| 59 |
+
1,
|
| 60 |
+
1
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
2,
|
| 64 |
+
1
|
| 65 |
+
]
|
| 66 |
+
],
|
| 67 |
+
"candidate_rows": [
|
| 68 |
+
[
|
| 69 |
+
2,
|
| 70 |
+
1
|
| 71 |
+
]
|
| 72 |
+
],
|
| 73 |
+
"interface_equal": true,
|
| 74 |
+
"independent_replay": "counterexample"
|
| 75 |
+
},
|
| 76 |
+
"checks": 28
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"model": "phi3.5:3.8b",
|
| 80 |
+
"model_slug": "phi3.5-3.8b",
|
| 81 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 82 |
+
"status": "no_rewrite",
|
| 83 |
+
"candidate_sql": "SELECT day_no, COUNT(*) AS n FROM lib_loans GROUP BY day_no ORDER BY n DESC, day_no;",
|
| 84 |
+
"refuting_states": [],
|
| 85 |
+
"witness": null,
|
| 86 |
+
"checks": 28
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"model": "qwen2.5:7b",
|
| 90 |
+
"model_slug": "qwen2.5-7b",
|
| 91 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 92 |
+
"status": "no_rewrite",
|
| 93 |
+
"candidate_sql": "SELECT day_no, COUNT(*) AS n FROM lib_loans GROUP BY day_no ORDER BY n DESC, day_no",
|
| 94 |
+
"refuting_states": [],
|
| 95 |
+
"witness": null,
|
| 96 |
+
"checks": 28
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"model": "qwen2.5-coder:7b",
|
| 100 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 101 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 102 |
+
"status": "no_rewrite",
|
| 103 |
+
"candidate_sql": "SELECT day_no, COUNT(*) AS n FROM lib_loans GROUP BY day_no ORDER BY n DESC, day_no",
|
| 104 |
+
"refuting_states": [],
|
| 105 |
+
"witness": null,
|
| 106 |
+
"checks": 28
|
| 107 |
+
}
|
| 108 |
+
]
|
| 109 |
+
}
|
data/evidence/lib_loans_cte.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_cte",
|
| 5 |
+
"reference_sql": "WITH ranked AS (SELECT id, day_no FROM lib_loans) SELECT id FROM ranked WHERE day_no = 1 ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT l.id \nFROM lib_loans l \nJOIN (SELECT DISTINCT day_no FROM lib_loans) r \nON l.day_no = r.day_no \nWHERE l.day_no = 1 \nORDER BY l.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "preserved",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE day_no = 1 ORDER BY id",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "preserved",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE day_no = 1 ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "preserved",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE day_no = 1 ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_day_range.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_day_range",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE day_no BETWEEN 1 AND 3 ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE day_no BETWEEN 1 AND 3 ORDER BY id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE day_no BETWEEN 1 AND 3 ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "preserved",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE day_no >= 1 AND day_no <= 3 ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE day_no BETWEEN 1 AND 3 ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_fee_in.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_fee_in",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE fee IN (0,1,2) ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee IN (0, 1, 2) ORDER BY id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee IN (0,1,2) ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee IN (0,1,2) ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee IN (0,1,2) ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_fee_or_returned.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_fee_or_returned",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE fee=0 OR returned=0 ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "refuted",
|
| 26 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee = 0 OR (fee IS NULL AND returned = 0) ORDER BY id;",
|
| 27 |
+
"refuting_states": [
|
| 28 |
+
"fixed_0",
|
| 29 |
+
"multiplicity_0",
|
| 30 |
+
"zero_fee_0",
|
| 31 |
+
"boundary_0",
|
| 32 |
+
"random_uniform_0",
|
| 33 |
+
"random_uniform_1",
|
| 34 |
+
"random_uniform_2",
|
| 35 |
+
"random_uniform_4",
|
| 36 |
+
"random_uniform_5",
|
| 37 |
+
"random_uniform_6",
|
| 38 |
+
"random_uniform_8",
|
| 39 |
+
"random_uniform_10",
|
| 40 |
+
"random_uniform_11",
|
| 41 |
+
"random_uniform_12",
|
| 42 |
+
"random_uniform_13",
|
| 43 |
+
"random_uniform_14",
|
| 44 |
+
"random_uniform_16",
|
| 45 |
+
"random_uniform_17",
|
| 46 |
+
"random_uniform_18",
|
| 47 |
+
"random_uniform_19"
|
| 48 |
+
],
|
| 49 |
+
"witness": {
|
| 50 |
+
"state": "fixed_0",
|
| 51 |
+
"state_profile": "fixed_0",
|
| 52 |
+
"reference_rows": [
|
| 53 |
+
[
|
| 54 |
+
2
|
| 55 |
+
]
|
| 56 |
+
],
|
| 57 |
+
"candidate_rows": [],
|
| 58 |
+
"interface_equal": true,
|
| 59 |
+
"independent_replay": "counterexample"
|
| 60 |
+
},
|
| 61 |
+
"checks": 28
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"model": "phi3.5:3.8b",
|
| 65 |
+
"model_slug": "phi3.5-3.8b",
|
| 66 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 67 |
+
"status": "no_rewrite",
|
| 68 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee=0 OR returned=0 ORDER BY id;",
|
| 69 |
+
"refuting_states": [],
|
| 70 |
+
"witness": null,
|
| 71 |
+
"checks": 28
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"model": "qwen2.5:7b",
|
| 75 |
+
"model_slug": "qwen2.5-7b",
|
| 76 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 77 |
+
"status": "no_rewrite",
|
| 78 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee = 0 OR returned = 0 ORDER BY id",
|
| 79 |
+
"refuting_states": [],
|
| 80 |
+
"witness": null,
|
| 81 |
+
"checks": 28
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"model": "qwen2.5-coder:7b",
|
| 85 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 86 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 87 |
+
"status": "no_rewrite",
|
| 88 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE fee=0 OR returned=0 ORDER BY id",
|
| 89 |
+
"refuting_states": [],
|
| 90 |
+
"witness": null,
|
| 91 |
+
"checks": 28
|
| 92 |
+
}
|
| 93 |
+
]
|
| 94 |
+
}
|
data/evidence/lib_loans_fee_range.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_fee_range",
|
| 5 |
+
"reference_sql": "SELECT id, fee FROM lib_loans WHERE fee BETWEEN 0 AND 2 ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id, fee FROM lib_loans WHERE fee BETWEEN 0 AND 2 ORDER BY id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id, fee FROM lib_loans WHERE fee BETWEEN 0 AND 2 ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id, fee FROM lib_loans WHERE fee BETWEEN 0 AND 2 ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id, fee FROM lib_loans WHERE fee BETWEEN 0 AND 2 ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_fee_zero_sum.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_fee_zero_sum",
|
| 5 |
+
"reference_sql": "SELECT reader_id FROM lib_loans GROUP BY reader_id HAVING SUM(fee) = 0 ORDER BY reader_id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "refuted",
|
| 26 |
+
"candidate_sql": "SELECT l.reader_id \nFROM lib_loans l \nWHERE l.returned = 0 \nGROUP BY l.reader_id \nORDER BY l.reader_id;",
|
| 27 |
+
"refuting_states": [
|
| 28 |
+
"fixed_0",
|
| 29 |
+
"multiplicity_0",
|
| 30 |
+
"zero_fee_0",
|
| 31 |
+
"nullable_0",
|
| 32 |
+
"boundary_0",
|
| 33 |
+
"ties_0",
|
| 34 |
+
"random_uniform_0",
|
| 35 |
+
"random_uniform_1",
|
| 36 |
+
"random_uniform_2",
|
| 37 |
+
"random_uniform_4",
|
| 38 |
+
"random_uniform_5",
|
| 39 |
+
"random_uniform_6",
|
| 40 |
+
"random_uniform_8",
|
| 41 |
+
"random_uniform_10",
|
| 42 |
+
"random_uniform_11",
|
| 43 |
+
"random_uniform_12",
|
| 44 |
+
"random_uniform_13",
|
| 45 |
+
"random_uniform_14",
|
| 46 |
+
"random_uniform_16",
|
| 47 |
+
"random_uniform_17",
|
| 48 |
+
"random_uniform_18",
|
| 49 |
+
"random_uniform_19"
|
| 50 |
+
],
|
| 51 |
+
"witness": {
|
| 52 |
+
"state": "fixed_0",
|
| 53 |
+
"state_profile": "fixed_0",
|
| 54 |
+
"reference_rows": [],
|
| 55 |
+
"candidate_rows": [
|
| 56 |
+
[
|
| 57 |
+
2
|
| 58 |
+
]
|
| 59 |
+
],
|
| 60 |
+
"interface_equal": true,
|
| 61 |
+
"independent_replay": "counterexample"
|
| 62 |
+
},
|
| 63 |
+
"checks": 28
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"model": "phi3.5:3.8b",
|
| 67 |
+
"model_slug": "phi3.5-3.8b",
|
| 68 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 69 |
+
"status": "no_rewrite",
|
| 70 |
+
"candidate_sql": "SELECT reader_id FROM lib_loans GROUP BY reader_id HAVING SUM(fee) = 0 ORDER BY reader_id;",
|
| 71 |
+
"refuting_states": [],
|
| 72 |
+
"witness": null,
|
| 73 |
+
"checks": 28
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"model": "qwen2.5:7b",
|
| 77 |
+
"model_slug": "qwen2.5-7b",
|
| 78 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 79 |
+
"status": "no_rewrite",
|
| 80 |
+
"candidate_sql": "SELECT reader_id FROM lib_loans GROUP BY reader_id HAVING SUM(fee) = 0 ORDER BY reader_id",
|
| 81 |
+
"refuting_states": [],
|
| 82 |
+
"witness": null,
|
| 83 |
+
"checks": 28
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"model": "qwen2.5-coder:7b",
|
| 87 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 88 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 89 |
+
"status": "no_rewrite",
|
| 90 |
+
"candidate_sql": "SELECT reader_id FROM lib_loans GROUP BY reader_id HAVING SUM(fee) = 0 ORDER BY reader_id",
|
| 91 |
+
"refuting_states": [],
|
| 92 |
+
"witness": null,
|
| 93 |
+
"checks": 28
|
| 94 |
+
}
|
| 95 |
+
]
|
| 96 |
+
}
|
data/evidence/lib_loans_limit3.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_limit3",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_loans ORDER BY id LIMIT 3",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id FROM lib_loans ORDER BY id LIMIT 3",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_loans ORDER BY id LIMIT 3",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_loans ORDER BY id LIMIT 3",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_loans ORDER BY id LIMIT 3",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_order_fee.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_order_fee",
|
| 5 |
+
"reference_sql": "SELECT id, fee FROM lib_loans ORDER BY fee, id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id, fee \nFROM lib_loans \nORDER BY fee, id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id, fee FROM lib_loans ORDER BY fee, id",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id, fee FROM lib_loans ORDER BY fee, id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id, fee FROM lib_loans ORDER BY fee, id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_returned_in.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_returned_in",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE returned IN (0,1) ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE returned IN (0, 1) ORDER BY id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE returned IN (0,1) ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE returned IN (0,1) ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE returned IN (0,1) ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_returned_null.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_returned_null",
|
| 5 |
+
"reference_sql": "SELECT id FROM lib_loans WHERE returned IS NULL ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE returned IS NULL ORDER BY id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE returned IS NULL ORDER BY id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE returned IS NULL ORDER BY id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT id FROM lib_loans WHERE returned IS NULL ORDER BY id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_loans_row_number.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_loans_row_number",
|
| 5 |
+
"reference_sql": "SELECT id, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM lib_loans ORDER BY id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT id, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM lib_loans ORDER BY id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "unsupported",
|
| 36 |
+
"candidate_sql": "SELECT id, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM lib_loans ORDER BY id\n\n(Note: The original query provided is already efficient as it stands, and without altering the schema or adding indexes, there's no further optimization needed. The ROW_NUMBER() function is applied correctly, and the ORDER BY clause is necessary to maintain the specified row order. The query is also concise and does not contain redundant operations.)",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28,
|
| 40 |
+
"reason": "parse error: Error tokenizing 'oncise and does not contain redundant operations.'"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"model": "qwen2.5:7b",
|
| 44 |
+
"model_slug": "qwen2.5-7b",
|
| 45 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 46 |
+
"status": "preserved",
|
| 47 |
+
"candidate_sql": "SELECT id, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM lib_loans",
|
| 48 |
+
"refuting_states": [],
|
| 49 |
+
"witness": null,
|
| 50 |
+
"checks": 28
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"model": "qwen2.5-coder:7b",
|
| 54 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 55 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 56 |
+
"status": "no_rewrite",
|
| 57 |
+
"candidate_sql": "SELECT id, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM lib_loans ORDER BY id",
|
| 58 |
+
"refuting_states": [],
|
| 59 |
+
"witness": null,
|
| 60 |
+
"checks": 28
|
| 61 |
+
}
|
| 62 |
+
]
|
| 63 |
+
}
|
data/evidence/lib_reader_all_null_returned.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_all_null_returned",
|
| 5 |
+
"reference_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id AND l.returned IS NULL) ORDER BY r.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "refuted",
|
| 26 |
+
"candidate_sql": "SELECT r.id \nFROM lib_readers r \nJOIN lib_loans l ON r.id = l.reader_id \nWHERE l.returned IS NULL \nORDER BY r.id;",
|
| 27 |
+
"refuting_states": [
|
| 28 |
+
"random_uniform_1",
|
| 29 |
+
"random_uniform_5",
|
| 30 |
+
"random_uniform_6",
|
| 31 |
+
"random_uniform_8",
|
| 32 |
+
"random_uniform_14",
|
| 33 |
+
"random_uniform_15",
|
| 34 |
+
"random_uniform_16",
|
| 35 |
+
"random_uniform_17",
|
| 36 |
+
"random_uniform_19"
|
| 37 |
+
],
|
| 38 |
+
"witness": {
|
| 39 |
+
"state": "random_uniform_1",
|
| 40 |
+
"state_profile": "random_uniform_1",
|
| 41 |
+
"reference_rows": [
|
| 42 |
+
[
|
| 43 |
+
1
|
| 44 |
+
],
|
| 45 |
+
[
|
| 46 |
+
3
|
| 47 |
+
]
|
| 48 |
+
],
|
| 49 |
+
"candidate_rows": [
|
| 50 |
+
[
|
| 51 |
+
1
|
| 52 |
+
],
|
| 53 |
+
[
|
| 54 |
+
1
|
| 55 |
+
],
|
| 56 |
+
[
|
| 57 |
+
3
|
| 58 |
+
],
|
| 59 |
+
[
|
| 60 |
+
3
|
| 61 |
+
]
|
| 62 |
+
],
|
| 63 |
+
"interface_equal": true,
|
| 64 |
+
"independent_replay": "counterexample"
|
| 65 |
+
},
|
| 66 |
+
"checks": 28
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"model": "phi3.5:3.8b",
|
| 70 |
+
"model_slug": "phi3.5-3.8b",
|
| 71 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 72 |
+
"status": "no_rewrite",
|
| 73 |
+
"candidate_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id AND l.returned IS NULL) ORDER BY r.id;",
|
| 74 |
+
"refuting_states": [],
|
| 75 |
+
"witness": null,
|
| 76 |
+
"checks": 28
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"model": "qwen2.5:7b",
|
| 80 |
+
"model_slug": "qwen2.5-7b",
|
| 81 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 82 |
+
"status": "no_rewrite",
|
| 83 |
+
"candidate_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id = r.id AND l.returned IS NULL) ORDER BY r.id",
|
| 84 |
+
"refuting_states": [],
|
| 85 |
+
"witness": null,
|
| 86 |
+
"checks": 28
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"model": "qwen2.5-coder:7b",
|
| 90 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 91 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 92 |
+
"status": "no_rewrite",
|
| 93 |
+
"candidate_sql": "SELECT r.id FROM lib_readers r WHERE EXISTS (SELECT 1 FROM lib_loans l WHERE l.reader_id=r.id AND l.returned IS NULL) ORDER BY r.id",
|
| 94 |
+
"refuting_states": [],
|
| 95 |
+
"witness": null,
|
| 96 |
+
"checks": 28
|
| 97 |
+
}
|
| 98 |
+
]
|
| 99 |
+
}
|
data/evidence/lib_reader_avg_fee.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_avg_fee",
|
| 5 |
+
"reference_sql": "SELECT l.reader_id, AVG(l.fee) AS avg_fee FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT l.reader_id, AVG(l.fee) AS avg_fee FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT l.reader_id, AVG(l.fee) AS avg_fee FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT l.reader_id, AVG(l.fee) AS avg_fee FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT l.reader_id, AVG(l.fee) AS avg_fee FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_reader_book_multiplicity.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_book_multiplicity",
|
| 5 |
+
"reference_sql": "SELECT r.id, COUNT(*) AS n FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id GROUP BY r.id ORDER BY r.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT r.id, COUNT(*) AS n FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id GROUP BY r.id ORDER BY r.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT r.id, COUNT(*) AS n FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id GROUP BY r.id ORDER BY r.id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT r.id, COUNT(*) AS n FROM lib_readers r JOIN lib_loans l ON l.reader_id = r.id JOIN lib_books b ON b.id = l.book_id GROUP BY r.id ORDER BY r.id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT r.id, COUNT(*) AS n FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id GROUP BY r.id ORDER BY r.id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_reader_book_titles.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_book_titles",
|
| 5 |
+
"reference_sql": "SELECT r.id, b.title FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id ORDER BY r.id, b.title",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "refuted",
|
| 26 |
+
"candidate_sql": "SELECT DISTINCT r.id, b.title \nFROM lib_readers r \nJOIN lib_loans l ON l.reader_id = r.id \nJOIN lib_books b ON b.id = l.book_id \nORDER BY r.id, b.title;",
|
| 27 |
+
"refuting_states": [
|
| 28 |
+
"multiplicity_0",
|
| 29 |
+
"random_uniform_0",
|
| 30 |
+
"random_uniform_1",
|
| 31 |
+
"random_uniform_2",
|
| 32 |
+
"random_uniform_5",
|
| 33 |
+
"random_uniform_6",
|
| 34 |
+
"random_uniform_8",
|
| 35 |
+
"random_uniform_11",
|
| 36 |
+
"random_uniform_14",
|
| 37 |
+
"random_uniform_16",
|
| 38 |
+
"random_uniform_17",
|
| 39 |
+
"random_uniform_19"
|
| 40 |
+
],
|
| 41 |
+
"witness": {
|
| 42 |
+
"state": "multiplicity_0",
|
| 43 |
+
"state_profile": "multiplicity_0",
|
| 44 |
+
"reference_rows": [
|
| 45 |
+
[
|
| 46 |
+
1,
|
| 47 |
+
"Book_A"
|
| 48 |
+
],
|
| 49 |
+
[
|
| 50 |
+
1,
|
| 51 |
+
"Book_A"
|
| 52 |
+
],
|
| 53 |
+
[
|
| 54 |
+
1,
|
| 55 |
+
"Book_B"
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
2,
|
| 59 |
+
"Book_C"
|
| 60 |
+
]
|
| 61 |
+
],
|
| 62 |
+
"candidate_rows": [
|
| 63 |
+
[
|
| 64 |
+
1,
|
| 65 |
+
"Book_A"
|
| 66 |
+
],
|
| 67 |
+
[
|
| 68 |
+
1,
|
| 69 |
+
"Book_B"
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
2,
|
| 73 |
+
"Book_C"
|
| 74 |
+
]
|
| 75 |
+
],
|
| 76 |
+
"interface_equal": true,
|
| 77 |
+
"independent_replay": "counterexample"
|
| 78 |
+
},
|
| 79 |
+
"checks": 28
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"model": "phi3.5:3.8b",
|
| 83 |
+
"model_slug": "phi3.5-3.8b",
|
| 84 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 85 |
+
"status": "no_rewrite",
|
| 86 |
+
"candidate_sql": "SELECT r.id, b.title \nFROM lib_readers r \nJOIN lib_loans l ON l.reader_id=r.id \nJOIN lib_books b ON b.id=l.book_id \nORDER BY r.id, b.title;",
|
| 87 |
+
"refuting_states": [],
|
| 88 |
+
"witness": null,
|
| 89 |
+
"checks": 28
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"model": "qwen2.5:7b",
|
| 93 |
+
"model_slug": "qwen2.5-7b",
|
| 94 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 95 |
+
"status": "no_rewrite",
|
| 96 |
+
"candidate_sql": "SELECT r.id, b.title FROM lib_readers r JOIN lib_loans l ON l.reader_id = r.id JOIN lib_books b ON b.id = l.book_id ORDER BY r.id, b.title",
|
| 97 |
+
"refuting_states": [],
|
| 98 |
+
"witness": null,
|
| 99 |
+
"checks": 28
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"model": "qwen2.5-coder:7b",
|
| 103 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 104 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 105 |
+
"status": "no_rewrite",
|
| 106 |
+
"candidate_sql": "SELECT r.id, b.title FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id ORDER BY r.id, b.title",
|
| 107 |
+
"refuting_states": [],
|
| 108 |
+
"witness": null,
|
| 109 |
+
"checks": 28
|
| 110 |
+
}
|
| 111 |
+
]
|
| 112 |
+
}
|
data/evidence/lib_reader_cheapest_book.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_cheapest_book",
|
| 5 |
+
"reference_sql": "SELECT r.id, MIN(b.price) AS min_price FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id GROUP BY r.id ORDER BY r.id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT r.id, MIN(b.price) AS min_price \nFROM lib_readers r \nJOIN lib_loans l ON l.reader_id = r.id \nJOIN lib_books b ON b.id = l.book_id \nGROUP BY r.id \nORDER BY r.id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT r.id, MIN(b.price) AS min_price FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id GROUP BY r.id ORDER BY r.id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT r.id, MIN(b.price) AS min_price \nFROM lib_readers r \nJOIN lib_loans l ON l.reader_id = r.id \nJOIN lib_books b ON b.id = l.book_id \nGROUP BY r.id \nORDER BY r.id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT r.id, MIN(b.price) AS min_price FROM lib_readers r JOIN lib_loans l ON l.reader_id=r.id JOIN lib_books b ON b.id=l.book_id GROUP BY r.id ORDER BY r.id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_reader_count_returned_equal.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_count_returned_equal",
|
| 5 |
+
"reference_sql": "SELECT l.reader_id FROM lib_loans l GROUP BY l.reader_id HAVING COUNT(*) = COUNT(returned) ORDER BY l.reader_id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT l.reader_id \nFROM lib_loans l \nWHERE NOT EXISTS (\n SELECT 1 \n FROM lib_loans l2 \n WHERE l2.reader_id = l.reader_id AND l2.returned IS NULL\n) \nGROUP BY l.reader_id \nORDER BY l.reader_id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "preserved",
|
| 36 |
+
"candidate_sql": "SELECT l.reader_id \nFROM lib_loans l \nGROUP BY l.reader_id \nHAVING COUNT(*) = COUNT(IF(l.returned IS NOT NULL, 1, NULL)) \nORDER BY l.reader_id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT l.reader_id FROM lib_loans l GROUP BY l.reader_id HAVING COUNT(*) = COUNT(returned) ORDER BY l.reader_id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT l.reader_id FROM lib_loans l GROUP BY l.reader_id HAVING COUNT(*) = COUNT(returned) ORDER BY l.reader_id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_reader_derived_counts.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_derived_counts",
|
| 5 |
+
"reference_sql": "SELECT x.reader_id, x.n FROM (SELECT l.reader_id, COUNT(*) AS n FROM lib_loans l GROUP BY l.reader_id) x WHERE x.n >= 2 ORDER BY x.reader_id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT x.reader_id, x.n \nFROM (\n SELECT l.reader_id, COUNT(*) AS n \n FROM lib_loans l \n GROUP BY l.reader_id\n) x \nWHERE x.n >= 2 \nORDER BY x.reader_id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "refuted",
|
| 36 |
+
"candidate_sql": "SELECT l.reader_id, COUNT(*) AS n FROM lib_loans l WHERE l.returned = 0 GROUP BY l.reader_id HAVING COUNT(*) >= 2 ORDER BY l.reader_id;",
|
| 37 |
+
"refuting_states": [
|
| 38 |
+
"multiplicity_0",
|
| 39 |
+
"zero_fee_0",
|
| 40 |
+
"ties_0",
|
| 41 |
+
"random_uniform_0",
|
| 42 |
+
"random_uniform_1",
|
| 43 |
+
"random_uniform_2",
|
| 44 |
+
"random_uniform_5",
|
| 45 |
+
"random_uniform_6",
|
| 46 |
+
"random_uniform_7",
|
| 47 |
+
"random_uniform_8",
|
| 48 |
+
"random_uniform_11",
|
| 49 |
+
"random_uniform_12",
|
| 50 |
+
"random_uniform_14",
|
| 51 |
+
"random_uniform_15",
|
| 52 |
+
"random_uniform_16",
|
| 53 |
+
"random_uniform_17",
|
| 54 |
+
"random_uniform_18",
|
| 55 |
+
"random_uniform_19"
|
| 56 |
+
],
|
| 57 |
+
"witness": {
|
| 58 |
+
"state": "multiplicity_0",
|
| 59 |
+
"state_profile": "multiplicity_0",
|
| 60 |
+
"reference_rows": [
|
| 61 |
+
[
|
| 62 |
+
1,
|
| 63 |
+
3
|
| 64 |
+
]
|
| 65 |
+
],
|
| 66 |
+
"candidate_rows": [
|
| 67 |
+
[
|
| 68 |
+
1,
|
| 69 |
+
2
|
| 70 |
+
]
|
| 71 |
+
],
|
| 72 |
+
"interface_equal": true,
|
| 73 |
+
"independent_replay": "counterexample"
|
| 74 |
+
},
|
| 75 |
+
"checks": 28
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"model": "qwen2.5:7b",
|
| 79 |
+
"model_slug": "qwen2.5-7b",
|
| 80 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 81 |
+
"status": "preserved",
|
| 82 |
+
"candidate_sql": "SELECT x.reader_id, x.n FROM (SELECT l.reader_id, COUNT(*) AS n FROM lib_loans l GROUP BY l.reader_id HAVING n >= 2) x ORDER BY x.reader_id",
|
| 83 |
+
"refuting_states": [],
|
| 84 |
+
"witness": null,
|
| 85 |
+
"checks": 28
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"model": "qwen2.5-coder:7b",
|
| 89 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 90 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 91 |
+
"status": "preserved",
|
| 92 |
+
"candidate_sql": "SELECT x.reader_id, x.n FROM (SELECT l.reader_id, COUNT(*) AS n FROM lib_loans l GROUP BY l.reader_id HAVING n >= 2) x ORDER BY x.reader_id",
|
| 93 |
+
"refuting_states": [],
|
| 94 |
+
"witness": null,
|
| 95 |
+
"checks": 28
|
| 96 |
+
}
|
| 97 |
+
]
|
| 98 |
+
}
|
data/evidence/lib_reader_distinct_books.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_distinct_books",
|
| 5 |
+
"reference_sql": "SELECT l.reader_id, COUNT(DISTINCT l.book_id) AS n FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT l.reader_id, COUNT(DISTINCT l.book_id) AS n FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT l.reader_id, COUNT(DISTINCT l.book_id) AS n FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT l.reader_id, COUNT(DISTINCT l.book_id) AS n FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT l.reader_id, COUNT(DISTINCT l.book_id) AS n FROM lib_loans l GROUP BY l.reader_id ORDER BY l.reader_id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_reader_fee_positive.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_fee_positive",
|
| 5 |
+
"reference_sql": "SELECT l.reader_id, SUM(l.fee) AS total FROM lib_loans l GROUP BY l.reader_id HAVING SUM(l.fee) > 10 ORDER BY l.reader_id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "no_rewrite",
|
| 26 |
+
"candidate_sql": "SELECT l.reader_id, SUM(l.fee) AS total FROM lib_loans l GROUP BY l.reader_id HAVING SUM(l.fee) > 10 ORDER BY l.reader_id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT l.reader_id, SUM(l.fee) AS total FROM lib_loans l GROUP BY l.reader_id HAVING SUM(l.fee) > 10 ORDER BY l.reader_id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT l.reader_id, SUM(l.fee) AS total FROM lib_loans l GROUP BY l.reader_id HAVING SUM(l.fee) > 10 ORDER BY l.reader_id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "preserved",
|
| 56 |
+
"candidate_sql": "SELECT l.reader_id, SUM(l.fee) AS total FROM lib_loans l GROUP BY l.reader_id HAVING total > 10 ORDER BY l.reader_id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
data/evidence/lib_reader_fee_rank.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "library",
|
| 3 |
+
"dataset_version": "0.2.0",
|
| 4 |
+
"family": "lib_reader_fee_rank",
|
| 5 |
+
"reference_sql": "SELECT reader_id, fee, RANK() OVER (PARTITION BY reader_id ORDER BY fee DESC) AS rnk FROM lib_loans ORDER BY reader_id, rnk, fee DESC, id",
|
| 6 |
+
"protocol": {
|
| 7 |
+
"dbms": "mysql",
|
| 8 |
+
"dbms_version": "8.4.11",
|
| 9 |
+
"checks_per_model": 28,
|
| 10 |
+
"corpus_sha256": "c701d53e42d24070054b837cbefeb047c907021d198f36165844c642a80b5144",
|
| 11 |
+
"state_bank_sha256": "6943d9b515202ea1538bf4868fbb2c97463c9a56c2589340c0acaee333b35ff5",
|
| 12 |
+
"evaluation": "reference and candidate executed on every frozen state in a private schema under a SELECT-only account; each refuting pair replayed in an independent fresh schema",
|
| 13 |
+
"evaluation_runs": {
|
| 14 |
+
"deepseek-coder-v2:latest": "sreb-full-2026-10-19",
|
| 15 |
+
"phi3.5:3.8b": "sreb-full-2026-10-19",
|
| 16 |
+
"qwen2.5:7b": "sreb-full-2026-10-19",
|
| 17 |
+
"qwen2.5-coder:7b": "sreb-full-2026-10-19"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"evidence": [
|
| 21 |
+
{
|
| 22 |
+
"model": "deepseek-coder-v2:latest",
|
| 23 |
+
"model_slug": "deepseek-coder-v2",
|
| 24 |
+
"model_digest": "63fb193b3a9b4322a18e8c6b250ca2e70a5ff531e962dbf95ba089b2566f2fa5",
|
| 25 |
+
"status": "preserved",
|
| 26 |
+
"candidate_sql": "SELECT reader_id, fee, RANK() OVER (PARTITION BY reader_id ORDER BY fee DESC) AS rnk \nFROM lib_loans \nORDER BY reader_id, fee DESC, id;",
|
| 27 |
+
"refuting_states": [],
|
| 28 |
+
"witness": null,
|
| 29 |
+
"checks": 28
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"model": "phi3.5:3.8b",
|
| 33 |
+
"model_slug": "phi3.5-3.8b",
|
| 34 |
+
"model_digest": "61819fb370a3c1a9be6694869331e5f85f867a079e9271d66cb223acb81d04ba",
|
| 35 |
+
"status": "no_rewrite",
|
| 36 |
+
"candidate_sql": "SELECT reader_id, fee, RANK() OVER (PARTITION BY reader_id ORDER BY fee DESC) AS rnk \nFROM lib_loans \nORDER BY reader_id, rnk, fee DESC, id;",
|
| 37 |
+
"refuting_states": [],
|
| 38 |
+
"witness": null,
|
| 39 |
+
"checks": 28
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"model": "qwen2.5:7b",
|
| 43 |
+
"model_slug": "qwen2.5-7b",
|
| 44 |
+
"model_digest": "845dbda0ea48ed749caafd9e6037047aa19acfcfd82e704d7ca97d631a0b697e",
|
| 45 |
+
"status": "no_rewrite",
|
| 46 |
+
"candidate_sql": "SELECT reader_id, fee, RANK() OVER (PARTITION BY reader_id ORDER BY fee DESC) AS rnk FROM lib_loans ORDER BY reader_id, rnk, fee DESC, id",
|
| 47 |
+
"refuting_states": [],
|
| 48 |
+
"witness": null,
|
| 49 |
+
"checks": 28
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"model": "qwen2.5-coder:7b",
|
| 53 |
+
"model_slug": "qwen2.5-coder-7b",
|
| 54 |
+
"model_digest": "dae161e27b0e90dd1856c8bb3209201fd6736d8eb66298e75ed87571486f4364",
|
| 55 |
+
"status": "no_rewrite",
|
| 56 |
+
"candidate_sql": "SELECT reader_id, fee, RANK() OVER (PARTITION BY reader_id ORDER BY fee DESC) AS rnk FROM lib_loans ORDER BY reader_id, rnk, fee DESC, id",
|
| 57 |
+
"refuting_states": [],
|
| 58 |
+
"witness": null,
|
| 59 |
+
"checks": 28
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|