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 5 new columns ({'docs', 'id', 'db_or_proj', 'nl_prompt', 'sql_query'}) and 8 missing columns ({'description', 'dataset', 'insertions', 'project', 'ddl', 'schema', 'database', 'table_name'}).

This happened while the csv dataset builder was generating data using

hf://datasets/nl2sqlproj/spider2-nl2sql/qa.csv (at revision 3b5269522856233d5037211b370b464c338221b7)

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 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 644, 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 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              Unnamed: 0: int64
              id: string
              db_or_proj: string
              nl_prompt: string
              sql_query: string
              docs: string
              dbms: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1054
              to
              {'Unnamed: 0': Value('int64'), 'table_name': Value('string'), 'ddl': Value('string'), 'description': Value('float64'), 'insertions': Value('string'), 'dbms': Value('string'), 'database': Value('float64'), 'schema': Value('float64'), 'project': Value('string'), 'dataset': Value('string')}
              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 1456, 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 1055, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 970, 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 1702, 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 1833, 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 5 new columns ({'docs', 'id', 'db_or_proj', 'nl_prompt', 'sql_query'}) and 8 missing columns ({'description', 'dataset', 'insertions', 'project', 'ddl', 'schema', 'database', 'table_name'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/nl2sqlproj/spider2-nl2sql/qa.csv (at revision 3b5269522856233d5037211b370b464c338221b7)
              
              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.

Unnamed: 0
int64
table_name
string
ddl
string
description
null
insertions
string
dbms
string
database
null
schema
null
project
string
dataset
string
0
nmcrash_2018
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.nmcrash_2018` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.nmcrash_2018` (state_number, state_name, consecutive_number, vehicle_number, person_number, non_motorist_contributing_circumstances, non_motorist_contributing_circumstances_name) VALUES (1, 'Alabama', 10006, 0, 1, 0, 'None Noted'), (1, 'Alabama', 10008, 0, 1, 0...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
1
maneuver_2020
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.maneuver_2020` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.maneuver_2020` (state_number, state_name, consecutive_number, vehicle_number, driver_maneuvered_to_avoid, driver_maneuvered_to_avoid_name) VALUES (6, 'California', 60647, 5, 1, 'Object'), (6, 'California', 61872, 5, 1, 'Object'), (48, 'Texas', 481405, 6, 1, 'Ob...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
2
nmimpair_2017
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.nmimpair_2017` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.nmimpair_2017` (state_number, state_name, consecutive_number, vehicle_number, person_number, condition_impairment_at_time_of_crash_non_motorist, condition_impairment_at_time_of_crash_non_motorist_name) VALUES (4, 'Arizona', 40250, 0, 4, 0, 'None/Apparently Norm...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
3
safetyeq_2015
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.safetyeq_2015` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.safetyeq_2015` (state_number, state_name, consecutive_number, vehicle_number, person_number, non_motorist_safety_equipment_use, non_motorist_safety_equipment_use_name) VALUES (1, 'Alabama', 10777, 0, 5, '1', 'None Used'), (1, 'Alabama', 10777, 0, 6, '1', 'None ...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
4
vevent_2019
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.vevent_2019` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.vevent_2019` (state_number, state_name, consecutive_number, event_number, vehicle_number, vehicle_event_number, vehicle_number_this_vehicle, area_of_impact_this_vehicle, area_of_impact_this_vehicle_name, sequence_of_events, sequence_of_events_name, vehicle_numb...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
5
distract_2017
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.distract_2017` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.distract_2017` (state_number, state_name, consecutive_number, vehicle_number, driver_distracted_by, driver_distracted_by_name) VALUES (6, 'California', 60754, 5, 96, 'Not Reported'), (6, 'California', 60816, 5, 96, 'Not Reported'), (6, 'California', 62753, 5, 9...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
6
cevent_2017
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.cevent_2017` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.cevent_2017` (state_number, state_name, consecutive_number, event_number, vehicle_number_this_vehicle, area_of_impact_this_vehicle, area_of_impact_this_vehicle_name, sequence_of_events, sequence_of_events_name, vehicle_number_other_vehicle, vehicle_number_other...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
7
safetyeq_2019
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.safetyeq_2019` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.safetyeq_2019` (state_number, state_name, consecutive_number, vehicle_number, person_number, nm_helmet, nm_helmet_name, nm_propad, nm_propad_name, nm_othpro, nm_othpro_name, nm_refclo, nm_refclo_name, nm_light, nm_light_name, nm_othpre, nm_othpre_name) VALUES (...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
8
vevent_2015
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.vevent_2015` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.vevent_2015` (state_number, state_name, consecutive_number, event_number, vehicle_number, vehicle_event_number, vehicle_number_this_vehicle, area_of_impact_this_vehicle, area_of_impact_this_vehicle_name, sequence_of_events, sequence_of_events_name, vehicle_numb...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
9
maneuver_2016
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.maneuver_2016` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.maneuver_2016` (state_number, state_name, consecutive_number, vehicle_number, driver_maneuvered_to_avoid, driver_maneuvered_to_avoid_name) VALUES (1, 'Alabama', 10264, 5, 0, 'Driver Did Not Maneuver to Avoid'), (1, 'Alabama', 10762, 5, 0, 'Driver Did Not Maneuv...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
10
pbtype_2018
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.pbtype_2018` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.pbtype_2018` (state_number, state_name, consecutive_number, vehicle_number, person_number, person_type, person_type_name, age, age_name, sex, sex_name, marked_crosswalk_present, marked_crosswalk_present_name, sidewalk_present, sidewalk_present_name, school_zone...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
11
pbtype_2019
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.pbtype_2019` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.pbtype_2019` (state_number, state_name, consecutive_number, vehicle_number, person_number, person_type, person_type_name, age, age_name, sex, sex_name, marked_crosswalk_present, marked_crosswalk_present_name, sidewalk_present, sidewalk_present_name, school_zone...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
12
maneuver_2017
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.maneuver_2017` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.maneuver_2017` (state_number, state_name, consecutive_number, vehicle_number, driver_maneuvered_to_avoid, driver_maneuvered_to_avoid_name) VALUES (4, 'Arizona', 40164, 5, 0, 'Driver Did Not Maneuver to Avoid'), (4, 'Arizona', 40164, 7, 0, 'Driver Did Not Maneuv...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
13
nmimpair_2020
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.nmimpair_2020` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.nmimpair_2020` (state_number, state_name, consecutive_number, vehicle_number, person_number, condition_impairment_at_time_of_crash_non_motorist, condition_impairment_at_time_of_crash_non_motorist_name) VALUES (4, 'Arizona', 40596, 0, 4, 0, 'None/Apparently Norm...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
14
distract_2020
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.distract_2020` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.distract_2020` (state_number, state_name, consecutive_number, vehicle_number, driver_distracted_by, driver_distracted_by_name) VALUES (4, 'Arizona', 40125, 5, 0, 'Not Distracted'), (4, 'Arizona', 40238, 6, 0, 'Not Distracted'), (4, 'Arizona', 40238, 7, 0, 'Not ...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
15
safetyeq_2018
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.safetyeq_2018` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.safetyeq_2018` (state_number, state_name, consecutive_number, vehicle_number, person_number, nm_helmet, nm_helmet_name, nm_propad, nm_propad_name, nm_othpro, nm_othpro_name, nm_refclo, nm_refclo_name, nm_light, nm_light_name, nm_othpre, nm_othpre_name) VALUES (...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
16
cevent_2016
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.cevent_2016` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.cevent_2016` (state_number, state_name, consecutive_number, event_number, vehicle_number_this_vehicle, area_of_impact_this_vehicle, area_of_impact_this_vehicle_name, sequence_of_events, sequence_of_events_name, vehicle_number_other_vehicle, vehicle_number_other...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
17
person_2016
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.person_2016` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.person_2016` (state_number, consecutive_number, number_of_motor_vehicles_in_transport_mvit, vehicle_number, person_number, number_of_motor_vehicle_striking_non_motorist, county, day_of_crash, month_of_crash, hour_of_crash, minute_of_crash, land_use, land_use_na...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
18
nmcrash_2015
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.nmcrash_2015` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.nmcrash_2015` (state_number, state_name, consecutive_number, vehicle_number, person_number, non_motorist_contributing_circumstances, non_motorist_contributing_circumstances_name) VALUES (1, 'Alabama', 10040, 0, 1, 0, 'None Noted'), (1, 'Alabama', 10055, 0, 1, 0...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
19
pbtype_2015
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.pbtype_2015` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.pbtype_2015` (state_number, state_name, consecutive_number, vehicle_number, person_number, person_type, person_type_name, age, age_name, sex, sex_name, marked_crosswalk_present, marked_crosswalk_present_name, sidewalk_present, sidewalk_present_name, school_zone...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
20
distract_2016
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.distract_2016` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.distract_2016` (state_number, state_name, consecutive_number, vehicle_number, driver_distracted_by, driver_distracted_by_name) VALUES (1, 'Alabama', 10264, 5, 0, 'Not Distracted'), (1, 'Alabama', 10762, 5, 0, 'Not Distracted'), (1, 'Alabama', 10762, 6, 0, 'Not ...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
21
cevent_2020
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.cevent_2020` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.cevent_2020` (state_number, state_name, consecutive_number, event_number, vehicle_number_this_vehicle, area_of_impact_this_vehicle, area_of_impact_this_vehicle_name, sequence_of_events, sequence_of_events_name, vehicle_number_other_vehicle, vehicle_number_other...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
22
vevent_2018
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.vevent_2018` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more info ...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.vevent_2018` (state_number, state_name, consecutive_number, event_number, vehicle_number, vehicle_event_number, vehicle_number_this_vehicle, area_of_impact_this_vehicle, area_of_impact_this_vehicle_name, sequence_of_events, sequence_of_events_name, vehicle_numb...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
23
nmimpair_2016
CREATE TABLE `bigquery-public-data.nhtsa_traffic_fatalities.nmimpair_2016` ( state_number INT64 OPTIONS(description="This data element identifies the state in which the crash occurred. The codes are from the General Services Administration’s (GSA) publication of worldwide Geographic Location Codes (GLC). For more inf...
null
INSERT INTO `bigquery-public-data.nhtsa_traffic_fatalities.nmimpair_2016` (state_number, state_name, consecutive_number, vehicle_number, person_number, condition_impairment_at_time_of_crash_non_motorist, condition_impairment_at_time_of_crash_non_motorist_name) VALUES (1, 'Alabama', 10381, 0, 4, 0, 'None/Apparently Norm...
bigquery
null
null
nhtsa_traffic_fatalities
bigquery-public-data.nhtsa_traffic_fatalities
End of preview.

Dataset Details

Dataset Description

This dataset consists of data for the purpose of training a model to generate SQL code in response to a natural language prompt. The qa.csv table consists of these pairs, while the <dbms>_ddl.csv tables consist of the DDLs and sample data needed to verify the validity of generated SQL queries.

Dataset Sources: Spider2

Downloads last month
58

Paper for nl2sqlproj/spider2-nl2sql