[ { "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", "struct_in": "| 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", "text_in": "How many heads of the departments are older than 56 ?", "seq_out": "select count(*) from head where age > 56" }, { "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", "struct_in": "| 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", "text_in": "List the name, born state and age of the heads of departments ordered by age.", "seq_out": "select name, born_state, age from head order by age" }, { "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", "struct_in": "| 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", "text_in": "List the creation year, name and budget of each department.", "seq_out": "select creation, name, budget_in_billions from department" }, { "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", "struct_in": "| 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", "text_in": "What are the maximum and minimum budget of the departments?", "seq_out": "select max(budget_in_billions), min(budget_in_billions) from department" }, { "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", "struct_in": "| 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", "text_in": "What is the average number of employees of the departments whose rank is between 10 and 15?", "seq_out": "select avg(num_employees) from department where ranking between 10 and 15" } ]