Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
question: string
db_id: string
orig_query: string
schema_with_content: string
schema_without_content: string
extra_map: struct<singer: struct<name: list<item: string>, age: list<item: string>, country: list<item: string> (... 8748 chars omitted)
child 0, singer: struct<name: list<item: string>, age: list<item: string>, country: list<item: string>, song_release_ (... 161 chars omitted)
child 0, name: list<item: string>
child 0, item: string
child 1, age: list<item: string>
child 0, item: string
child 2, country: list<item: string>
child 0, item: string
child 3, song_release_year: list<item: string>
child 0, item: string
child 4, song_name: list<item: string>
child 0, item: string
child 5, citizenship: list<item: string>
child 0, item: string
child 6, birth_year: list<item: string>
child 0, item: string
child 7, net_worth_millions: list<item: string>
child 0, item: string
child 1, stadium: struct<location: list<item: string>, name: list<item: string>, capacity: list<item: string>>
child 0, location: list<item: string>
child 0, item: string
child 1, name: list<item: string>
child 0, item: string
child 2, capacity: list<item: string>
child 0, item: string
child 2, concert: struct<year: list<item: string>, concert_name: list<item: string>, theme: list<item: string>>
child 0, year: list<item: stri
...
child 988, net worth: string
child 989, names of singers: string
child 990, birth year: string
child 991, citizenship of singers: string
child 992, birth years: string
child 993, citizenships of the singers: string
child 994, citizenship: string
child 995, French citizens: string
child 996, name of the singer: string
child 997, worth: string
child 998, singers of each citizenship: string
child 999, citizenships: string
child 1000, maximum net worth of singers: string
child 1001, maximum net worth: string
child 1002, titles of songs: string
child 1003, song titles: string
child 1004, songs with sales: string
child 1005, sales: string
child 1006, song: string
child 1007, songs: string
child 1008, total sales of their songs: string
child 1009, singer name: string
child 1010, total sales: string
child 1011, sname: string
child 1012, sing: string
child 1013, singers with birth year: string
child 1014, singers with a birth year: string
child 1015, feature: string
child 1016, feature type name: string
child 1017, property type descriptions of properties: string
child 1018, names of properties: string
child 1019, houses: string
child 1020, apartments with more than 1 room: string
linking_list_idx: null
linking_list_col: list<item: list<item: string>>
child 0, item: list<item: string>
child 0, item: string
linking_list: list<item: list<item: string>>
child 0, item: list<item: string>
child 0, item: string
to
{'question': Value('string'), 'db_schema': Json(decode=True), 'linking_list': List(List(Value('string'))), 'linking_list_idx': List(List(Json(decode=True))), 'linking_list_col': List(List(Value('string')))}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
question: string
db_id: string
orig_query: string
schema_with_content: string
schema_without_content: string
extra_map: struct<singer: struct<name: list<item: string>, age: list<item: string>, country: list<item: string> (... 8748 chars omitted)
child 0, singer: struct<name: list<item: string>, age: list<item: string>, country: list<item: string>, song_release_ (... 161 chars omitted)
child 0, name: list<item: string>
child 0, item: string
child 1, age: list<item: string>
child 0, item: string
child 2, country: list<item: string>
child 0, item: string
child 3, song_release_year: list<item: string>
child 0, item: string
child 4, song_name: list<item: string>
child 0, item: string
child 5, citizenship: list<item: string>
child 0, item: string
child 6, birth_year: list<item: string>
child 0, item: string
child 7, net_worth_millions: list<item: string>
child 0, item: string
child 1, stadium: struct<location: list<item: string>, name: list<item: string>, capacity: list<item: string>>
child 0, location: list<item: string>
child 0, item: string
child 1, name: list<item: string>
child 0, item: string
child 2, capacity: list<item: string>
child 0, item: string
child 2, concert: struct<year: list<item: string>, concert_name: list<item: string>, theme: list<item: string>>
child 0, year: list<item: stri
...
child 988, net worth: string
child 989, names of singers: string
child 990, birth year: string
child 991, citizenship of singers: string
child 992, birth years: string
child 993, citizenships of the singers: string
child 994, citizenship: string
child 995, French citizens: string
child 996, name of the singer: string
child 997, worth: string
child 998, singers of each citizenship: string
child 999, citizenships: string
child 1000, maximum net worth of singers: string
child 1001, maximum net worth: string
child 1002, titles of songs: string
child 1003, song titles: string
child 1004, songs with sales: string
child 1005, sales: string
child 1006, song: string
child 1007, songs: string
child 1008, total sales of their songs: string
child 1009, singer name: string
child 1010, total sales: string
child 1011, sname: string
child 1012, sing: string
child 1013, singers with birth year: string
child 1014, singers with a birth year: string
child 1015, feature: string
child 1016, feature type name: string
child 1017, property type descriptions of properties: string
child 1018, names of properties: string
child 1019, houses: string
child 1020, apartments with more than 1 room: string
linking_list_idx: null
linking_list_col: list<item: list<item: string>>
child 0, item: list<item: string>
child 0, item: string
linking_list: list<item: list<item: string>>
child 0, item: list<item: string>
child 0, item: string
to
{'question': Value('string'), 'db_schema': Json(decode=True), 'linking_list': List(List(Value('string'))), 'linking_list_idx': List(List(Json(decode=True))), 'linking_list_col': List(List(Value('string')))}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed 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 | db_schema string | linking_list list | linking_list_idx list | linking_list_col list |
|---|---|---|---|---|
list the #name# , #born state# and #age of the heads of departments# ordered by #age# . | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","hometown","birthplace"],"management":["department_id","head_id","temporary_acting"]} | [
[
"name",
"head.name"
],
[
"born state",
"head.born_state"
],
[
"born state",
"head.hometown"
],
[
"born state",
"head.birthplace"
],
[
"age of the heads of departments",
"head.age"
],
[
"age",
"head.age"
]
] | [
[
"0",
"\"head.name\""
],
[
"1",
"\"head.born_state\""
],
[
"1",
"\"head.hometown\""
],
[
"1",
"\"head.birthplace\""
],
[
"2",
"\"head.age\""
],
[
"3",
"\"head.age\""
]
] | [
[
"head.hometown",
"head.birthplace"
],
[
"head.born_state",
"head.birthplace"
],
[
"head.hometown",
"head.born_state"
]
] |
list the #creation year# , #name# and #budget of each department# . | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","funds_in_billions","allocated_budget"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"creation year",
"department.creation"
],
[
"name",
"department.name"
],
[
"budget of each department",
"department.budget_in_billions"
],
[
"budget of each department",
"department.funds_in_billions"
],
[
"budget of each department",
"department.allocated_b... | [
[
"0",
"\"department.creation\""
],
[
"1",
"\"department.name\""
],
[
"2",
"\"department.budget_in_billions\""
],
[
"2",
"\"department.funds_in_billions\""
],
[
"2",
"\"department.allocated_budget\""
]
] | [
[
"department.funds_in_billions",
"department.allocated_budget"
],
[
"department.budget_in_billions",
"department.allocated_budget"
],
[
"department.funds_in_billions",
"department.budget_in_billions"
]
] |
what is the #average number of employees of the departments# whose #rank# is between 10 and 15? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","employee_count","staff_size"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"average number of employees of the departments",
"department.num_employees"
],
[
"average number of employees of the departments",
"department.employee_count"
],
[
"average number of employees of the departments",
"department.staff_size"
],
[
"rank",
"department.rankin... | [
[
"0",
"\"department.num_employees\""
],
[
"0",
"\"department.employee_count\""
],
[
"0",
"\"department.staff_size\""
],
[
"1",
"\"department.ranking\""
]
] | [
[
"department.employee_count",
"department.staff_size"
],
[
"department.num_employees",
"department.staff_size"
],
[
"department.employee_count",
"department.num_employees"
]
] |
what are the #names of the heads# who are #born# outside the california state? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","full_name","title"],"management":["department_id","head_id","temporary_acting"]} | [
[
"names of the heads",
"head.name"
],
[
"names of the heads",
"head.full_name"
],
[
"names of the heads",
"head.title"
],
[
"born",
"head.born_state"
]
] | [
[
"0",
"\"head.name\""
],
[
"0",
"\"head.full_name\""
],
[
"0",
"\"head.title\""
],
[
"1",
"\"head.born_state\""
]
] | [
[
"head.full_name",
"head.title"
],
[
"head.name",
"head.title"
],
[
"head.full_name",
"head.name"
]
] |
what are the distinct #creation years of the departments# managed by a secretary born in state 'alabama'? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","establishment","founding"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"creation years of the departments",
"department.creation"
],
[
"creation years of the departments",
"department.establishment"
],
[
"creation years of the departments",
"department.founding"
]
] | [
[
"0",
"\"department.creation\""
],
[
"0",
"\"department.establishment\""
],
[
"0",
"\"department.founding\""
]
] | [
[
"department.establishment",
"department.founding"
],
[
"department.creation",
"department.founding"
],
[
"department.establishment",
"department.creation"
]
] |
what are the #names of the states# where at least 3 heads were born? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","hometown","birthplace"],"management":["department_id","head_id","temporary_acting"]} | [
[
"names of the states",
"head.born_state"
],
[
"names of the states",
"head.hometown"
],
[
"names of the states",
"head.birthplace"
]
] | [
[
"0",
"\"head.born_state\""
],
[
"0",
"\"head.hometown\""
],
[
"0",
"\"head.birthplace\""
]
] | [
[
"head.hometown",
"head.birthplace"
],
[
"head.born_state",
"head.birthplace"
],
[
"head.hometown",
"head.born_state"
]
] |
in which #year# were most departments established? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","establishment","founding"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"year",
"department.creation"
],
[
"year",
"department.establishment"
],
[
"year",
"department.founding"
]
] | [
[
"0",
"\"department.creation\""
],
[
"0",
"\"department.establishment\""
],
[
"0",
"\"department.founding\""
]
] | [
[
"department.establishment",
"department.founding"
],
[
"department.creation",
"department.founding"
],
[
"department.establishment",
"department.creation"
]
] |
show the #name# and #number of employees for the departments# managed by heads whose #temporary acting# value is 'yes'? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","employee_count","staff_size"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"name",
"department.name"
],
[
"number of employees for the departments",
"department.num_employees"
],
[
"number of employees for the departments",
"department.employee_count"
],
[
"number of employees for the departments",
"department.staff_size"
],
[
"tempora... | [
[
"0",
"\"department.name\""
],
[
"1",
"\"department.num_employees\""
],
[
"1",
"\"department.employee_count\""
],
[
"1",
"\"department.staff_size\""
],
[
"2",
"\"management.temporary_acting\""
]
] | [
[
"department.employee_count",
"department.staff_size"
],
[
"department.num_employees",
"department.staff_size"
],
[
"department.employee_count",
"department.num_employees"
]
] |
how many #acting statuses# are there? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting","interim","provisional"]} | [
[
"acting statuses",
"management.temporary_acting"
],
[
"acting statuses",
"management.interim"
],
[
"acting statuses",
"management.provisional"
]
] | [
[
"0",
"\"management.temporary_acting\""
],
[
"0",
"\"management.interim\""
],
[
"0",
"\"management.provisional\""
]
] | [
[
"management.interim",
"management.provisional"
],
[
"management.temporary_acting",
"management.provisional"
],
[
"management.interim",
"management.temporary_acting"
]
] |
what are the distinct #ages of the heads# who are acting? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","years_old","age_in_years"],"management":["department_id","head_id","temporary_acting"]} | [
[
"ages of the heads",
"head.age"
],
[
"ages of the heads",
"head.years_old"
],
[
"ages of the heads",
"head.age_in_years"
]
] | [
[
"0",
"\"head.age\""
],
[
"0",
"\"head.years_old\""
],
[
"0",
"\"head.age_in_years\""
]
] | [
[
"head.years_old",
"head.age_in_years"
],
[
"head.age",
"head.age_in_years"
],
[
"head.years_old",
"head.age"
]
] |
list the #states# where both the secretary of 'treasury' department and the secretary of 'homeland security' were born. | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","hometown","birthplace"],"management":["department_id","head_id","temporary_acting"]} | [
[
"states",
"head.born_state"
],
[
"states",
"head.hometown"
],
[
"states",
"head.birthplace"
]
] | [
[
"0",
"\"head.born_state\""
],
[
"0",
"\"head.hometown\""
],
[
"0",
"\"head.birthplace\""
]
] | [
[
"head.hometown",
"head.birthplace"
],
[
"head.born_state",
"head.birthplace"
],
[
"head.hometown",
"head.born_state"
]
] |
which department has more than 1 head at a time? list the #id# , #name# and the #number of heads# . | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","division_id","section_id"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"id",
"department.department_id"
],
[
"id",
"department.division_id"
],
[
"id",
"department.section_id"
],
[
"name",
"department.name"
],
[
"number of heads",
"management.head_id"
]
] | [
[
"0",
"\"department.department_id\""
],
[
"0",
"\"department.division_id\""
],
[
"0",
"\"department.section_id\""
],
[
"1",
"\"department.name\""
],
[
"2",
"\"management.head_id\""
]
] | [
[
"department.division_id",
"department.section_id"
],
[
"department.department_id",
"department.section_id"
],
[
"department.division_id",
"department.department_id"
]
] |
which head's #name# has the substring 'ha'? list the #id# and name. | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","full_name","title"],"management":["department_id","head_id","temporary_acting"]} | [
[
"id",
"head.head_id"
],
[
"name",
"head.name"
],
[
"name",
"head.full_name"
],
[
"name",
"head.title"
]
] | [
[
"0",
"\"head.head_id\""
],
[
"1",
"\"head.name\""
],
[
"1",
"\"head.full_name\""
],
[
"1",
"\"head.title\""
]
] | [
[
"head.full_name",
"head.title"
],
[
"head.name",
"head.title"
],
[
"head.full_name",
"head.name"
]
] |
list the #total number of horses on farms# in ascending order. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","horse_quantity","equine_total"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"comp... | [
[
"total number of horses on farms",
"farm.total_horses"
],
[
"total number of horses on farms",
"farm.horse_quantity"
],
[
"total number of horses on farms",
"farm.equine_total"
]
] | [
[
"0",
"\"farm.total_horses\""
],
[
"0",
"\"farm.horse_quantity\""
],
[
"0",
"\"farm.equine_total\""
]
] | [
[
"farm.horse_quantity",
"farm.equine_total"
],
[
"farm.total_horses",
"farm.equine_total"
],
[
"farm.horse_quantity",
"farm.total_horses"
]
] |
what is the #total horses# record for each farm, sorted ascending? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","horse_quantity","equine_total"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"comp... | [
[
"total horses",
"farm.total_horses"
],
[
"total horses",
"farm.horse_quantity"
],
[
"total horses",
"farm.equine_total"
]
] | [
[
"0",
"\"farm.total_horses\""
],
[
"0",
"\"farm.horse_quantity\""
],
[
"0",
"\"farm.equine_total\""
]
] | [
[
"farm.horse_quantity",
"farm.equine_total"
],
[
"farm.total_horses",
"farm.equine_total"
],
[
"farm.horse_quantity",
"farm.total_horses"
]
] |
what are the #hosts of competitions# whose #theme# is not "aliens"? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","organizers","conductors"],"competitio... | [
[
"hosts of competitions",
"farm_competition.hosts"
],
[
"hosts of competitions",
"farm_competition.organizers"
],
[
"hosts of competitions",
"farm_competition.conductors"
],
[
"theme",
"farm_competition.theme"
]
] | [
[
"0",
"\"farm_competition.hosts\""
],
[
"0",
"\"farm_competition.organizers\""
],
[
"0",
"\"farm_competition.conductors\""
],
[
"1",
"\"farm_competition.theme\""
]
] | [
[
"farm_competition.organizers",
"farm_competition.conductors"
],
[
"farm_competition.hosts",
"farm_competition.conductors"
],
[
"farm_competition.organizers",
"farm_competition.hosts"
]
] |
return the #hosts of competitions# for which the #theme# is not aliens? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","organizers","conductors"],"competitio... | [
[
"hosts of competitions",
"farm_competition.hosts"
],
[
"hosts of competitions",
"farm_competition.organizers"
],
[
"hosts of competitions",
"farm_competition.conductors"
],
[
"theme",
"farm_competition.theme"
]
] | [
[
"0",
"\"farm_competition.hosts\""
],
[
"0",
"\"farm_competition.organizers\""
],
[
"0",
"\"farm_competition.conductors\""
],
[
"1",
"\"farm_competition.theme\""
]
] | [
[
"farm_competition.organizers",
"farm_competition.conductors"
],
[
"farm_competition.hosts",
"farm_competition.conductors"
],
[
"farm_competition.organizers",
"farm_competition.hosts"
]
] |
what are the #themes of farm competitions# sorted by #year# in ascending order? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","topic","subject"],"competition_record... | [
[
"themes of farm competitions",
"farm_competition.theme"
],
[
"themes of farm competitions",
"farm_competition.topic"
],
[
"themes of farm competitions",
"farm_competition.subject"
],
[
"year",
"farm_competition.year"
]
] | [
[
"0",
"\"farm_competition.theme\""
],
[
"0",
"\"farm_competition.topic\""
],
[
"0",
"\"farm_competition.subject\""
],
[
"1",
"\"farm_competition.year\""
]
] | [
[
"farm_competition.topic",
"farm_competition.subject"
],
[
"farm_competition.theme",
"farm_competition.subject"
],
[
"farm_competition.topic",
"farm_competition.theme"
]
] |
return the #themes of farm competitions# , sorted by #year# ascending. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","topic","subject"],"competition_record... | [
[
"themes of farm competitions",
"farm_competition.theme"
],
[
"themes of farm competitions",
"farm_competition.topic"
],
[
"themes of farm competitions",
"farm_competition.subject"
],
[
"year",
"farm_competition.year"
]
] | [
[
"0",
"\"farm_competition.theme\""
],
[
"0",
"\"farm_competition.topic\""
],
[
"0",
"\"farm_competition.subject\""
],
[
"1",
"\"farm_competition.year\""
]
] | [
[
"farm_competition.topic",
"farm_competition.subject"
],
[
"farm_competition.theme",
"farm_competition.subject"
],
[
"farm_competition.topic",
"farm_competition.theme"
]
] |
what is the #average number of working horses of farms# with more than 5000 total number of horses? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","utility_horses","draft_horses"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"comp... | [
[
"average number of working horses of farms",
"farm.working_horses"
],
[
"average number of working horses of farms",
"farm.utility_horses"
],
[
"average number of working horses of farms",
"farm.draft_horses"
]
] | [
[
"0",
"\"farm.working_horses\""
],
[
"0",
"\"farm.utility_horses\""
],
[
"0",
"\"farm.draft_horses\""
]
] | [
[
"farm.utility_horses",
"farm.draft_horses"
],
[
"farm.working_horses",
"farm.draft_horses"
],
[
"farm.utility_horses",
"farm.working_horses"
]
] |
give the #average number of working horses on farms# with more than 5000 #total horses# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","utility_horses","draft_horses"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"comp... | [
[
"average number of working horses on farms",
"farm.working_horses"
],
[
"average number of working horses on farms",
"farm.utility_horses"
],
[
"average number of working horses on farms",
"farm.draft_horses"
],
[
"total horses",
"farm.total_horses"
]
] | [
[
"0",
"\"farm.working_horses\""
],
[
"0",
"\"farm.utility_horses\""
],
[
"0",
"\"farm.draft_horses\""
],
[
"1",
"\"farm.total_horses\""
]
] | [
[
"farm.utility_horses",
"farm.draft_horses"
],
[
"farm.working_horses",
"farm.draft_horses"
],
[
"farm.utility_horses",
"farm.working_horses"
]
] |
what are the #maximum and minimum number of cows# across all farms. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","female_cattle","heifers"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competitio... | [
[
"maximum and minimum number of cows",
"farm.cows"
],
[
"maximum and minimum number of cows",
"farm.female_cattle"
],
[
"maximum and minimum number of cows",
"farm.heifers"
]
] | [
[
"0",
"\"farm.cows\""
],
[
"0",
"\"farm.female_cattle\""
],
[
"0",
"\"farm.heifers\""
]
] | [
[
"farm.female_cattle",
"farm.heifers"
],
[
"farm.cows",
"farm.heifers"
],
[
"farm.female_cattle",
"farm.cows"
]
] |
return the #maximum and minimum number of cows# across all farms. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","female_cattle","heifers"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competitio... | [
[
"maximum and minimum number of cows",
"farm.cows"
],
[
"maximum and minimum number of cows",
"farm.female_cattle"
],
[
"maximum and minimum number of cows",
"farm.heifers"
]
] | [
[
"0",
"\"farm.cows\""
],
[
"0",
"\"farm.female_cattle\""
],
[
"0",
"\"farm.heifers\""
]
] | [
[
"farm.female_cattle",
"farm.heifers"
],
[
"farm.cows",
"farm.heifers"
],
[
"farm.female_cattle",
"farm.cows"
]
] |
how many different #statuses# do cities have? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"statuses",
"city.status"
],
[
"statuses",
"city.position"
],
[
"statuses",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
count the number of different #statuses# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"statuses",
"city.status"
],
[
"statuses",
"city.position"
],
[
"statuses",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
list #official names of cities# in descending order of #population# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities",
"city.official_name"
],
[
"official names of cities",
"city.name"
],
[
"official names of cities",
"city.appellation"
],
[
"population",
"city.population"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
],
[
"1",
"\"city.population\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
what are the #official names of cities# , ordered descending by population? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities",
"city.official_name"
],
[
"official names of cities",
"city.name"
],
[
"official names of cities",
"city.appellation"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
list the #official name# and #status of the city with the largest population# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"official name",
"city.official_name"
],
[
"status of the city with the largest population",
"city.status"
],
[
"status of the city with the largest population",
"city.position"
],
[
"status of the city with the largest population",
"city.state"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"1",
"\"city.status\""
],
[
"1",
"\"city.position\""
],
[
"1",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
show the #years# and the #official names of the host cities of competitions# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"years",
"farm_competition.year"
],
[
"official names of the host cities of competitions",
"city.official_name"
],
[
"official names of the host cities of competitions",
"city.name"
],
[
"official names of the host cities of competitions",
"city.appellation"
]
] | [
[
"0",
"\"farm_competition.year\""
],
[
"1",
"\"city.official_name\""
],
[
"1",
"\"city.name\""
],
[
"1",
"\"city.appellation\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
give the #years# and #official names of the cities of each competition# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"years",
"farm_competition.year"
],
[
"official names of the cities of each competition",
"city.official_name"
],
[
"official names of the cities of each competition",
"city.name"
],
[
"official names of the cities of each competition",
"city.appellation"
]
] | [
[
"0",
"\"farm_competition.year\""
],
[
"1",
"\"city.official_name\""
],
[
"1",
"\"city.name\""
],
[
"1",
"\"city.appellation\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
show the #official names of the cities# that have #hosted# more than one #competition# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of the cities",
"city.official_name"
],
[
"official names of the cities",
"city.name"
],
[
"official names of the cities",
"city.appellation"
],
[
"hosted",
"farm_competition.host_city_id"
],
[
"competition",
"farm_competition.competition_id"... | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
],
[
"1",
"\"farm_competition.host_city_id\""
],
[
"2",
"\"farm_competition.competition_id\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
what are the #official names of cities# that have #hosted# more than one competition? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities",
"city.official_name"
],
[
"official names of cities",
"city.name"
],
[
"official names of cities",
"city.appellation"
],
[
"hosted",
"farm_competition.host_city_id"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
],
[
"1",
"\"farm_competition.host_city_id\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
show the #status of the city# that has #hosted# the greatest number of #competitions# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"status of the city",
"city.status"
],
[
"status of the city",
"city.position"
],
[
"status of the city",
"city.state"
],
[
"hosted",
"farm_competition.host_city_id"
],
[
"competitions",
"farm_competition.competition_id"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
],
[
"1",
"\"farm_competition.host_city_id\""
],
[
"2",
"\"farm_competition.competition_id\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
what is the #status of the city# that has #hosted# the most competitions? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"status of the city",
"city.status"
],
[
"status of the city",
"city.position"
],
[
"status of the city",
"city.state"
],
[
"hosted",
"farm_competition.host_city_id"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
],
[
"1",
"\"farm_competition.host_city_id\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
please show the #themes of competitions with host cities# having #populations# larger than 1000. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","topic","subject"],"competition_record... | [
[
"themes of competitions with host cities",
"farm_competition.theme"
],
[
"themes of competitions with host cities",
"farm_competition.topic"
],
[
"themes of competitions with host cities",
"farm_competition.subject"
],
[
"populations",
"city.population"
]
] | [
[
"0",
"\"farm_competition.theme\""
],
[
"0",
"\"farm_competition.topic\""
],
[
"0",
"\"farm_competition.subject\""
],
[
"1",
"\"city.population\""
]
] | [
[
"farm_competition.topic",
"farm_competition.subject"
],
[
"farm_competition.theme",
"farm_competition.subject"
],
[
"farm_competition.topic",
"farm_competition.theme"
]
] |
what are the #themes of competitions# that have corresponding host cities with more than 1000 residents? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","topic","subject"],"competition_record... | [
[
"themes of competitions",
"farm_competition.theme"
],
[
"themes of competitions",
"farm_competition.topic"
],
[
"themes of competitions",
"farm_competition.subject"
]
] | [
[
"0",
"\"farm_competition.theme\""
],
[
"0",
"\"farm_competition.topic\""
],
[
"0",
"\"farm_competition.subject\""
]
] | [
[
"farm_competition.topic",
"farm_competition.subject"
],
[
"farm_competition.theme",
"farm_competition.subject"
],
[
"farm_competition.topic",
"farm_competition.theme"
]
] |
please show the different #statuses of cities# and the #average population of cities# with each status. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","resident_number","inhabitants"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"comp... | [
[
"statuses of cities",
"city.status"
],
[
"average population of cities",
"city.population"
],
[
"average population of cities",
"city.resident_number"
],
[
"average population of cities",
"city.inhabitants"
]
] | [
[
"0",
"\"city.status\""
],
[
"1",
"\"city.population\""
],
[
"1",
"\"city.resident_number\""
],
[
"1",
"\"city.inhabitants\""
]
] | [
[
"city.resident_number",
"city.inhabitants"
],
[
"city.population",
"city.inhabitants"
],
[
"city.resident_number",
"city.population"
]
] |
please show the different #statuses# , ordered by the number of cities that have each. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"statuses",
"city.status"
],
[
"statuses",
"city.position"
],
[
"statuses",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
return the different #statuses of cities# , ascending by frequency. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"statuses of cities",
"city.status"
],
[
"statuses of cities",
"city.position"
],
[
"statuses of cities",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
list the most common type of #status# across cities. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"Status",
"city.status"
],
[
"Status",
"city.position"
],
[
"Status",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
list the #name# , #born state# and #age of the heads of departments# ordered by #age# . | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","hometown","birthplace"],"management":["department_id","head_id","temporary_acting"]} | [
[
"name",
"head.name"
],
[
"born state",
"head.born_state"
],
[
"born state",
"head.hometown"
],
[
"born state",
"head.birthplace"
],
[
"age of the heads of departments",
"head.age"
],
[
"age",
"head.age"
]
] | [
[
"0",
"\"head.name\""
],
[
"1",
"\"head.born_state\""
],
[
"1",
"\"head.hometown\""
],
[
"1",
"\"head.birthplace\""
],
[
"2",
"\"head.age\""
],
[
"3",
"\"head.age\""
]
] | [
[
"head.hometown",
"head.birthplace"
],
[
"head.born_state",
"head.birthplace"
],
[
"head.hometown",
"head.born_state"
]
] |
list the #creation year# , #name# and #budget of each department# . | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","funds_in_billions","allocated_budget"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"creation year",
"department.creation"
],
[
"name",
"department.name"
],
[
"budget of each department",
"department.budget_in_billions"
],
[
"budget of each department",
"department.funds_in_billions"
],
[
"budget of each department",
"department.allocated_b... | [
[
"0",
"\"department.creation\""
],
[
"1",
"\"department.name\""
],
[
"2",
"\"department.budget_in_billions\""
],
[
"2",
"\"department.funds_in_billions\""
],
[
"2",
"\"department.allocated_budget\""
]
] | [
[
"department.funds_in_billions",
"department.allocated_budget"
],
[
"department.budget_in_billions",
"department.allocated_budget"
],
[
"department.funds_in_billions",
"department.budget_in_billions"
]
] |
what is the #average number of employees of the departments# whose #rank# is between 10 and 15? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","employee_count","staff_size"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"average number of employees of the departments",
"department.num_employees"
],
[
"average number of employees of the departments",
"department.employee_count"
],
[
"average number of employees of the departments",
"department.staff_size"
],
[
"rank",
"department.rankin... | [
[
"0",
"\"department.num_employees\""
],
[
"0",
"\"department.employee_count\""
],
[
"0",
"\"department.staff_size\""
],
[
"1",
"\"department.ranking\""
]
] | [
[
"department.employee_count",
"department.staff_size"
],
[
"department.num_employees",
"department.staff_size"
],
[
"department.employee_count",
"department.num_employees"
]
] |
what are the #names of the heads# who are #born# outside the california state? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","full_name","title"],"management":["department_id","head_id","temporary_acting"]} | [
[
"names of the heads",
"head.name"
],
[
"names of the heads",
"head.full_name"
],
[
"names of the heads",
"head.title"
],
[
"born",
"head.born_state"
]
] | [
[
"0",
"\"head.name\""
],
[
"0",
"\"head.full_name\""
],
[
"0",
"\"head.title\""
],
[
"1",
"\"head.born_state\""
]
] | [
[
"head.full_name",
"head.title"
],
[
"head.name",
"head.title"
],
[
"head.full_name",
"head.name"
]
] |
what are the distinct #creation years of the departments# managed by a secretary born in state 'alabama'? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","establishment","founding"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"creation years of the departments",
"department.creation"
],
[
"creation years of the departments",
"department.establishment"
],
[
"creation years of the departments",
"department.founding"
]
] | [
[
"0",
"\"department.creation\""
],
[
"0",
"\"department.establishment\""
],
[
"0",
"\"department.founding\""
]
] | [
[
"department.establishment",
"department.founding"
],
[
"department.creation",
"department.founding"
],
[
"department.establishment",
"department.creation"
]
] |
what are the #names of the states# where at least 3 heads were born? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","hometown","birthplace"],"management":["department_id","head_id","temporary_acting"]} | [
[
"names of the states",
"head.born_state"
],
[
"names of the states",
"head.hometown"
],
[
"names of the states",
"head.birthplace"
]
] | [
[
"0",
"\"head.born_state\""
],
[
"0",
"\"head.hometown\""
],
[
"0",
"\"head.birthplace\""
]
] | [
[
"head.hometown",
"head.birthplace"
],
[
"head.born_state",
"head.birthplace"
],
[
"head.hometown",
"head.born_state"
]
] |
in which #year# were most departments established? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","establishment","founding"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"year",
"department.creation"
],
[
"year",
"department.establishment"
],
[
"year",
"department.founding"
]
] | [
[
"0",
"\"department.creation\""
],
[
"0",
"\"department.establishment\""
],
[
"0",
"\"department.founding\""
]
] | [
[
"department.establishment",
"department.founding"
],
[
"department.creation",
"department.founding"
],
[
"department.establishment",
"department.creation"
]
] |
show the #name# and #number of employees for the departments# managed by heads whose #temporary acting# value is 'yes'? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","employee_count","staff_size"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"name",
"department.name"
],
[
"number of employees for the departments",
"department.num_employees"
],
[
"number of employees for the departments",
"department.employee_count"
],
[
"number of employees for the departments",
"department.staff_size"
],
[
"tempora... | [
[
"0",
"\"department.name\""
],
[
"1",
"\"department.num_employees\""
],
[
"1",
"\"department.employee_count\""
],
[
"1",
"\"department.staff_size\""
],
[
"2",
"\"management.temporary_acting\""
]
] | [
[
"department.employee_count",
"department.staff_size"
],
[
"department.num_employees",
"department.staff_size"
],
[
"department.employee_count",
"department.num_employees"
]
] |
how many #acting statuses# are there? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting","interim","provisional"]} | [
[
"acting statuses",
"management.temporary_acting"
],
[
"acting statuses",
"management.interim"
],
[
"acting statuses",
"management.provisional"
]
] | [
[
"0",
"\"management.temporary_acting\""
],
[
"0",
"\"management.interim\""
],
[
"0",
"\"management.provisional\""
]
] | [
[
"management.interim",
"management.provisional"
],
[
"management.temporary_acting",
"management.provisional"
],
[
"management.interim",
"management.temporary_acting"
]
] |
what are the distinct #ages of the heads# who are acting? | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","years_old","age_in_years"],"management":["department_id","head_id","temporary_acting"]} | [
[
"ages of the heads",
"head.age"
],
[
"ages of the heads",
"head.years_old"
],
[
"ages of the heads",
"head.age_in_years"
]
] | [
[
"0",
"\"head.age\""
],
[
"0",
"\"head.years_old\""
],
[
"0",
"\"head.age_in_years\""
]
] | [
[
"head.years_old",
"head.age_in_years"
],
[
"head.age",
"head.age_in_years"
],
[
"head.years_old",
"head.age"
]
] |
list the #states# where both the secretary of 'treasury' department and the secretary of 'homeland security' were born. | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","hometown","birthplace"],"management":["department_id","head_id","temporary_acting"]} | [
[
"states",
"head.born_state"
],
[
"states",
"head.hometown"
],
[
"states",
"head.birthplace"
]
] | [
[
"0",
"\"head.born_state\""
],
[
"0",
"\"head.hometown\""
],
[
"0",
"\"head.birthplace\""
]
] | [
[
"head.hometown",
"head.birthplace"
],
[
"head.born_state",
"head.birthplace"
],
[
"head.hometown",
"head.born_state"
]
] |
which department has more than 1 head at a time? list the #id# , #name# and the #number of heads# . | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees","division_id","section_id"],"head":["head_id","name","born_state","age"],"management":["department_id","head_id","temporary_acting"]} | [
[
"id",
"department.department_id"
],
[
"id",
"department.division_id"
],
[
"id",
"department.section_id"
],
[
"name",
"department.name"
],
[
"number of heads",
"management.head_id"
]
] | [
[
"0",
"\"department.department_id\""
],
[
"0",
"\"department.division_id\""
],
[
"0",
"\"department.section_id\""
],
[
"1",
"\"department.name\""
],
[
"2",
"\"management.head_id\""
]
] | [
[
"department.division_id",
"department.section_id"
],
[
"department.department_id",
"department.section_id"
],
[
"department.division_id",
"department.department_id"
]
] |
which head's #name# has the substring 'ha'? list the #id# and name. | {"department":["department_id","name","creation","ranking","budget_in_billions","num_employees"],"head":["head_id","name","born_state","age","full_name","title"],"management":["department_id","head_id","temporary_acting"]} | [
[
"id",
"head.head_id"
],
[
"name",
"head.name"
],
[
"name",
"head.full_name"
],
[
"name",
"head.title"
]
] | [
[
"0",
"\"head.head_id\""
],
[
"1",
"\"head.name\""
],
[
"1",
"\"head.full_name\""
],
[
"1",
"\"head.title\""
]
] | [
[
"head.full_name",
"head.title"
],
[
"head.name",
"head.title"
],
[
"head.full_name",
"head.name"
]
] |
list the #total number of horses on farms# in ascending order. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","horse_quantity","equine_total"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"comp... | [
[
"total number of horses on farms",
"farm.total_horses"
],
[
"total number of horses on farms",
"farm.horse_quantity"
],
[
"total number of horses on farms",
"farm.equine_total"
]
] | [
[
"0",
"\"farm.total_horses\""
],
[
"0",
"\"farm.horse_quantity\""
],
[
"0",
"\"farm.equine_total\""
]
] | [
[
"farm.horse_quantity",
"farm.equine_total"
],
[
"farm.total_horses",
"farm.equine_total"
],
[
"farm.horse_quantity",
"farm.total_horses"
]
] |
what is the #total horses# record for each farm, sorted ascending? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","horse_quantity","equine_total"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"comp... | [
[
"total horses",
"farm.total_horses"
],
[
"total horses",
"farm.horse_quantity"
],
[
"total horses",
"farm.equine_total"
]
] | [
[
"0",
"\"farm.total_horses\""
],
[
"0",
"\"farm.horse_quantity\""
],
[
"0",
"\"farm.equine_total\""
]
] | [
[
"farm.horse_quantity",
"farm.equine_total"
],
[
"farm.total_horses",
"farm.equine_total"
],
[
"farm.horse_quantity",
"farm.total_horses"
]
] |
what are the #hosts of competitions# whose #theme# is not "aliens"? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","organizers","conductors"],"competitio... | [
[
"hosts of competitions",
"farm_competition.hosts"
],
[
"hosts of competitions",
"farm_competition.organizers"
],
[
"hosts of competitions",
"farm_competition.conductors"
],
[
"theme",
"farm_competition.theme"
]
] | [
[
"0",
"\"farm_competition.hosts\""
],
[
"0",
"\"farm_competition.organizers\""
],
[
"0",
"\"farm_competition.conductors\""
],
[
"1",
"\"farm_competition.theme\""
]
] | [
[
"farm_competition.organizers",
"farm_competition.conductors"
],
[
"farm_competition.hosts",
"farm_competition.conductors"
],
[
"farm_competition.organizers",
"farm_competition.hosts"
]
] |
return the #hosts of competitions# for which the #theme# is not aliens? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","organizers","conductors"],"competitio... | [
[
"hosts of competitions",
"farm_competition.hosts"
],
[
"hosts of competitions",
"farm_competition.organizers"
],
[
"hosts of competitions",
"farm_competition.conductors"
],
[
"theme",
"farm_competition.theme"
]
] | [
[
"0",
"\"farm_competition.hosts\""
],
[
"0",
"\"farm_competition.organizers\""
],
[
"0",
"\"farm_competition.conductors\""
],
[
"1",
"\"farm_competition.theme\""
]
] | [
[
"farm_competition.organizers",
"farm_competition.conductors"
],
[
"farm_competition.hosts",
"farm_competition.conductors"
],
[
"farm_competition.organizers",
"farm_competition.hosts"
]
] |
what are the #themes of farm competitions# sorted by #year# in ascending order? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","topic","subject"],"competition_record... | [
[
"themes of farm competitions",
"farm_competition.theme"
],
[
"themes of farm competitions",
"farm_competition.topic"
],
[
"themes of farm competitions",
"farm_competition.subject"
],
[
"year",
"farm_competition.year"
]
] | [
[
"0",
"\"farm_competition.theme\""
],
[
"0",
"\"farm_competition.topic\""
],
[
"0",
"\"farm_competition.subject\""
],
[
"1",
"\"farm_competition.year\""
]
] | [
[
"farm_competition.topic",
"farm_competition.subject"
],
[
"farm_competition.theme",
"farm_competition.subject"
],
[
"farm_competition.topic",
"farm_competition.theme"
]
] |
return the #themes of farm competitions# , sorted by #year# ascending. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","topic","subject"],"competition_record... | [
[
"themes of farm competitions",
"farm_competition.theme"
],
[
"themes of farm competitions",
"farm_competition.topic"
],
[
"themes of farm competitions",
"farm_competition.subject"
],
[
"year",
"farm_competition.year"
]
] | [
[
"0",
"\"farm_competition.theme\""
],
[
"0",
"\"farm_competition.topic\""
],
[
"0",
"\"farm_competition.subject\""
],
[
"1",
"\"farm_competition.year\""
]
] | [
[
"farm_competition.topic",
"farm_competition.subject"
],
[
"farm_competition.theme",
"farm_competition.subject"
],
[
"farm_competition.topic",
"farm_competition.theme"
]
] |
give the #average number of working horses on farms# with more than 5000 #total horses# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","utility_horses","draft_horses"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"comp... | [
[
"average number of working horses on farms",
"farm.working_horses"
],
[
"average number of working horses on farms",
"farm.utility_horses"
],
[
"average number of working horses on farms",
"farm.draft_horses"
],
[
"total horses",
"farm.total_horses"
]
] | [
[
"0",
"\"farm.working_horses\""
],
[
"0",
"\"farm.utility_horses\""
],
[
"0",
"\"farm.draft_horses\""
],
[
"1",
"\"farm.total_horses\""
]
] | [
[
"farm.utility_horses",
"farm.draft_horses"
],
[
"farm.working_horses",
"farm.draft_horses"
],
[
"farm.utility_horses",
"farm.working_horses"
]
] |
what are the #maximum and minimum number of cows# across all farms. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","female_cattle","heifers"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competitio... | [
[
"maximum and minimum number of cows",
"farm.cows"
],
[
"maximum and minimum number of cows",
"farm.female_cattle"
],
[
"maximum and minimum number of cows",
"farm.heifers"
]
] | [
[
"0",
"\"farm.cows\""
],
[
"0",
"\"farm.female_cattle\""
],
[
"0",
"\"farm.heifers\""
]
] | [
[
"farm.female_cattle",
"farm.heifers"
],
[
"farm.cows",
"farm.heifers"
],
[
"farm.female_cattle",
"farm.cows"
]
] |
return the #maximum and minimum number of cows# across all farms. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats","female_cattle","heifers"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competitio... | [
[
"maximum and minimum number of cows",
"farm.cows"
],
[
"maximum and minimum number of cows",
"farm.female_cattle"
],
[
"maximum and minimum number of cows",
"farm.heifers"
]
] | [
[
"0",
"\"farm.cows\""
],
[
"0",
"\"farm.female_cattle\""
],
[
"0",
"\"farm.heifers\""
]
] | [
[
"farm.female_cattle",
"farm.heifers"
],
[
"farm.cows",
"farm.heifers"
],
[
"farm.female_cattle",
"farm.cows"
]
] |
how many different #statuses# do cities have? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"statuses",
"city.status"
],
[
"statuses",
"city.position"
],
[
"statuses",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
count the number of different #statuses# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"statuses",
"city.status"
],
[
"statuses",
"city.position"
],
[
"statuses",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
list #official names of cities# in descending order of #population# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities",
"city.official_name"
],
[
"official names of cities",
"city.name"
],
[
"official names of cities",
"city.appellation"
],
[
"population",
"city.population"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
],
[
"1",
"\"city.population\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
what are the #official names of cities# , ordered descending by population? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities",
"city.official_name"
],
[
"official names of cities",
"city.name"
],
[
"official names of cities",
"city.appellation"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
list the #official name# and #status of the city with the largest population# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"official name",
"city.official_name"
],
[
"status of the city with the largest population",
"city.status"
],
[
"status of the city with the largest population",
"city.position"
],
[
"status of the city with the largest population",
"city.state"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"1",
"\"city.status\""
],
[
"1",
"\"city.position\""
],
[
"1",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
show the #years# and the #official names of the host cities# of competitions. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"years",
"farm_competition.year"
],
[
"official names of the host cities",
"city.official_name"
],
[
"official names of the host cities",
"city.name"
],
[
"official names of the host cities",
"city.appellation"
]
] | [
[
"0",
"\"farm_competition.year\""
],
[
"1",
"\"city.official_name\""
],
[
"1",
"\"city.name\""
],
[
"1",
"\"city.appellation\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
give the #years# and #official names of the cities of each competition# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"years",
"farm_competition.year"
],
[
"official names of the cities of each competition",
"city.official_name"
],
[
"official names of the cities of each competition",
"city.name"
],
[
"official names of the cities of each competition",
"city.appellation"
]
] | [
[
"0",
"\"farm_competition.year\""
],
[
"1",
"\"city.official_name\""
],
[
"1",
"\"city.name\""
],
[
"1",
"\"city.appellation\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
show the #official names of the cities# that have #hosted# more than one #competition# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of the cities",
"city.official_name"
],
[
"official names of the cities",
"city.name"
],
[
"official names of the cities",
"city.appellation"
],
[
"hosted",
"farm_competition.host_city_id"
],
[
"competition",
"farm_competition.competition_id"... | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
],
[
"1",
"\"farm_competition.host_city_id\""
],
[
"2",
"\"farm_competition.competition_id\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
what are the #official names of cities# that have #hosted# more than one competition? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities",
"city.official_name"
],
[
"official names of cities",
"city.name"
],
[
"official names of cities",
"city.appellation"
],
[
"hosted",
"farm_competition.host_city_id"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
],
[
"1",
"\"farm_competition.host_city_id\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
show the #status of the city# that has #hosted# the greatest number of #competitions# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"status of the city",
"city.status"
],
[
"status of the city",
"city.position"
],
[
"status of the city",
"city.state"
],
[
"hosted",
"farm_competition.host_city_id"
],
[
"competitions",
"farm_competition.competition_id"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
],
[
"1",
"\"farm_competition.host_city_id\""
],
[
"2",
"\"farm_competition.competition_id\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
what is the #status of the city# that has #hosted# the most competitions? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"status of the city",
"city.status"
],
[
"status of the city",
"city.position"
],
[
"status of the city",
"city.state"
],
[
"hosted",
"farm_competition.host_city_id"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
],
[
"1",
"\"farm_competition.host_city_id\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
please show the #themes of competitions with host cities# having #populations# larger than 1000. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","topic","subject"],"competition_record... | [
[
"themes of competitions with host cities",
"farm_competition.theme"
],
[
"themes of competitions with host cities",
"farm_competition.topic"
],
[
"themes of competitions with host cities",
"farm_competition.subject"
],
[
"populations",
"city.population"
]
] | [
[
"0",
"\"farm_competition.theme\""
],
[
"0",
"\"farm_competition.topic\""
],
[
"0",
"\"farm_competition.subject\""
],
[
"1",
"\"city.population\""
]
] | [
[
"farm_competition.topic",
"farm_competition.subject"
],
[
"farm_competition.theme",
"farm_competition.subject"
],
[
"farm_competition.topic",
"farm_competition.theme"
]
] |
what are the #themes of competitions# that have corresponding host cities with more than 1000 residents? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts","topic","subject"],"competition_record... | [
[
"themes of competitions",
"farm_competition.theme"
],
[
"themes of competitions",
"farm_competition.topic"
],
[
"themes of competitions",
"farm_competition.subject"
]
] | [
[
"0",
"\"farm_competition.theme\""
],
[
"0",
"\"farm_competition.topic\""
],
[
"0",
"\"farm_competition.subject\""
]
] | [
[
"farm_competition.topic",
"farm_competition.subject"
],
[
"farm_competition.theme",
"farm_competition.subject"
],
[
"farm_competition.topic",
"farm_competition.theme"
]
] |
please show the different #statuses# , ordered by the number of cities that have each. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"statuses",
"city.status"
],
[
"statuses",
"city.position"
],
[
"statuses",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
return the different #statuses of cities# , ascending by frequency. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"statuses of cities",
"city.status"
],
[
"statuses of cities",
"city.position"
],
[
"statuses of cities",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
list the most common type of #status# across cities. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"Status",
"city.status"
],
[
"Status",
"city.position"
],
[
"Status",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
what is the most common #status# across all cities? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"status",
"city.status"
],
[
"status",
"city.position"
],
[
"status",
"city.state"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
list the #official names of cities# that have not #held any competition# . | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities",
"city.official_name"
],
[
"official names of cities",
"city.name"
],
[
"official names of cities",
"city.appellation"
],
[
"held any competition",
"farm_competition.host_city_id"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
],
[
"1",
"\"farm_competition.host_city_id\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
what are the #official names of cities# that have not hosted a farm competition? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities",
"city.official_name"
],
[
"official names of cities",
"city.name"
],
[
"official names of cities",
"city.appellation"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
show the #status# shared by #cities with population# bigger than 1500 and smaller than 500. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"status",
"city.status"
],
[
"status",
"city.position"
],
[
"status",
"city.state"
],
[
"cities with population",
"city.population"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
],
[
"1",
"\"city.population\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
which #statuses# correspond to both cities that have a #population over 1500# and cities that have a population lower than 500? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","position","state"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_recor... | [
[
"statuses",
"city.status"
],
[
"statuses",
"city.position"
],
[
"statuses",
"city.state"
],
[
"population over 1500",
"city.population"
]
] | [
[
"0",
"\"city.status\""
],
[
"0",
"\"city.position\""
],
[
"0",
"\"city.state\""
],
[
"1",
"\"city.population\""
]
] | [
[
"city.position",
"city.state"
],
[
"city.status",
"city.state"
],
[
"city.position",
"city.status"
]
] |
find the #official names of cities with population# bigger than 1500 or smaller than 500. | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities with population",
"city.official_name"
],
[
"official names of cities with population",
"city.name"
],
[
"official names of cities with population",
"city.appellation"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
what are the #official names of cities# that have #population# over 1500 or less than 500? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","name","appellation"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts"],"competition_rec... | [
[
"official names of cities",
"city.official_name"
],
[
"official names of cities",
"city.name"
],
[
"official names of cities",
"city.appellation"
],
[
"population",
"city.population"
]
] | [
[
"0",
"\"city.official_name\""
],
[
"0",
"\"city.name\""
],
[
"0",
"\"city.appellation\""
],
[
"1",
"\"city.population\""
]
] | [
[
"city.name",
"city.appellation"
],
[
"city.official_name",
"city.appellation"
],
[
"city.name",
"city.official_name"
]
] |
show the #census ranking of cities# whose #status# are not "village". | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","demographic_ranking","population_rank"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts... | [
[
"census ranking of cities",
"city.census_ranking"
],
[
"census ranking of cities",
"city.demographic_ranking"
],
[
"census ranking of cities",
"city.population_rank"
],
[
"status",
"city.status"
]
] | [
[
"0",
"\"city.census_ranking\""
],
[
"0",
"\"city.demographic_ranking\""
],
[
"0",
"\"city.population_rank\""
],
[
"1",
"\"city.status\""
]
] | [
[
"city.demographic_ranking",
"city.population_rank"
],
[
"city.census_ranking",
"city.population_rank"
],
[
"city.demographic_ranking",
"city.census_ranking"
]
] |
what are the #census rankings of cities# that do not have the status "village"? | {"city":["city_id","official_name","status","area_km_2","population","census_ranking","demographic_ranking","population_rank"],"farm":["farm_id","year","total_horses","working_horses","total_cattle","oxen","bulls","cows","pigs","sheep_and_goats"],"farm_competition":["competition_id","year","theme","host_city_id","hosts... | [
[
"census rankings of cities",
"city.census_ranking"
],
[
"census rankings of cities",
"city.demographic_ranking"
],
[
"census rankings of cities",
"city.population_rank"
]
] | [
[
"0",
"\"city.census_ranking\""
],
[
"0",
"\"city.demographic_ranking\""
],
[
"0",
"\"city.population_rank\""
]
] | [
[
"city.demographic_ranking",
"city.population_rank"
],
[
"city.census_ranking",
"city.population_rank"
],
[
"city.demographic_ranking",
"city.census_ranking"
]
] |
which #course# has most number of registered students? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details"],"courses":["course_id","course_name","course_descri... | [
[
"course",
"courses.course_name"
],
[
"course",
"courses.subject_name"
],
[
"course",
"courses.class_name"
]
] | [
[
"0",
"\"courses.course_name\""
],
[
"0",
"\"courses.subject_name\""
],
[
"0",
"\"courses.class_name\""
]
] | [
[
"courses.subject_name",
"courses.class_name"
],
[
"courses.course_name",
"courses.class_name"
],
[
"courses.subject_name",
"courses.course_name"
]
] |
what is #id of students# who registered some #courses# but the least number of courses in these students? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details"],"courses":["course_id","course_name","course_descri... | [
[
"id of students",
"student_course_registrations.student_id"
],
[
"id of students",
"student_course_registrations.enrollment_id"
],
[
"id of students",
"student_course_registrations.pupil_id"
],
[
"courses",
"student_course_registrations.course_id"
]
] | [
[
"0",
"\"student_course_registrations.student_id\""
],
[
"0",
"\"student_course_registrations.enrollment_id\""
],
[
"0",
"\"student_course_registrations.pupil_id\""
],
[
"1",
"\"student_course_registrations.course_id\""
]
] | [
[
"student_course_registrations.enrollment_id",
"student_course_registrations.pupil_id"
],
[
"student_course_registrations.student_id",
"student_course_registrations.pupil_id"
],
[
"student_course_registrations.enrollment_id",
"student_course_registrations.student_id"
]
] |
what are the #ids of the students# who #registered for some courses# but had the least number of courses for all students? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details"],"courses":["course_id","course_name","course_descri... | [
[
"ids of the students",
"student_course_registrations.student_id"
],
[
"ids of the students",
"student_course_registrations.enrollment_id"
],
[
"ids of the students",
"student_course_registrations.pupil_id"
],
[
"registered for some courses",
"student_course_registration... | [
[
"0",
"\"student_course_registrations.student_id\""
],
[
"0",
"\"student_course_registrations.enrollment_id\""
],
[
"0",
"\"student_course_registrations.pupil_id\""
],
[
"1",
"\"student_course_registrations.course_id\""
]
] | [
[
"student_course_registrations.enrollment_id",
"student_course_registrations.pupil_id"
],
[
"student_course_registrations.student_id",
"student_course_registrations.pupil_id"
],
[
"student_course_registrations.enrollment_id",
"student_course_registrations.student_id"
]
] |
what are the #first name# and last name of all candidates? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password","given_name","forename"],"students":["student_id","student_details"],"courses":["course_id","cou... | [
[
"first name",
"people.first_name"
],
[
"first name",
"people.given_name"
],
[
"first name",
"people.forename"
]
] | [
[
"0",
"\"people.first_name\""
],
[
"0",
"\"people.given_name\""
],
[
"0",
"\"people.forename\""
]
] | [
[
"people.given_name",
"people.forename"
],
[
"people.first_name",
"people.forename"
],
[
"people.given_name",
"people.first_name"
]
] |
list the #id of students# who never attends courses? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details","roll_number","admission_number"],"courses":["course... | [
[
"id of students",
"students.student_id"
],
[
"id of students",
"students.roll_number"
],
[
"id of students",
"students.admission_number"
]
] | [
[
"0",
"\"students.student_id\""
],
[
"0",
"\"students.roll_number\""
],
[
"0",
"\"students.admission_number\""
]
] | [
[
"students.roll_number",
"students.admission_number"
],
[
"students.student_id",
"students.admission_number"
],
[
"students.roll_number",
"students.student_id"
]
] |
what are the #ids# of every student who has never attended a course? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details","roll_number","admission_number"],"courses":["course... | [
[
"ids",
"students.student_id"
],
[
"ids",
"students.roll_number"
],
[
"ids",
"students.admission_number"
]
] | [
[
"0",
"\"students.student_id\""
],
[
"0",
"\"students.roll_number\""
],
[
"0",
"\"students.admission_number\""
]
] | [
[
"students.roll_number",
"students.admission_number"
],
[
"students.student_id",
"students.admission_number"
],
[
"students.roll_number",
"students.student_id"
]
] |
list the #id of students# who attended some courses? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details"],"courses":["course_id","course_name","course_descri... | [
[
"id of students",
"student_course_attendance.student_id"
],
[
"id of students",
"student_course_attendance.learner_id"
],
[
"id of students",
"student_course_attendance.pupil_id"
]
] | [
[
"0",
"\"student_course_attendance.student_id\""
],
[
"0",
"\"student_course_attendance.learner_id\""
],
[
"0",
"\"student_course_attendance.pupil_id\""
]
] | [
[
"student_course_attendance.learner_id",
"student_course_attendance.pupil_id"
],
[
"student_course_attendance.student_id",
"student_course_attendance.pupil_id"
],
[
"student_course_attendance.learner_id",
"student_course_attendance.student_id"
]
] |
what are the #ids of all students# who have #attended# at least one course? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details"],"courses":["course_id","course_name","course_descri... | [
[
"ids of all students",
"student_course_attendance.student_id"
],
[
"ids of all students",
"student_course_attendance.learner_id"
],
[
"ids of all students",
"student_course_attendance.pupil_id"
],
[
"attended",
"student_course_attendance.date_of_attendance"
]
] | [
[
"0",
"\"student_course_attendance.student_id\""
],
[
"0",
"\"student_course_attendance.learner_id\""
],
[
"0",
"\"student_course_attendance.pupil_id\""
],
[
"1",
"\"student_course_attendance.date_of_attendance\""
]
] | [
[
"student_course_attendance.learner_id",
"student_course_attendance.pupil_id"
],
[
"student_course_attendance.student_id",
"student_course_attendance.pupil_id"
],
[
"student_course_attendance.learner_id",
"student_course_attendance.student_id"
]
] |
what are the #ids of all students for courses# and what are the names of those courses? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details"],"courses":["course_id","course_name","course_descri... | [
[
"ids of all students for courses",
"student_course_registrations.student_id"
],
[
"ids of all students for courses",
"student_course_registrations.enrollment_id"
],
[
"ids of all students for courses",
"student_course_registrations.pupil_id"
]
] | [
[
"0",
"\"student_course_registrations.student_id\""
],
[
"0",
"\"student_course_registrations.enrollment_id\""
],
[
"0",
"\"student_course_registrations.pupil_id\""
]
] | [
[
"student_course_registrations.enrollment_id",
"student_course_registrations.pupil_id"
],
[
"student_course_registrations.student_id",
"student_course_registrations.pupil_id"
],
[
"student_course_registrations.enrollment_id",
"student_course_registrations.student_id"
]
] |
what is #detail of the student# who most recently registered course? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details","personal_information","biography"],"courses":["cour... | [
[
"detail of the student",
"students.student_details"
],
[
"detail of the student",
"students.personal_information"
],
[
"detail of the student",
"students.biography"
]
] | [
[
"0",
"\"students.student_details\""
],
[
"0",
"\"students.personal_information\""
],
[
"0",
"\"students.biography\""
]
] | [
[
"students.personal_information",
"students.biography"
],
[
"students.student_details",
"students.biography"
],
[
"students.personal_information",
"students.student_details"
]
] |
find #id of the candidate# whose #email# is stanley.monahan@example.org? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details"],"courses":["course_id","course_name","course_descri... | [
[
"id of the candidate",
"candidates.candidate_id"
],
[
"id of the candidate",
"candidates.id_number"
],
[
"id of the candidate",
"candidates.applicant_id"
],
[
"email",
"people.email_address"
]
] | [
[
"0",
"\"candidates.candidate_id\""
],
[
"0",
"\"candidates.id_number\""
],
[
"0",
"\"candidates.applicant_id\""
],
[
"1",
"\"people.email_address\""
]
] | [
[
"candidates.id_number",
"candidates.applicant_id"
],
[
"candidates.candidate_id",
"candidates.applicant_id"
],
[
"candidates.id_number",
"candidates.candidate_id"
]
] |
what is the #id of the candidate# whose #email# is stanley.monahan@example.org? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details"],"courses":["course_id","course_name","course_descri... | [
[
"id of the candidate",
"candidates.candidate_id"
],
[
"id of the candidate",
"candidates.id_number"
],
[
"id of the candidate",
"candidates.applicant_id"
],
[
"email",
"people.email_address"
]
] | [
[
"0",
"\"candidates.candidate_id\""
],
[
"0",
"\"candidates.id_number\""
],
[
"0",
"\"candidates.applicant_id\""
],
[
"1",
"\"people.email_address\""
]
] | [
[
"candidates.id_number",
"candidates.applicant_id"
],
[
"candidates.candidate_id",
"candidates.applicant_id"
],
[
"candidates.id_number",
"candidates.candidate_id"
]
] |
find #id of the candidate# who most recently accessed the course? | {"addresses":["address_id","line_1","line_2","city","zip_postcode","state_province_county","country"],"people":["person_id","first_name","middle_name","last_name","cell_mobile_number","email_address","login_name","password"],"students":["student_id","student_details"],"courses":["course_id","course_name","course_descri... | [
[
"id of the candidate",
"candidate_assessments.candidate_id"
],
[
"id of the candidate",
"candidate_assessments.applicant_id"
],
[
"id of the candidate",
"candidate_assessments.student_id"
]
] | [
[
"0",
"\"candidate_assessments.candidate_id\""
],
[
"0",
"\"candidate_assessments.applicant_id\""
],
[
"0",
"\"candidate_assessments.student_id\""
]
] | [
[
"candidate_assessments.applicant_id",
"candidate_assessments.student_id"
],
[
"candidate_assessments.candidate_id",
"candidate_assessments.student_id"
],
[
"candidate_assessments.applicant_id",
"candidate_assessments.candidate_id"
]
] |
End of preview.
griffith-bigdata/schema_linking_dataset(複製)
データの内容
質問文とデータベースのスキーマを対応づける(スキーマリンキング)ための text-to-SQL のデータ。調査メモによると、質問文に #…# の印が入っており、印の付け方と元データとの対応は未確認。元のカードは空で、この説明は列名と調査メモから書いた。
データの概要
| 項目 | 値 |
|---|---|
| 行数・列数 | 不明(データセットビューアで読めない形式。ファイルの内訳だけを示す) |
| 容量 | 63.77 MB(ファイル 6 本) |
| ファイルの形式 | json 4 |
| 公開 | public |
全データセットの一覧は HYUKI5/dataset-catalog にある。
複製について
griffith-bigdata/schema_linking_dataset をリビジョン 2b818c3f8d37004976d78cd4d097db6fa6f64d14 の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(convaiinnovations/laya)の微調整に使う候補として、調査メモ(Laya 学習用データセット調査)に載せたデータを集めている。
出典
- 元のデータセット: https://huggingface.co/datasets/griffith-bigdata/schema_linking_dataset
- 複製したリビジョン:
2b818c3f8d37004976d78cd4d097db6fa6f64d14(2025-08-08 02:08:24+00:00) - 元のライセンス表記:
mit
論文
- 元のカードに論文へのリンクは見つからなかった
アノテーションの方法
元のカードにアノテーションの節が無かった。下の「調査メモの記述」と「元のカード」を参照。
微調整に使うときの注意
- 調査メモの台帳での区分: A(許諾型のライセンスだけで、疑義の注記が無い)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
- Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
- 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。
調査メモの記述
| メモ | 節 | ライセンス(記載) | 確認 | 注記 |
|---|---|---|---|---|
ontology_tables_schema_kg.md |
Q6. 質問文とスキーマの対応(Text-to-SQL のスキーマリンキング)と、イベントの引数の役割のラベルつきデータは何があるか (L194) | mit(HF タグ) | 確認済 | 原文注記: 作成元(Spider か)・作成方法がカードに無い。質問に #…# のマークが入った形で、マークの付与方法は未確認。件数は dev が Spider の dev(1,034)より多く、元データの対応は未確認 |
元のカード
(元のカードは空だった)
- Downloads last month
- 88