Dataset Viewer
Auto-converted to Parquet
db_id
stringclasses
140 values
question
stringlengths
16
224
op
stringclasses
10 values
sub_question_1
stringlengths
17
161
sub_question_2
stringlengths
21
141
department_management
How many heads of the departments are older than 56 ?
Aggregate
List 1 for each head of the departments that older than 56.
null
department_management
List 1 for each head of the departments that older than 56.
Scan
null
null
department_management
List the name, born state and age of the heads of departments ordered by age.
Sort
List the name, born state and age of the heads of departments.
null
department_management
List the name, born state and age of the heads of departments.
Scan
null
null
department_management
List the creation year, name and budget of each department.
Scan
null
null
department_management
What are the maximum and minimum budget of the departments?
Aggregate
What are the budgets of the departments?
null
department_management
What are the budgets of the departments?
Scan
null
null
department_management
What is the average number of employees of the departments whose rank is between 10 and 15?
Aggregate
What are the number of employees of the departments whose rank is between 10 and 15?
null
department_management
What are the number of employees of the departments whose rank is between 10 and 15?
Scan
null
null
department_management
What are the names of the heads who are born outside the California state?
Scan
null
null
department_management
What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?
Join
What are the ids of the departments managed by a secretary born in state 'Alabama'?
What are the ids and creation years of all department?
department_management
What are the ids and creation years of all department?
Scan
null
null
department_management
What are the ids of the departments managed by a secretary born in state 'Alabama'?
Join
What are the ids of secretaries that born in state 'Alabama'?
What are the secretary ids and department ids of all management.
department_management
What are the secretary ids and department ids of all management.
Scan
null
null
department_management
What are the ids of secretaries that born in state 'Alabama'?
Scan
null
null
department_management
What are the names of the states where at least 3 heads were born?
Filter
What are the different born states and the number of heads born there?
null
department_management
What are the different born states and the number of heads born there?
Aggregate
What are the born states of all heads?
null
department_management
What are the born states of all heads?
Scan
null
null
department_management
In which year were most departments established?
TopSort
What are the number of departments established for each establishment year?
null
department_management
What are the number of departments established for each establishment year?
Aggregate
What is the establishment year of all departments?
null
department_management
What is the establishment year of all departments?
Scan
null
null
department_management
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?
Join
Show the id for the departments managed by heads whose temporary acting value is 'Yes'.
Show the id, name and number of employees of all departments.
department_management
Show the id, name and number of employees of all departments.
Scan
null
null
department_management
Show the id for the departments managed by heads whose temporary acting value is 'Yes'.
Scan
null
null
department_management
How many acting statuses are there?
Aggregate
List the different acting statuses.
null
department_management
List the different acting statuses.
Scan
null
null
department_management
How many departments are led by heads who are not mentioned?
Aggregate
List 1 for each department led by heads who are not mentioned.
null
department_management
List 1 for each department led by heads who are not mentioned.
Except
Find the ids of all departments.
Find the different department ids that are led by heads who are mentioned.
department_management
Find the different department ids that are led by heads who are mentioned.
Aggregate
Find the department ids that are led by heads who are mentioned.
null
department_management
Find the department ids that are led by heads who are mentioned.
Scan
null
null
department_management
Find the ids of all departments.
Scan
null
null
department_management
What are the distinct ages of the heads who are acting?
Join
What are the ids of the heads who are acting?
What are the ids and ages of all heads?
department_management
What are the ids and ages of all heads?
Scan
null
null
department_management
What are the ids of the heads who are acting?
Scan
null
null
department_management
List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.
Intersect
List the state where the secretary of 'Treasury' department was born.
List the state where the secretary of 'Homeland Security' department was born.
department_management
List the state where the secretary of 'Homeland Security' department was born.
Join
List the secretary id of 'Homeland Security' department.
List the secretary ids and born states of all heads.
department_management
List the secretary ids and born states of all heads.
Scan
null
null
department_management
List the secretary id of 'Homeland Security' department.
Join
List the id of 'Homeland Security' department.
List the department ids and their secretary ids.
department_management
List the department ids and their secretary ids.
Scan
null
null
department_management
List the id of 'Homeland Security' department.
Scan
null
null
department_management
List the state where the secretary of 'Treasury' department was born.
Join
List the secretary id of 'Treasury' department.
List the secretary ids and born states of all heads.
department_management
List the secretary id of 'Treasury' department.
Join
List the id of 'Treasury' department.
List the department ids and their secretary ids.
department_management
List the id of 'Treasury' department.
Scan
null
null
department_management
Which head's name has the substring 'Ha'? List the id and name.
Scan
null
null
farm
How many farms are there?
Aggregate
List 1 for each farm.
null
farm
List 1 for each farm.
Scan
null
null
farm
List the total number of horses on farms in ascending order.
Sort
List the total number of horses of all farms.
null
farm
List the total number of horses of all farms.
Scan
null
null
farm
What are the hosts of competitions whose theme is not "Aliens"?
Scan
null
null
farm
Return the hosts of competitions for which the theme is not Aliens?
Scan
null
null
farm
What are the themes of farm competitions sorted by year in ascending order?
Sort
What are the themes and years of all farm competitions?
null
farm
What are the themes and years of all farm competitions?
Scan
null
null
farm
Give the average number of working horses on farms with more than 5000 total horses.
Aggregate
Give the number of working horses on farms with more than 5000 total horses.
null
farm
Give the number of working horses on farms with more than 5000 total horses.
Scan
null
null
farm
Return the maximum and minimum number of cows across all farms.
Aggregate
Return the number of cows on farms.
null
farm
Return the number of cows on farms.
Scan
null
null
farm
Count the number of different statuses.
Aggregate
List the different statuses.
null
farm
List the different statuses.
Scan
null
null
farm
What are the official names of cities, ordered descending by population?
Sort
What are the official names and population of all cities?
null
farm
What are the official names and population of all cities?
Scan
null
null
farm
List the official name and status of the city with the largest population.
TopSort
List the official name, status and population of all cities.
null
farm
List the official name, status and population of all cities.
Scan
null
null
farm
Show the years and the official names of the host cities of competitions.
Join
Show the years and the ids of the host cities of competitions.
Show the ids and official names of all cities.
farm
Show the ids and official names of all cities.
Scan
null
null
farm
Show the years and the ids of the host cities of competitions.
Scan
null
null
farm
Show the official names of the cities that have hosted more than one competition.
Filter
Show the the official names of the cities and the number of competitions have hosted for each host city id.
null
farm
Show the the official names of the cities and the number of competitions have hosted for each host city id.
Aggregate
Show the host city ids and official names of all competitions.
null
farm
Show the host city ids and official names of all competitions.
Join
Show the host city ids of all competitions.
Show the ids and official names of all the cities.
farm
Show the ids and official names of all the cities.
Scan
null
null
farm
Show the host city ids of all competitions.
Scan
null
null
farm
What is the status of the city that has hosted the most competitions?
TopSort
For each host city id, what is the status of the city and the number of competitions has hosted.
null
farm
For each host city id, what is the status of the city and the number of competitions has hosted.
Join
What are the different host city ids and the number of competitions has hosted?
What is the id and status of all cities?
farm
What is the id and status of all cities?
Scan
null
null
farm
What are the different host city ids and the number of competitions has hosted?
Aggregate
What is the host city id of all competitions?
null
farm
What is the host city id of all competitions?
Scan
null
null
farm
What are the themes of competitions that have corresponding host cities with more than 1000 residents?
Join
What are the city ids of cities with more than 1000 residents?
What are the themes and host cities ids of all competitions?
farm
What are the themes and host cities ids of all competitions?
Scan
null
null
farm
What are the city ids of cities with more than 1000 residents?
Scan
null
null
farm
Please show the different statuses of cities and the average population of cities with each status.
Aggregate
Please show the statuses and population of cities.
null
farm
Please show the statuses and population of cities.
Scan
null
null
farm
Return the different statuses of cities, ascending by frequency.
Sort
Return the different statuses and their frequency.
null
farm
Return the different statuses and their frequency.
Aggregate
Return the status of all cities.
null
farm
Return the status of all cities.
Scan
null
null
farm
List the most common type of Status across cities.
TopSort
List the different statuses and the number of cities that have each.
null
farm
List the different statuses and the number of cities that have each.
Aggregate
List the status of all cities.
null
farm
List the status of all cities.
Scan
null
null
farm
List the official names of cities that have not held any competition.
Except
List the city ids and official names of all cities.
List the host city ids of all competitions.
farm
List the host city ids of all competitions.
Scan
null
null
farm
List the city ids and official names of all cities.
Scan
null
null
farm
Show the status shared by cities with population bigger than 1500 and smaller than 500.
Intersect
Show the status by cities with population bigger than 1500.
Show the status by cities with population smaller than 500.
farm
Show the status by cities with population smaller than 500.
Scan
null
null
farm
Show the status by cities with population bigger than 1500.
Scan
null
null
farm
Find the official names of cities with population bigger than 1500 or smaller than 500.
Scan
null
null
farm
What are the official names of cities that have population over 1500 or less than 500?
Scan
null
null
farm
Show the census ranking of cities whose status are not "Village".
Scan
null
null
farm
What are the census rankings of cities that do not have the status "Village"?
Scan
null
null
student_assessment
What is the name of the course with the most registered students?
TopSort
What is the number of registered students for each course.
null
student_assessment
What is the number of registered students for each course.
Join
What is the number of registered students for each course id?
What is the id and name of all courses?
student_assessment
What is the id and name of all courses?
Scan
null
null
student_assessment
What is the number of registered students for each course id?
Aggregate
What is the course id of all student registrations?
null
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
55