--- license: cc-by-4.0 task_categories: - text-generation - table-question-answering language: - en tags: - text-to-sql - rbac - access-control - security - benchmark size_categories: - 10K Email **bird.bench25@gmail.com** with subject **`[livesqlbench-base-full-v1 GT&Test Cases]`** then join it back by `instance_id` using the merge script in the code repository: ```bash python scripts/merge_livesqlbench_gt.py \ --rbac data/selected/livesqlbench-full/crud_rbac_dataset_v3_no_sm.json \ --gt /path/to/livesqlbench_gt.jsonl \ --out data/selected/livesqlbench-full/crud_rbac_dataset_v3_no_sm.gt.json ``` The Spider and BIRD splits are unaffected — their gold SQL is publicly distributed by the original benchmarks, so those splits are complete as shipped. ## Usage ```python from datasets import load_dataset spider = load_dataset("sharkiefff/RBAC-Text2SQL-Benchmark", "spider") bird = load_dataset("sharkiefff/RBAC-Text2SQL-Benchmark", "bird") live = load_dataset("sharkiefff/RBAC-Text2SQL-Benchmark", "livesqlbench") ``` Or download the raw files into the code repository's expected layout: ```bash huggingface-cli download sharkiefff/RBAC-Text2SQL-Benchmark \ --repo-type dataset --local-dir data/selected ``` ## Evaluation Predictions are classified into six categories (correct / wrong / correct-refusal / incorrect-refusal / violation-correct / violation-wrong), from which the benchmark reports **AC-F1** (access-control F1), **Safe-EX**, **Violation Rate**, and **Over-Refusal Rate**. See the code repository for the evaluation harness. ## Citation ```bibtex @misc{fei2026benchmarkingtexttosqlrolebasedaccess, title={Benchmarking Text-to-SQL under Role-Based Access Control}, author={Yang Fei and Yangfan Jiang and Yin Yang and Xiaokui Xiao}, year={2026}, eprint={2607.22115}, archivePrefix={arXiv}, primaryClass={cs.DB}, url={https://arxiv.org/abs/2607.22115}, } ```