|
{ |
|
"Spider--train--1": { |
|
"original dialog id": "", |
|
"dialog index": 1, |
|
"original dialog info": { |
|
"query": "SELECT count(*) FROM head WHERE age > 56", |
|
"question": "How many heads of the departments are older than 56 ?", |
|
"db_id": "department_management", |
|
"db_path": "./data\\downloads\\extracted\\323647ed3d8dd114ddf0733fdee3a02fbef29e7fca19c84e240aadf94634bc7e/spider/database", |
|
"db_table_names": [ |
|
"department", |
|
"head", |
|
"management" |
|
], |
|
"db_column_names": { |
|
"table_id": [ |
|
-1, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
1, |
|
1, |
|
1, |
|
1, |
|
2, |
|
2, |
|
2 |
|
], |
|
"column_name": [ |
|
"*", |
|
"Department_ID", |
|
"Name", |
|
"Creation", |
|
"Ranking", |
|
"Budget_in_Billions", |
|
"Num_Employees", |
|
"head_ID", |
|
"name", |
|
"born_state", |
|
"age", |
|
"department_ID", |
|
"head_ID", |
|
"temporary_acting" |
|
] |
|
}, |
|
"db_column_types": [ |
|
"text", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"text" |
|
], |
|
"db_primary_keys": { |
|
"column_id": [ |
|
1, |
|
7, |
|
11 |
|
] |
|
}, |
|
"db_foreign_keys": { |
|
"column_id": [ |
|
12, |
|
11 |
|
], |
|
"other_column_id": [ |
|
7, |
|
1 |
|
] |
|
}, |
|
"serialized_schema": " | department_management | 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" |
|
}, |
|
"log": { |
|
"turn id": 1, |
|
"user utterance": "How many heads of the departments are older than 56 ?", |
|
"system response": "select count(*) from head where age > 56", |
|
"dialog history": "", |
|
"original user side information": {}, |
|
"original system side information": {}, |
|
"external knowledge": "| department_management | 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" |
|
} |
|
}, |
|
"Spider--train--2": { |
|
"original dialog id": "", |
|
"dialog index": 2, |
|
"original dialog info": { |
|
"query": "SELECT name , born_state , age FROM head ORDER BY age", |
|
"question": "List the name, born state and age of the heads of departments ordered by age.", |
|
"db_id": "department_management", |
|
"db_path": "./data\\downloads\\extracted\\323647ed3d8dd114ddf0733fdee3a02fbef29e7fca19c84e240aadf94634bc7e/spider/database", |
|
"db_table_names": [ |
|
"department", |
|
"head", |
|
"management" |
|
], |
|
"db_column_names": { |
|
"table_id": [ |
|
-1, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
1, |
|
1, |
|
1, |
|
1, |
|
2, |
|
2, |
|
2 |
|
], |
|
"column_name": [ |
|
"*", |
|
"Department_ID", |
|
"Name", |
|
"Creation", |
|
"Ranking", |
|
"Budget_in_Billions", |
|
"Num_Employees", |
|
"head_ID", |
|
"name", |
|
"born_state", |
|
"age", |
|
"department_ID", |
|
"head_ID", |
|
"temporary_acting" |
|
] |
|
}, |
|
"db_column_types": [ |
|
"text", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"text" |
|
], |
|
"db_primary_keys": { |
|
"column_id": [ |
|
1, |
|
7, |
|
11 |
|
] |
|
}, |
|
"db_foreign_keys": { |
|
"column_id": [ |
|
12, |
|
11 |
|
], |
|
"other_column_id": [ |
|
7, |
|
1 |
|
] |
|
}, |
|
"serialized_schema": " | department_management | department : department_id , name ( State ) , creation , ranking , budget_in_billions , num_employees | head : head_id , name , born_state , age | management : department_id , head_id , temporary_acting" |
|
}, |
|
"log": { |
|
"turn id": 1, |
|
"user utterance": "List the name, born state and age of the heads of departments ordered by age.", |
|
"system response": "select name, born_state, age from head order by age", |
|
"dialog history": "", |
|
"original user side information": {}, |
|
"original system side information": {}, |
|
"external knowledge": "| department_management | department : department_id , name ( State ) , creation , ranking , budget_in_billions , num_employees | head : head_id , name , born_state , age | management : department_id , head_id , temporary_acting" |
|
} |
|
}, |
|
"Spider--train--3": { |
|
"original dialog id": "", |
|
"dialog index": 3, |
|
"original dialog info": { |
|
"query": "SELECT creation , name , budget_in_billions FROM department", |
|
"question": "List the creation year, name and budget of each department.", |
|
"db_id": "department_management", |
|
"db_path": "./data\\downloads\\extracted\\323647ed3d8dd114ddf0733fdee3a02fbef29e7fca19c84e240aadf94634bc7e/spider/database", |
|
"db_table_names": [ |
|
"department", |
|
"head", |
|
"management" |
|
], |
|
"db_column_names": { |
|
"table_id": [ |
|
-1, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
1, |
|
1, |
|
1, |
|
1, |
|
2, |
|
2, |
|
2 |
|
], |
|
"column_name": [ |
|
"*", |
|
"Department_ID", |
|
"Name", |
|
"Creation", |
|
"Ranking", |
|
"Budget_in_Billions", |
|
"Num_Employees", |
|
"head_ID", |
|
"name", |
|
"born_state", |
|
"age", |
|
"department_ID", |
|
"head_ID", |
|
"temporary_acting" |
|
] |
|
}, |
|
"db_column_types": [ |
|
"text", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"text" |
|
], |
|
"db_primary_keys": { |
|
"column_id": [ |
|
1, |
|
7, |
|
11 |
|
] |
|
}, |
|
"db_foreign_keys": { |
|
"column_id": [ |
|
12, |
|
11 |
|
], |
|
"other_column_id": [ |
|
7, |
|
1 |
|
] |
|
}, |
|
"serialized_schema": " | department_management | 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" |
|
}, |
|
"log": { |
|
"turn id": 1, |
|
"user utterance": "List the creation year, name and budget of each department.", |
|
"system response": "select creation, name, budget_in_billions from department", |
|
"dialog history": "", |
|
"original user side information": {}, |
|
"original system side information": {}, |
|
"external knowledge": "| department_management | 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" |
|
} |
|
}, |
|
"Spider--train--4": { |
|
"original dialog id": "", |
|
"dialog index": 4, |
|
"original dialog info": { |
|
"query": "SELECT max(budget_in_billions) , min(budget_in_billions) FROM department", |
|
"question": "What are the maximum and minimum budget of the departments?", |
|
"db_id": "department_management", |
|
"db_path": "./data\\downloads\\extracted\\323647ed3d8dd114ddf0733fdee3a02fbef29e7fca19c84e240aadf94634bc7e/spider/database", |
|
"db_table_names": [ |
|
"department", |
|
"head", |
|
"management" |
|
], |
|
"db_column_names": { |
|
"table_id": [ |
|
-1, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
1, |
|
1, |
|
1, |
|
1, |
|
2, |
|
2, |
|
2 |
|
], |
|
"column_name": [ |
|
"*", |
|
"Department_ID", |
|
"Name", |
|
"Creation", |
|
"Ranking", |
|
"Budget_in_Billions", |
|
"Num_Employees", |
|
"head_ID", |
|
"name", |
|
"born_state", |
|
"age", |
|
"department_ID", |
|
"head_ID", |
|
"temporary_acting" |
|
] |
|
}, |
|
"db_column_types": [ |
|
"text", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"text" |
|
], |
|
"db_primary_keys": { |
|
"column_id": [ |
|
1, |
|
7, |
|
11 |
|
] |
|
}, |
|
"db_foreign_keys": { |
|
"column_id": [ |
|
12, |
|
11 |
|
], |
|
"other_column_id": [ |
|
7, |
|
1 |
|
] |
|
}, |
|
"serialized_schema": " | department_management | 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" |
|
}, |
|
"log": { |
|
"turn id": 1, |
|
"user utterance": "What are the maximum and minimum budget of the departments?", |
|
"system response": "select max(budget_in_billions), min(budget_in_billions) from department", |
|
"dialog history": "", |
|
"original user side information": {}, |
|
"original system side information": {}, |
|
"external knowledge": "| department_management | 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" |
|
} |
|
}, |
|
"Spider--train--5": { |
|
"original dialog id": "", |
|
"dialog index": 5, |
|
"original dialog info": { |
|
"query": "SELECT avg(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15", |
|
"question": "What is the average number of employees of the departments whose rank is between 10 and 15?", |
|
"db_id": "department_management", |
|
"db_path": "./data\\downloads\\extracted\\323647ed3d8dd114ddf0733fdee3a02fbef29e7fca19c84e240aadf94634bc7e/spider/database", |
|
"db_table_names": [ |
|
"department", |
|
"head", |
|
"management" |
|
], |
|
"db_column_names": { |
|
"table_id": [ |
|
-1, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
0, |
|
1, |
|
1, |
|
1, |
|
1, |
|
2, |
|
2, |
|
2 |
|
], |
|
"column_name": [ |
|
"*", |
|
"Department_ID", |
|
"Name", |
|
"Creation", |
|
"Ranking", |
|
"Budget_in_Billions", |
|
"Num_Employees", |
|
"head_ID", |
|
"name", |
|
"born_state", |
|
"age", |
|
"department_ID", |
|
"head_ID", |
|
"temporary_acting" |
|
] |
|
}, |
|
"db_column_types": [ |
|
"text", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"number", |
|
"text", |
|
"text", |
|
"number", |
|
"number", |
|
"number", |
|
"text" |
|
], |
|
"db_primary_keys": { |
|
"column_id": [ |
|
1, |
|
7, |
|
11 |
|
] |
|
}, |
|
"db_foreign_keys": { |
|
"column_id": [ |
|
12, |
|
11 |
|
], |
|
"other_column_id": [ |
|
7, |
|
1 |
|
] |
|
}, |
|
"serialized_schema": " | department_management | 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" |
|
}, |
|
"log": { |
|
"turn id": 1, |
|
"user utterance": "What is the average number of employees of the departments whose rank is between 10 and 15?", |
|
"system response": "select avg(num_employees) from department where ranking between 10 and 15", |
|
"dialog history": "", |
|
"original user side information": {}, |
|
"original system side information": {}, |
|
"external knowledge": "| department_management | 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" |
|
} |
|
} |
|
} |