Dataset Viewer
Auto-converted to Parquet Duplicate
id
string
db_id
string
question
string
qpl
sequence
qd
sequence
conversations
list
5d3ffd892ca09f6dffd55923294e8e0c5257cdff0216417e84943542451374b9_0
department_management
How many heads of the departments are older than 56 ?
[ "#1 = Scan Table [ head ] Predicate [ age > 56.0 ] Output [ 1 AS One ]", "#2 = Aggregate [ #1 ] Output [ countstar AS Count_Star ]" ]
[ "List 1 for each head of the departments that older than 56.", "How many heads of the departments are older than 56 ?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
5d3ffd892ca09f6dffd55923294e8e0c5257cdff0216417e84943542451374b9_1
department_management
List 1 for each head of the departments that older than 56.
[ "#1 = Scan Table [ head ] Predicate [ age > 56.0 ] Output [ 1 AS One ]" ]
[ "List 1 for each head of the departments that older than 56." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
40759deacb76f6ccac4d7f87c0662f90e2fa90da89b041172fb95e18d35b44ca_0
department_management
List the name, born state and age of the heads of departments ordered by age.
[ "#1 = Scan Table [ head ] Output [ name , born_state , age ]", "#2 = Sort [ #1 ] OrderBy [ age ASC ] Output [ name , born_state , age ]" ]
[ "List the name, born state and age of the heads of departments.", "List the name, born state and age of the heads of departments ordered by age." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
40759deacb76f6ccac4d7f87c0662f90e2fa90da89b041172fb95e18d35b44ca_1
department_management
List the name, born state and age of the heads of departments.
[ "#1 = Scan Table [ head ] Output [ name , born_state , age ]" ]
[ "List the name, born state and age of the heads of departments." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
aa79da355ec7c1a64f7e402cf1e797ab030ee709acad0ddf456d9e11bc5debf7_0
department_management
List the creation year, name and budget of each department.
[ "#1 = Scan Table [ department ] Output [ Creation , Name , Budget_in_Billions ]" ]
[ "List the creation year, name and budget of each department." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
e40de77e53eb4bcf9d81bf07d121c135264dbd62cdca7e88f5cebda7b73fafa4_0
department_management
What are the maximum and minimum budget of the departments?
[ "#1 = Scan Table [ department ] Output [ Budget_in_Billions ]", "#2 = Aggregate [ #1 ] Output [ MIN(Budget_in_Billions) AS Min_Budget_in_Billions , MAX(Budget_in_Billions) AS Max_Budget_in_Billions ]" ]
[ "What are the budgets of the departments?", "What are the maximum and minimum budget of the departments?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
e40de77e53eb4bcf9d81bf07d121c135264dbd62cdca7e88f5cebda7b73fafa4_1
department_management
What are the budgets of the departments?
[ "#1 = Scan Table [ department ] Output [ Budget_in_Billions ]" ]
[ "What are the budgets of the departments?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
47f00f939411fff3d9dd81cdab4b7937fb837492b042f78ebf58dcb092a6f3a8_0
department_management
What is the average number of employees of the departments whose rank is between 10 and 15?
[ "#1 = Scan Table [ department ] Predicate [ Ranking >= 10 AND Ranking <= 15 ] Output [ Ranking , Num_Employees ]", "#2 = Aggregate [ #1 ] Output [ AVG(Num_Employees) AS Avg_Num_Employees ]" ]
[ "What are the number of employees of the departments whose rank is between 10 and 15?", "What is the average number of employees of the departments whose rank is between 10 and 15?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
47f00f939411fff3d9dd81cdab4b7937fb837492b042f78ebf58dcb092a6f3a8_1
department_management
What are the number of employees of the departments whose rank is between 10 and 15?
[ "#1 = Scan Table [ department ] Predicate [ Ranking >= 10 AND Ranking <= 15 ] Output [ Ranking , Num_Employees ]" ]
[ "What are the number of employees of the departments whose rank is between 10 and 15?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
39ae01b638dcdce3997751511c9c44e3ad8c5f2e705f8ab9598bfd75006f30ef_0
department_management
What are the names of the heads who are born outside the California state?
[ "#1 = Scan Table [ head ] Predicate [ born_state <> 'California' ] Output [ name , born_state ]" ]
[ "What are the names of the heads who are born outside the California state?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
3f36f679138a1b0cbb597bd04bf833870f757d27d1f867576d45d426577fcfe5_0
department_management
What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?
[ "#1 = Scan Table [ head ] Predicate [ born_state = 'Alabama' ] Output [ head_ID , born_state ]", "#2 = Scan Table [ management ] Output [ head_ID , department_ID ]", "#3 = Join [ #1 , #2 ] Predicate [ #1.head_ID = #2.head_ID ] Output [ #2.department_ID ]", "#4 = Scan Table [ department ] Output [ Creation , D...
[ "What are the ids of secretaries that born in state 'Alabama'?", "What are the secretary ids and department ids of all management.", "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?", "What are the distinct creatio...
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
3f36f679138a1b0cbb597bd04bf833870f757d27d1f867576d45d426577fcfe5_1
department_management
What are the ids of the departments managed by a secretary born in state 'Alabama'?
[ "#1 = Scan Table [ head ] Predicate [ born_state = 'Alabama' ] Output [ head_ID , born_state ]", "#2 = Scan Table [ management ] Output [ head_ID , department_ID ]", "#3 = Join [ #1 , #2 ] Predicate [ #1.head_ID = #2.head_ID ] Output [ #2.department_ID ]" ]
[ "What are the ids of secretaries that born in state 'Alabama'?", "What are the secretary ids and department ids of all management.", "What are the ids of the departments managed by a secretary born in state 'Alabama'?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
3f36f679138a1b0cbb597bd04bf833870f757d27d1f867576d45d426577fcfe5_2
department_management
What are the ids and creation years of all department?
[ "#1 = Scan Table [ department ] Output [ Creation , Department_ID ]" ]
[ "What are the ids and creation years of all department?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
3f36f679138a1b0cbb597bd04bf833870f757d27d1f867576d45d426577fcfe5_3
department_management
What are the ids of secretaries that born in state 'Alabama'?
[ "#1 = Scan Table [ head ] Predicate [ born_state = 'Alabama' ] Output [ head_ID , born_state ]" ]
[ "What are the ids of secretaries that born in state 'Alabama'?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
3f36f679138a1b0cbb597bd04bf833870f757d27d1f867576d45d426577fcfe5_4
department_management
What are the secretary ids and department ids of all management.
[ "#1 = Scan Table [ management ] Output [ head_ID , department_ID ]" ]
[ "What are the secretary ids and department ids of all management." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
00651f398215c361491c8d06175867c38b39a535517c378d98e8f7f5a0e6191f_0
department_management
What are the names of the states where at least 3 heads were born?
[ "#1 = Scan Table [ head ] Output [ born_state ]", "#2 = Aggregate [ #1 ] GroupBy [ born_state ] Output [ countstar AS Count_Star , born_state ]", "#3 = Filter [ #2 ] Predicate [ Count_Star >= 3 ] Output [ born_state ]" ]
[ "What are the born states of all heads?", "What are the different born states and the number of heads born there?", "What are the names of the states where at least 3 heads were born?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
00651f398215c361491c8d06175867c38b39a535517c378d98e8f7f5a0e6191f_1
department_management
What are the different born states and the number of heads born there?
[ "#1 = Scan Table [ head ] Output [ born_state ]", "#2 = Aggregate [ #1 ] GroupBy [ born_state ] Output [ countstar AS Count_Star , born_state ]" ]
[ "What are the born states of all heads?", "What are the different born states and the number of heads born there?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
00651f398215c361491c8d06175867c38b39a535517c378d98e8f7f5a0e6191f_2
department_management
What are the born states of all heads?
[ "#1 = Scan Table [ head ] Output [ born_state ]" ]
[ "What are the born states of all heads?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
586865d060d7830514507ad9c19a330a0fe3f7dd3a21dc88d9c82b2c0b3f3626_0
department_management
In which year were most departments established?
[ "#1 = Scan Table [ department ] Output [ Creation ]", "#2 = Aggregate [ #1 ] GroupBy [ Creation ] Output [ Creation , countstar AS Count_Star ]", "#3 = TopSort [ #2 ] Rows [ 1 ] OrderBy [ Count_Star DESC ] Output [ Creation , Count_Star ]" ]
[ "What is the establishment year of all departments?", "What are the number of departments established for each establishment year?", "In which year were most departments established?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
586865d060d7830514507ad9c19a330a0fe3f7dd3a21dc88d9c82b2c0b3f3626_1
department_management
What are the number of departments established for each establishment year?
[ "#1 = Scan Table [ department ] Output [ Creation ]", "#2 = Aggregate [ #1 ] GroupBy [ Creation ] Output [ Creation , countstar AS Count_Star ]" ]
[ "What is the establishment year of all departments?", "What are the number of departments established for each establishment year?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
586865d060d7830514507ad9c19a330a0fe3f7dd3a21dc88d9c82b2c0b3f3626_2
department_management
What is the establishment year of all departments?
[ "#1 = Scan Table [ department ] Output [ Creation ]" ]
[ "What is the establishment year of all departments?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
a755587236ae98ce64932aae821a229a2fa5c22085e4ae14a98c9e2ed37913e1_0
department_management
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?
[ "#1 = Scan Table [ management ] Predicate [ temporary_acting = 'Yes' ] Output [ temporary_acting , department_ID ]", "#2 = Scan Table [ department ] Output [ Name , Department_ID , Num_Employees ]", "#3 = Join [ #1 , #2 ] Predicate [ #1.department_ID = #2.Department_ID ] Output [ #2.Name , #2.Num_Employees ]" ]
[ "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.", "Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
a755587236ae98ce64932aae821a229a2fa5c22085e4ae14a98c9e2ed37913e1_1
department_management
Show the id for the departments managed by heads whose temporary acting value is 'Yes'.
[ "#1 = Scan Table [ management ] Predicate [ temporary_acting = 'Yes' ] Output [ temporary_acting , department_ID ]" ]
[ "Show the id for the departments managed by heads whose temporary acting value is 'Yes'." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
a755587236ae98ce64932aae821a229a2fa5c22085e4ae14a98c9e2ed37913e1_2
department_management
Show the id, name and number of employees of all departments.
[ "#1 = Scan Table [ department ] Output [ Name , Department_ID , Num_Employees ]" ]
[ "Show the id, name and number of employees of all departments." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
91d8d2fd0df0fc77fca751084707e55ef77ded3b9fddf66b2c3a0152bf83fd22_0
department_management
How many acting statuses are there?
[ "#1 = Scan Table [ management ] Distinct [ true ] Output [ temporary_acting ]", "#2 = Aggregate [ #1 ] Output [ countstar AS Count_Star ]" ]
[ "List the different acting statuses.", "How many acting statuses are there?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
91d8d2fd0df0fc77fca751084707e55ef77ded3b9fddf66b2c3a0152bf83fd22_1
department_management
List the different acting statuses.
[ "#1 = Scan Table [ management ] Distinct [ true ] Output [ temporary_acting ]" ]
[ "List the different acting statuses." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
11721bd0ca619c9b885db09fa053a789068bbc906d3565209a493f47b01c04b0_0
department_management
How many departments are led by heads who are not mentioned?
[ "#1 = Scan Table [ department ] Output [ Department_ID ]", "#2 = Scan Table [ management ] Output [ department_ID ]", "#3 = Aggregate [ #2 ] GroupBy [ department_ID ] Output [ department_ID ]", "#4 = Except [ #1 , #3 ] Predicate [ #3.department_ID = #1.Department_ID ] Output [ 1 AS One ]", "#5 = Aggregate [...
[ "Find the ids of all departments.", "Find the department ids that are led by heads who are mentioned.", "Find the different department ids that are led by heads who are mentioned.", "List 1 for each department led by heads who are not mentioned.", "How many departments are led by heads who are not mentioned...
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
11721bd0ca619c9b885db09fa053a789068bbc906d3565209a493f47b01c04b0_1
department_management
List 1 for each department led by heads who are not mentioned.
[ "#1 = Scan Table [ department ] Output [ Department_ID ]", "#2 = Scan Table [ management ] Output [ department_ID ]", "#3 = Aggregate [ #2 ] GroupBy [ department_ID ] Output [ department_ID ]", "#4 = Except [ #1 , #3 ] Predicate [ #3.department_ID = #1.Department_ID ] Output [ 1 AS One ]" ]
[ "Find the ids of all departments.", "Find the department ids that are led by heads who are mentioned.", "Find the different department ids that are led by heads who are mentioned.", "List 1 for each department led by heads who are not mentioned." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
11721bd0ca619c9b885db09fa053a789068bbc906d3565209a493f47b01c04b0_2
department_management
Find the ids of all departments.
[ "#1 = Scan Table [ department ] Output [ Department_ID ]" ]
[ "Find the ids of all departments." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
11721bd0ca619c9b885db09fa053a789068bbc906d3565209a493f47b01c04b0_3
department_management
Find the different department ids that are led by heads who are mentioned.
[ "#1 = Scan Table [ management ] Output [ department_ID ]", "#2 = Aggregate [ #1 ] GroupBy [ department_ID ] Output [ department_ID ]" ]
[ "Find the department ids that are led by heads who are mentioned.", "Find the different department ids that are led by heads who are mentioned." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
11721bd0ca619c9b885db09fa053a789068bbc906d3565209a493f47b01c04b0_4
department_management
Find the department ids that are led by heads who are mentioned.
[ "#1 = Scan Table [ management ] Output [ department_ID ]" ]
[ "Find the department ids that are led by heads who are mentioned." ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
84ee6c0bbf937a87b1575510a08e72067bb1e07ac77e10e668e97e922f82649c_0
department_management
What are the distinct ages of the heads who are acting?
[ "#1 = Scan Table [ management ] Predicate [ temporary_acting = 'Yes' ] Output [ head_ID , temporary_acting ]", "#2 = Scan Table [ head ] Output [ head_ID , age ]", "#3 = Join [ #1 , #2 ] Predicate [ #1.head_ID = #2.head_ID ] Distinct [ true ] Output [ #2.age ]" ]
[ "What are the ids of the heads who are acting?", "What are the ids and ages of all heads?", "What are the distinct ages of the heads who are acting?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
84ee6c0bbf937a87b1575510a08e72067bb1e07ac77e10e668e97e922f82649c_1
department_management
What are the ids of the heads who are acting?
[ "#1 = Scan Table [ management ] Predicate [ temporary_acting = 'Yes' ] Output [ head_ID , temporary_acting ]" ]
[ "What are the ids of the heads who are acting?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
84ee6c0bbf937a87b1575510a08e72067bb1e07ac77e10e668e97e922f82649c_2
department_management
What are the ids and ages of all heads?
[ "#1 = Scan Table [ head ] Output [ head_ID , age ]" ]
[ "What are the ids and ages of all heads?" ]
[ { "content": "You are a question decomposition expert. You are given a database schema and a complex database input question in natural language, and your task is to break down the complex database input question into simpler sub-questions in a recursive way, like a tree. In each step you will be given a questi...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
6