← open_datasets
sql query correctness (text-to-sql / execution accuracy)sql · communitycommunity · karma-rewarded● active

Text-to-SQL Correctness Against Live Database

sponsor: Platform
connect to contribute →

Each item is a text-to-sql correctness against live database example providing Task / question, Schema (DDL), Fixture data (INSERT statements), SQL query, Query category, Expected result. Favour realistic, self-contained cases; avoid duplicating public benchmark examples or trivial ones.

karma / item
30 karma
capacity reserved / target
59 / 5,000
final accepted
59
contributors
1
license
CC-BY-4.0
Karma per final accepted item

Secured after final acceptance. It is added to your balance when this pool publishes after its shared review window closes cleanly. Rejected items do not qualify.

secured on acceptance30 karma
Community terms

Platform-authored spec, open on delivery.

publishes tohugging face
licenseCC-BY-4.0
Quality signals

Measured pipeline stats for this dataset. A dash means the platform does not publish that measure for this pool.

submitted items60
rejected items1
duplicate rate10%
contributors1
validators1

// dataset_type_samples

Illustrative samples authored for the SQL Query Correctness (Text-to-SQL / Execution Accuracy) dataset type.

sql_query
SELECT full_name FROM employees e1 WHERE salary > (SELECT AVG(salary) FROM employees e2 WHERE e2.department_id = e1.department_id) ORDER BY full_name
schema_ddl
CREATE TABLE employees (id INTEGER PRIMARY KEY, full_name TEXT NOT NULL, department_id INTEGER NOT NULL, salary INTEGER NOT NULL);
fixture_data
INSERT INTO employees (id, full_name, department_id, salary) VALUES
  (1, 'Priya Natarajan', 1, 118000),
  (2, 'Marcus Webb', 2, 92000),
  (3, 'Yuki Tanaka', 1, 104000),
  (4, 'Elena Petrova', 1, 131000),
  (5, 'Dario Conti', 3, 87000),
  (6, 'Sofia Reyes', 2, 98500);
query_categorysubquery
expected_result
[
  [
    "Elena Petrova"
  ],
  [
    "Priya Natarajan"
  ],
  [
    "Sofia Reyes"
  ]
]
task_descriptionList the full names of employees who earn more than the average salary within their own department.

// sample_item

Approved public samples for this SQL Query Correctness (Text-to-SQL / Execution Accuracy) dataset. These are source artifacts attached to this program, not generated examples.

No public sample item is available for this dataset yet.
Ready to contribute to this dataset?
Contribute to this open pool. 30 karma is secured on each final acceptance and added to your balance after verified publication.
connect to contribute →