Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 1 new columns ({'external_knowledge'}) and 1 missing columns ({'evidence'}).

This happened while the json dataset builder was generating data using

hf://datasets/NovaSkyAI/OmniSQL_eval/dev_spider.json (at revision 8fae52a3465288ae1d3752c36436c29588423799)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1871, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 643, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2293, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              question: string
              schema: string
              input_seq: string
              output_seq: string
              external_knowledge: string
              -- schema metadata --
              pandas: '{"index_columns": [], "column_indexes": [], "columns": [{"name":' + 722
              to
              {'question': Value(dtype='string', id=None), 'schema': Value(dtype='string', id=None), 'input_seq': Value(dtype='string', id=None), 'output_seq': Value(dtype='string', id=None), 'evidence': Value(dtype='string', id=None)}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1433, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1050, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 925, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1001, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1742, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1873, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 1 new columns ({'external_knowledge'}) and 1 missing columns ({'evidence'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/NovaSkyAI/OmniSQL_eval/dev_spider.json (at revision 8fae52a3465288ae1d3752c36436c29588423799)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

question
string
schema
string
input_seq
string
output_seq
string
evidence
string
What is the highest eligible free rate for K-12 students in the schools in Alameda County?
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT `Free Meal Count (K-12)` / `Enrollment (K-12)` FROM frpm WHERE `County Name` = 'Alameda' ORDER BY (CAST(`Free Meal Count (K-12)` AS REAL) / `Enrollment (K-12)`) DESC LIMIT 1
Eligible free rate for K-12 = `Free Meal Count (K-12)` / `Enrollment (K-12)`
Please list the lowest three eligible free rates for students aged 5-17 in continuation schools.
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)` FROM frpm WHERE `Educational Option Type` = 'Continuation School' AND `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)` IS NOT NULL ORDER BY `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)` ASC LIMIT 3
Eligible free rates for students aged 5-17 = `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)`
Please list the zip code of all the charter schools in Fresno County Office of Education.
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT T2.Zip FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`District Name` = 'Fresno County Office of Education' AND T1.`Charter School (Y/N)` = 1
Charter schools refers to `Charter School (Y/N)` = 1 in the table fprm
What is the unabbreviated mailing street address of the school with the highest FRPM count for K-12 students?
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT T2.MailStreet FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode ORDER BY T1.`FRPM Count (K-12)` DESC LIMIT 1
None
Please list the phone numbers of the direct charter-funded schools that are opened after 2000/1/1.
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT T2.Phone FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`Charter Funding Type` = 'Directly funded' AND T1.`Charter School (Y/N)` = 1 AND T2.OpenDate > '2000-01-01'
Charter schools refers to `Charter School (Y/N)` = 1 in the frpm
How many schools with an average score in Math greater than 400 in the SAT test are exclusively virtual?
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT COUNT(DISTINCT T2.School) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.Virtual = 'F' AND T1.AvgScrMath > 400
Exclusively virtual refers to Virtual = 'F'
Among the schools with the SAT test takers of over 500, please list the schools that are magnet schools or offer a magnet program.
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.Magnet = 1 AND T1.NumTstTakr > 500
Magnet schools or offer a magnet program means that Magnet = 1
What is the phone number of the school that has the highest number of test takers with an SAT score of over 1500?
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1
None
What is the number of SAT test takers of the schools with the highest FRPM count for K-12 students?
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT NumTstTakr FROM satscores WHERE cds = ( SELECT CDSCode FROM frpm ORDER BY `FRPM Count (K-12)` DESC LIMIT 1 )
None
Among the schools with the average score in Math over 560 in the SAT test, how many schools are directly charter-funded?
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT COUNT(T2.`School Code`) FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrMath > 560 AND T2.`Charter Funding Type` = 'Directly funded'
None
For the school with the highest average score in Reading in the SAT test, what is its FRPM count for students aged 5-17?
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT T2.`FRPM Count (Ages 5-17)` FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrRead DESC LIMIT 1
None
Please list the codes of the schools with a total enrollment of over 500.
CREATE TABLE frpm ( CDSCode text, -- example: ['01100170109835', '01100170112607'] `Academic Year` text, -- example: ['2014-2015'] `County Code` text, -- example: ['01', '02'] `District Code` integer, -- example: [10017, 31609] `School Code` text, -- example: ['0109835', '0112607'] `County Name`...
Task Overview: You are a data science expert. Below, you are provided with a database schema and a natural language question. Your task is to understand the schema and generate a valid SQL query to answer the question. Database Engine: SQLite Database Schema: CREATE TABLE frpm ( CDSCode text, -- example: ['011001...
SELECT T2.CDSCode FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.`Enrollment (K-12)` + T2.`Enrollment (Ages 5-17)` > 500
Total enrollment can be represented by `Enrollment (K-12)` + `Enrollment (Ages 5-17)`
End of preview.

No dataset card yet

Downloads last month
39