| [ |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = \"Accounting\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "DEPT_NAME", |
| "=", |
| "``", |
| "Accounting", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Tìm số lượng giáo sư thuộc khoa ' Kế toán ' .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "professors", |
| "in", |
| "accounting", |
| "department", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = \"Accounting\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "DEPT_NAME", |
| "=", |
| "``", |
| "Accounting", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu giáo sư đang giảng dạy ở khoa ' Kế toán ' ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "professors", |
| "are", |
| "in", |
| "the", |
| "accounting", |
| "dept", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = \"ACCT-211\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "PROF_NUM", |
| ")", |
| "FROM", |
| "CLASS", |
| "WHERE", |
| "CRS_CODE", |
| "=", |
| "``", |
| "ACCT-211", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "prof_num", |
| ")", |
| "from", |
| "class", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Đếm số lượng các giáo sư đã từng dạy lớp học có mã là ' ACCT-211 ' .", |
| "question_toks": [ |
| "How", |
| "many", |
| "professors", |
| "are", |
| "teaching", |
| "class", |
| "with", |
| "code", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = \"ACCT-211\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "PROF_NUM", |
| ")", |
| "FROM", |
| "CLASS", |
| "WHERE", |
| "CRS_CODE", |
| "=", |
| "``", |
| "ACCT-211", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "prof_num", |
| ")", |
| "from", |
| "class", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu giáo sư đã từng dạy lớp học có mã là ' ACCT-211 ' ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "professors", |
| "teach", |
| "a", |
| "class", |
| "with", |
| "the", |
| "code", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.EMP_FNAME , T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = \"Biology\"", |
| "query_toks": [ |
| "SELECT", |
| "T3.EMP_FNAME", |
| ",", |
| "T3.EMP_LNAME", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "JOIN", |
| "employee", |
| "AS", |
| "T3", |
| "ON", |
| "T1.EMP_NUM", |
| "=", |
| "T3.EMP_NUM", |
| "WHERE", |
| "DEPT_NAME", |
| "=", |
| "``", |
| "Biology", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "emp_fname", |
| ",", |
| "t3", |
| ".", |
| "emp_lname", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "join", |
| "employee", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t3", |
| ".", |
| "emp_num", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên và họ của các giáo sư thuộc khoa ' Sinh học ' .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "and", |
| "last", |
| "name", |
| "of", |
| "the", |
| "professor", |
| "in", |
| "biology", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Biology\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.EMP_FNAME , T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = \"Biology\"", |
| "query_toks": [ |
| "SELECT", |
| "T3.EMP_FNAME", |
| ",", |
| "T3.EMP_LNAME", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "JOIN", |
| "employee", |
| "AS", |
| "T3", |
| "ON", |
| "T1.EMP_NUM", |
| "=", |
| "T3.EMP_NUM", |
| "WHERE", |
| "DEPT_NAME", |
| "=", |
| "``", |
| "Biology", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "emp_fname", |
| ",", |
| "t3", |
| ".", |
| "emp_lname", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "join", |
| "employee", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t3", |
| ".", |
| "emp_num", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên và họ của tất cả các giáo sư giảng dạy bộ môn ' Sinh học ' .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "and", |
| "last", |
| "name", |
| "of", |
| "all", |
| "biology", |
| "professors", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Biology\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT DISTINCT T1.EMP_FNAME , T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = \"ACCT-211\"", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "T1.EMP_FNAME", |
| ",", |
| "T1.EMP_DOB", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.EMP_NUM", |
| "=", |
| "T2.PROF_NUM", |
| "WHERE", |
| "CRS_CODE", |
| "=", |
| "``", |
| "ACCT-211", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "t1", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "emp_dob", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên và ngày sinh của các giáo sư đã từng giảng dạy khoá học ' ACCT-211 ' .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "and", |
| "date", |
| "of", |
| "birth", |
| "of", |
| "professors", |
| "teaching", |
| "course", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 23, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT DISTINCT T1.EMP_FNAME , T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = \"ACCT-211\"", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "T1.EMP_FNAME", |
| ",", |
| "T1.EMP_DOB", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.EMP_NUM", |
| "=", |
| "T2.PROF_NUM", |
| "WHERE", |
| "CRS_CODE", |
| "=", |
| "``", |
| "ACCT-211", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "t1", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "emp_dob", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Những giáo sư nào đã từng phụ trách khoá học ' ACCT-211 ' ? Cho biết tên và ngày sinh của những giáo sư này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "and", |
| "birthdates", |
| "of", |
| "the", |
| "professors", |
| "in", |
| "charge", |
| "of", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 23, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.EMP_NUM", |
| "=", |
| "T2.PROF_NUM", |
| "WHERE", |
| "T1.EMP_LNAME", |
| "=", |
| "'Graztevski", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num", |
| "where", |
| "t1", |
| ".", |
| "emp_lname", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu lớp học được giảng dạy bởi giáo sư có họ là ' Graztevski ' ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "classes", |
| "are", |
| "professor", |
| "whose", |
| "last", |
| "name", |
| "is", |
| "Graztevski", |
| "has", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| "\"Graztevski\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.EMP_NUM", |
| "=", |
| "T2.PROF_NUM", |
| "WHERE", |
| "T1.EMP_LNAME", |
| "=", |
| "'Graztevski", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num", |
| "where", |
| "t1", |
| ".", |
| "emp_lname", |
| "=", |
| "value" |
| ], |
| "question": "Giáo sư có họ là ' Graztevski ' đã giảng dạy bao nhiêu lớp ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "classes", |
| "does", |
| "the", |
| "professor", |
| "whose", |
| "last", |
| "name", |
| "is", |
| "Graztevski", |
| "teach", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| "\"Graztevski\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT school_code FROM department WHERE dept_name = \"Accounting\"", |
| "query_toks": [ |
| "SELECT", |
| "school_code", |
| "FROM", |
| "department", |
| "WHERE", |
| "dept_name", |
| "=", |
| "``", |
| "Accounting", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "school_code", |
| "from", |
| "department", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết mã của những trường học mà khoa ' Kế toán ' thuộc về .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "code", |
| "of", |
| "the", |
| "school", |
| "where", |
| "the", |
| "accounting", |
| "department", |
| "belongs", |
| "to", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT school_code FROM department WHERE dept_name = \"Accounting\"", |
| "query_toks": [ |
| "SELECT", |
| "school_code", |
| "FROM", |
| "department", |
| "WHERE", |
| "dept_name", |
| "=", |
| "``", |
| "Accounting", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "school_code", |
| "from", |
| "department", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Những trường học nào có khoa ' Kế toán ' ? Cho biết mã của những trường học này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "school", |
| "code", |
| "of", |
| "the", |
| "accounting", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT crs_credit , crs_description FROM course WHERE crs_code = 'CIS-220'", |
| "query_toks": [ |
| "SELECT", |
| "crs_credit", |
| ",", |
| "crs_description", |
| "FROM", |
| "course", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'CIS-220", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "crs_credit", |
| ",", |
| "crs_description", |
| "from", |
| "course", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Khoá học CIS-220 cung cấp bao nhiêu tín chỉ ? Đồng thời hãy cho biết mô tả về khoá học này .", |
| "question_toks": [ |
| "How", |
| "many", |
| "credits", |
| "does", |
| "course", |
| "CIS-220", |
| "have", |
| ",", |
| "and", |
| "what", |
| "its", |
| "description", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "\"CIS-220\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT crs_credit , crs_description FROM course WHERE crs_code = 'CIS-220'", |
| "query_toks": [ |
| "SELECT", |
| "crs_credit", |
| ",", |
| "crs_description", |
| "FROM", |
| "course", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'CIS-220", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "crs_credit", |
| ",", |
| "crs_description", |
| "from", |
| "course", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết mô tả về khoá học CIS-220 cũng như là số lượng tín chỉ mà khoá học này cung cấp .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "description", |
| "for", |
| "the", |
| "CIS-220", |
| "and", |
| "how", |
| "many", |
| "credits", |
| "does", |
| "it", |
| "have", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "\"CIS-220\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT dept_address FROM department WHERE dept_name = 'History'", |
| "query_toks": [ |
| "SELECT", |
| "dept_address", |
| "FROM", |
| "department", |
| "WHERE", |
| "dept_name", |
| "=", |
| "'History", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "dept_address", |
| "from", |
| "department", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết địa chỉ của khoa ' Lịch sử ' .", |
| "question_toks": [ |
| "what", |
| "is", |
| "the", |
| "address", |
| "of", |
| "history", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT dept_address FROM department WHERE dept_name = 'History'", |
| "query_toks": [ |
| "SELECT", |
| "dept_address", |
| "FROM", |
| "department", |
| "WHERE", |
| "dept_name", |
| "=", |
| "'History", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "dept_address", |
| "from", |
| "department", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Khoa ' Lịch sử ' nằm ở địa chỉ nào ?", |
| "question_toks": [ |
| "Where", |
| "is", |
| "the", |
| "history", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_address", |
| ")", |
| "FROM", |
| "department", |
| "WHERE", |
| "school_code", |
| "=", |
| "'BUS", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_address", |
| ")", |
| "from", |
| "department", |
| "where", |
| "school_code", |
| "=", |
| "value" |
| ], |
| "question": "Các trường học có mã ' BUS ' nằm ở bao nhiêu địa chỉ khác nhau ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "different", |
| "locations", |
| "does", |
| "the", |
| "school", |
| "with", |
| "code", |
| "BUS", |
| "has", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ], |
| "\"BUS\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_address", |
| ")", |
| "FROM", |
| "department", |
| "WHERE", |
| "school_code", |
| "=", |
| "'BUS", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_address", |
| ")", |
| "from", |
| "department", |
| "where", |
| "school_code", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết số lượng các địa chỉ khác nhau của các trường học có mã ' BUS ' .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "different", |
| "locations", |
| "of", |
| "the", |
| "school", |
| "with", |
| "the", |
| "code", |
| "BUS", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ], |
| "\"BUS\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_address) , school_code FROM department GROUP BY school_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_address", |
| ")", |
| ",", |
| "school_code", |
| "FROM", |
| "department", |
| "GROUP", |
| "BY", |
| "school_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_address", |
| ")", |
| ",", |
| "school_code", |
| "from", |
| "department", |
| "group", |
| "by", |
| "school_code" |
| ], |
| "question": "Mỗi trường học nằm ở bao nhiêu địa chỉ khác nhau ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "different", |
| "locations", |
| "does", |
| "each", |
| "school", |
| "have", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| true |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_address) , school_code FROM department GROUP BY school_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_address", |
| ")", |
| ",", |
| "school_code", |
| "FROM", |
| "department", |
| "GROUP", |
| "BY", |
| "school_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_address", |
| ")", |
| ",", |
| "school_code", |
| "from", |
| "department", |
| "group", |
| "by", |
| "school_code" |
| ], |
| "question": "Đếm số lượng các địa chỉ khác nhau của từng trường học .", |
| "question_toks": [ |
| "Count", |
| "different", |
| "addresses", |
| "of", |
| "each", |
| "school", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| true |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT crs_credit , crs_description FROM course WHERE crs_code = 'QM-261'", |
| "query_toks": [ |
| "SELECT", |
| "crs_credit", |
| ",", |
| "crs_description", |
| "FROM", |
| "course", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'QM-261", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "crs_credit", |
| ",", |
| "crs_description", |
| "from", |
| "course", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết mô tả về khoá học QM-261 cũng như là số lượng tín chỉ mà khoá học này cung cấp .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "description", |
| "and", |
| "credit", |
| "for", |
| "the", |
| "course", |
| "QM-261", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "\"QM-261\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT crs_credit , crs_description FROM course WHERE crs_code = 'QM-261'", |
| "query_toks": [ |
| "SELECT", |
| "crs_credit", |
| ",", |
| "crs_description", |
| "FROM", |
| "course", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'QM-261", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "crs_credit", |
| ",", |
| "crs_description", |
| "from", |
| "course", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Khoá học QM-261 đã cung cấp bao nhiêu tín chỉ ? Đồng thời cho biết mô tả về khoá học này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "course", |
| "description", |
| "and", |
| "number", |
| "of", |
| "credits", |
| "for", |
| "QM-261", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "\"QM-261\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_name", |
| ")", |
| ",", |
| "school_code", |
| "FROM", |
| "department", |
| "GROUP", |
| "BY", |
| "school_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_name", |
| ")", |
| ",", |
| "school_code", |
| "from", |
| "department", |
| "group", |
| "by", |
| "school_code" |
| ], |
| "question": "Mỗi trường học có bao nhiêu khoa ?", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "departments", |
| "in", |
| "each", |
| "school", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| true |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_name", |
| ")", |
| ",", |
| "school_code", |
| "FROM", |
| "department", |
| "GROUP", |
| "BY", |
| "school_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_name", |
| ")", |
| ",", |
| "school_code", |
| "from", |
| "department", |
| "group", |
| "by", |
| "school_code" |
| ], |
| "question": "Cho biết số lượng khoa ở từng trường học .", |
| "question_toks": [ |
| "How", |
| "many", |
| "departments", |
| "are", |
| "in", |
| "each", |
| "school", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| true |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name) < 5", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_name", |
| ")", |
| ",", |
| "school_code", |
| "FROM", |
| "department", |
| "GROUP", |
| "BY", |
| "school_code", |
| "HAVING", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_name", |
| ")", |
| "<", |
| "5" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_name", |
| ")", |
| ",", |
| "school_code", |
| "from", |
| "department", |
| "group", |
| "by", |
| "school_code", |
| "having", |
| "count", |
| "(", |
| "distinct", |
| "dept_name", |
| ")", |
| "<", |
| "value" |
| ], |
| "question": "Đối với các trường học có ít hơn 5 khoa , cho biết số lượng khoa ở mỗi trường .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "different", |
| "departments", |
| "in", |
| "each", |
| "school", |
| "whose", |
| "number", |
| "of", |
| "different", |
| "departments", |
| "is", |
| "less", |
| "than", |
| "5", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [ |
| [ |
| false, |
| 4, |
| [ |
| 0, |
| [ |
| 3, |
| 12, |
| true |
| ], |
| null |
| ], |
| 5.0, |
| null |
| ] |
| ], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| true |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name) < 5", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_name", |
| ")", |
| ",", |
| "school_code", |
| "FROM", |
| "department", |
| "GROUP", |
| "BY", |
| "school_code", |
| "HAVING", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_name", |
| ")", |
| "<", |
| "5" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_name", |
| ")", |
| ",", |
| "school_code", |
| "from", |
| "department", |
| "group", |
| "by", |
| "school_code", |
| "having", |
| "count", |
| "(", |
| "distinct", |
| "dept_name", |
| ")", |
| "<", |
| "value" |
| ], |
| "question": "Những trường học có ít hơn 5 khoa có số lượng khoa ở mỗi trường là bao nhiêu ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "different", |
| "departments", |
| "are", |
| "there", |
| "in", |
| "each", |
| "school", |
| "that", |
| "has", |
| "less", |
| "than", |
| "5", |
| "apartments", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [ |
| [ |
| false, |
| 4, |
| [ |
| 0, |
| [ |
| 3, |
| 12, |
| true |
| ], |
| null |
| ], |
| 5.0, |
| null |
| ] |
| ], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| true |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , crs_code FROM CLASS GROUP BY crs_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "crs_code", |
| "FROM", |
| "CLASS", |
| "GROUP", |
| "BY", |
| "crs_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "crs_code", |
| "from", |
| "class", |
| "group", |
| "by", |
| "crs_code" |
| ], |
| "question": "Mỗi khoá học có bao nhiêu lớp học ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "sections", |
| "does", |
| "each", |
| "course", |
| "has", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 2, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , crs_code FROM CLASS GROUP BY crs_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "crs_code", |
| "FROM", |
| "CLASS", |
| "GROUP", |
| "BY", |
| "crs_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "crs_code", |
| "from", |
| "class", |
| "group", |
| "by", |
| "crs_code" |
| ], |
| "question": "Có bao nhiêu lớp học thuộc từng khoá học ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "sections", |
| "does", |
| "each", |
| "course", |
| "have", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 2, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT sum(crs_credit) , dept_code FROM course GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "sum", |
| "(", |
| "crs_credit", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "course", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "sum", |
| "(", |
| "crs_credit", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "course", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Tổng số tín chỉ mà mỗi khoa cung cấp là bao nhiêu ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "total", |
| "credit", |
| "does", |
| "each", |
| "department", |
| "offer", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 4, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT sum(crs_credit) , dept_code FROM course GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "sum", |
| "(", |
| "crs_credit", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "course", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "sum", |
| "(", |
| "crs_credit", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "course", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Mỗi khoa cung cấp tổng cộng bao nhiêu tín chỉ ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "credits", |
| "does", |
| "the", |
| "department", |
| "offer", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 4, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , class_room FROM CLASS GROUP BY class_room HAVING count(*) >= 2", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "class_room", |
| "FROM", |
| "CLASS", |
| "GROUP", |
| "BY", |
| "class_room", |
| "HAVING", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "=", |
| "2" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "class_room", |
| "from", |
| "class", |
| "group", |
| "by", |
| "class_room", |
| "having", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết số lượng lớp học đã được tổ chức ở các phòng học là nơi học tập của ít nhất 2 lớp học .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "classes", |
| "offered", |
| "for", |
| "all", |
| "class", |
| "rooms", |
| "that", |
| "held", |
| "at", |
| "least", |
| "2", |
| "classes", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 5, |
| false |
| ] |
| ], |
| "having": [ |
| [ |
| false, |
| 5, |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ], |
| 2.0, |
| null |
| ] |
| ], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , class_room FROM CLASS GROUP BY class_room HAVING count(*) >= 2", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "class_room", |
| "FROM", |
| "CLASS", |
| "GROUP", |
| "BY", |
| "class_room", |
| "HAVING", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "=", |
| "2" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "class_room", |
| "from", |
| "class", |
| "group", |
| "by", |
| "class_room", |
| "having", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "=", |
| "value" |
| ], |
| "question": "Đối với các phòng học là nơi học tập của ít nhất 2 lớp học , cho biết số lượng lớp học đã được dạy ở từng phòng học .", |
| "question_toks": [ |
| "For", |
| "each", |
| "classroom", |
| "with", |
| "at", |
| "least", |
| "2", |
| "classes", |
| ",", |
| "how", |
| "many", |
| "classes", |
| "are", |
| "offered", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 5, |
| false |
| ] |
| ], |
| "having": [ |
| [ |
| false, |
| 5, |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ], |
| 2.0, |
| null |
| ] |
| ], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "course", |
| "AS", |
| "T2", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T2.crs_code", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "course", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t2", |
| ".", |
| "crs_code", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Cho biết số lượng lớp học mà mỗi khoa đã tổ chức ?", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "classes", |
| "in", |
| "each", |
| "department", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "course", |
| "AS", |
| "T2", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T2.crs_code", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "course", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t2", |
| ".", |
| "crs_code", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Có bao nhiêu lớp học được tổ chức bởi mỗi khoa ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "classes", |
| "are", |
| "held", |
| "in", |
| "each", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "T3.school_code", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "course", |
| "AS", |
| "T2", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T2.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T2.dept_code", |
| "=", |
| "T3.dept_code", |
| "GROUP", |
| "BY", |
| "T3.school_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "t3", |
| ".", |
| "school_code", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "course", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t2", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t3", |
| ".", |
| "school_code" |
| ], |
| "question": "Đếm số lượng lớp học được tổ chức ở từng trường học .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "classes", |
| "in", |
| "each", |
| "school", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "T3.school_code", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "course", |
| "AS", |
| "T2", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T2.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T2.dept_code", |
| "=", |
| "T3.dept_code", |
| "GROUP", |
| "BY", |
| "T3.school_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "t3", |
| ".", |
| "school_code", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "course", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t2", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t3", |
| ".", |
| "school_code" |
| ], |
| "question": "Có bao nhiêu lớp học được tổ chức ở từng trường học ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "classes", |
| "exist", |
| "for", |
| "each", |
| "school", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "T1.school_code", |
| "FROM", |
| "department", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.school_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "t1", |
| ".", |
| "school_code", |
| "from", |
| "department", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "school_code" |
| ], |
| "question": "Đếm số lượng các giáo sư khác nhau ở từng trường học .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "number", |
| "of", |
| "professors", |
| "for", |
| "different", |
| "school", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "T1.school_code", |
| "FROM", |
| "department", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.school_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "t1", |
| ".", |
| "school_code", |
| "from", |
| "department", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "school_code" |
| ], |
| "question": "Mỗi trường học có bao nhiêu giáo sư khác nhau ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "different", |
| "professors", |
| "are", |
| "there", |
| "for", |
| "the", |
| "different", |
| "schools", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT emp_jobcode , count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "emp_jobcode", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "employee", |
| "GROUP", |
| "BY", |
| "emp_jobcode", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "emp_jobcode", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "employee", |
| "group", |
| "by", |
| "emp_jobcode", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Công việc nào hiện đang được đảm nhiệm bởi nhiều nhân viên nhất ? Cho biết mã của công việc này cũng như là số lượng nhân viên tương ứng .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "count", |
| "and", |
| "code", |
| "of", |
| "the", |
| "job", |
| "has", |
| "most", |
| "employees", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 21, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT emp_jobcode , count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "emp_jobcode", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "employee", |
| "GROUP", |
| "BY", |
| "emp_jobcode", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "emp_jobcode", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "employee", |
| "group", |
| "by", |
| "emp_jobcode", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Cho biết mã của công việc được đảm nhiệm bởi nhiều nhân viên nhất và số lượng nhân viên hiện đang đảm nhiệm công việc này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "count", |
| "and", |
| "code", |
| "of", |
| "the", |
| "job", |
| "with", |
| "the", |
| "most", |
| "employee", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 21, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T1.school_code", |
| "FROM", |
| "department", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.school_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "school_code", |
| "from", |
| "department", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "school_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "limit", |
| "value" |
| ], |
| "question": "Trường nào có số lượng giáo sư ít nhất ?", |
| "question_toks": [ |
| "Which", |
| "school", |
| "has", |
| "the", |
| "smallest", |
| "amount", |
| "of", |
| "professors", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T1.school_code", |
| "FROM", |
| "department", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.school_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "school_code", |
| "from", |
| "department", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "school_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "limit", |
| "value" |
| ], |
| "question": "Trường nào có ít giáo sư nhất ?", |
| "question_toks": [ |
| "Which", |
| "school", |
| "has", |
| "the", |
| "fewest", |
| "professors", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 13, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "professor", |
| "WHERE", |
| "prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "professor", |
| "where", |
| "prof_high_degree", |
| "=", |
| "value", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Tìm số lượng giáo sư có bằng ' Tiến sĩ ' ở mỗi khoa .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "professors", |
| "with", |
| "a", |
| "Ph.D.", |
| "degree", |
| "in", |
| "each", |
| "department", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 28, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "professor", |
| "WHERE", |
| "prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "professor", |
| "where", |
| "prof_high_degree", |
| "=", |
| "value", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Mỗi khoa có bao nhiêu giáo sư đã tốt nghiệp chương trình ' Tiến sĩ ' ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "professors", |
| "have", |
| "a", |
| "Ph.D.", |
| "in", |
| "each", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 28, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , dept_code FROM student GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "student", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "student", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Tìm số lượng sinh viên đang theo học ở mỗi khoa .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "students", |
| "for", |
| "each", |
| "department", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) , dept_code FROM student GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "student", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "student", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Có bao nhiêu sinh viên ở mỗi khoa ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "students", |
| "are", |
| "in", |
| "each", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT sum(stu_hrs) , dept_code FROM student GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "sum", |
| "(", |
| "stu_hrs", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "student", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "sum", |
| "(", |
| "stu_hrs", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "student", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Cho biết tổng số giờ học đã được hoàn thành bởi các sinh viên ở mỗi khoa .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "total", |
| "number", |
| "of", |
| "hours", |
| "have", |
| "done", |
| "for", |
| "all", |
| "students", |
| "in", |
| "each", |
| "department", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 4, |
| [ |
| 0, |
| [ |
| 0, |
| 37, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT sum(stu_hrs) , dept_code FROM student GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "sum", |
| "(", |
| "stu_hrs", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "student", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "sum", |
| "(", |
| "stu_hrs", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "student", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Các sinh viên ở mỗi khoa đã dành tổng cộng bao nhiêu thời gian cho việc học ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "hours", |
| "do", |
| "the", |
| "students", |
| "spend", |
| "studying", |
| "in", |
| "each", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 4, |
| [ |
| 0, |
| [ |
| 0, |
| 37, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "max", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "avg", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "min", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "student", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "max", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "avg", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "min", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "student", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Cho biết điểm gpa trung bình của từng khoa cũng như là điểm gpa của sinh viên có điểm số cao nhất và điểm gpa của sinh viên có điểm số thấp nhất ở mỗi khoa .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "max", |
| ",", |
| "average", |
| ",", |
| "and", |
| "minimum", |
| "gpa", |
| "of", |
| "all", |
| "students", |
| "in", |
| "each", |
| "department", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code", |
| "query_toks": [ |
| "SELECT", |
| "max", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "avg", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "min", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "dept_code", |
| "FROM", |
| "student", |
| "GROUP", |
| "BY", |
| "dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "max", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "avg", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "min", |
| "(", |
| "stu_gpa", |
| ")", |
| ",", |
| "dept_code", |
| "from", |
| "student", |
| "group", |
| "by", |
| "dept_code" |
| ], |
| "question": "Điểm gpa của sinh viên đạt điểm số cao nhất và điểm gpa của sinh viên đạt điểm số thấp nhất ở mỗi khoa là bao nhiêu ? Đồng thời , cho biết điểm gpa trung bình ở từng khoa .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "highest", |
| ",", |
| "lowest", |
| ",", |
| "and", |
| "average", |
| "student", |
| "GPA", |
| "for", |
| "every", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name , avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| ",", |
| "avg", |
| "(", |
| "T1.stu_gpa", |
| ")", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "avg", |
| "(", |
| "T1.stu_gpa", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| ",", |
| "avg", |
| "(", |
| "t1", |
| ".", |
| "stu_gpa", |
| ")", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "avg", |
| "(", |
| "t1", |
| ".", |
| "stu_gpa", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Cho biết tên và điểm gpa trung bình của khoa có điểm gpa trung bình cao nhất .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "the", |
| "average", |
| "gpa", |
| "of", |
| "department", |
| "whose", |
| "students", |
| "have", |
| "the", |
| "highest", |
| "average", |
| "gpa", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 5, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name , avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| ",", |
| "avg", |
| "(", |
| "T1.stu_gpa", |
| ")", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "avg", |
| "(", |
| "T1.stu_gpa", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| ",", |
| "avg", |
| "(", |
| "t1", |
| ".", |
| "stu_gpa", |
| ")", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "avg", |
| "(", |
| "t1", |
| ".", |
| "stu_gpa", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Khoa nào có điểm gpa trung bình cao nhất và điểm số này là bao nhiêu ?", |
| "question_toks": [ |
| "Which", |
| "department", |
| "has", |
| "the", |
| "highest", |
| "average", |
| "student", |
| "GPA", |
| ",", |
| "and", |
| "what", |
| "is", |
| "the", |
| "average", |
| "gpa", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 5, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT school_code) FROM department", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "school_code", |
| ")", |
| "FROM", |
| "department" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "school_code", |
| ")", |
| "from", |
| "department" |
| ], |
| "question": "Có tất cả bao nhiêu trường học ?", |
| "question_toks": [ |
| "how", |
| "many", |
| "schools", |
| "exist", |
| "in", |
| "total", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT school_code) FROM department", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "school_code", |
| ")", |
| "FROM", |
| "department" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "school_code", |
| ")", |
| "from", |
| "department" |
| ], |
| "question": "Đếm số lượng các trường học khác nhau .", |
| "question_toks": [ |
| "How", |
| "many", |
| "schools", |
| "are", |
| "there", |
| "in", |
| "the", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT class_code) FROM CLASS", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "class_code", |
| ")", |
| "FROM", |
| "CLASS" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "class_code", |
| ")", |
| "from", |
| "class" |
| ], |
| "question": "Có bao nhiêu lớp học khác nhau ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "different", |
| "classes", |
| "are", |
| "there", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT class_code) FROM CLASS", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "class_code", |
| ")", |
| "FROM", |
| "CLASS" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "class_code", |
| ")", |
| "from", |
| "class" |
| ], |
| "question": "Có bao nhiêu lớp học khác nhau đang được giảng dạy ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "unique", |
| "classes", |
| "are", |
| "offered", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT crs_code) FROM CLASS", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "crs_code", |
| ")", |
| "FROM", |
| "CLASS" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "crs_code", |
| ")", |
| "from", |
| "class" |
| ], |
| "question": "Có bao nhiêu khoá học được cung cấp ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "courses", |
| "are", |
| "offered", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT crs_code) FROM CLASS", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "crs_code", |
| ")", |
| "FROM", |
| "CLASS" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "crs_code", |
| ")", |
| "from", |
| "class" |
| ], |
| "question": "Đếm số lượng các khoá học khác nhau .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "number", |
| "of", |
| "different", |
| "course", |
| "codes", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_name) FROM department", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_name", |
| ")", |
| "FROM", |
| "department" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_name", |
| ")", |
| "from", |
| "department" |
| ], |
| "question": "Có tất cả bao nhiêu khoa ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "departments", |
| "does", |
| "the", |
| "college", |
| "has", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT dept_name) FROM department", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "dept_name", |
| ")", |
| "FROM", |
| "department" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "dept_name", |
| ")", |
| "from", |
| "department" |
| ], |
| "question": "Đếm số lượng các khoa khác nhau .", |
| "question_toks": [ |
| "How", |
| "many", |
| "different", |
| "departments", |
| "are", |
| "there", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = \"Computer Info. Systems\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "department", |
| "AS", |
| "T1", |
| "JOIN", |
| "course", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "dept_name", |
| "=", |
| "``", |
| "Computer", |
| "Info", |
| ".", |
| "Systems", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "department", |
| "as", |
| "t1", |
| "join", |
| "course", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu khoá học được cung cấp bởi khoa ' Hệ thống thông tin máy tính ' ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "courses", |
| "are", |
| "offered", |
| "by", |
| "the", |
| "Computer", |
| "Info", |
| ".", |
| "Systems", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Computer Info. Systems\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = \"Computer Info. Systems\"", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "department", |
| "AS", |
| "T1", |
| "JOIN", |
| "course", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "dept_name", |
| "=", |
| "``", |
| "Computer", |
| "Info", |
| ".", |
| "Systems", |
| "''" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "department", |
| "as", |
| "t1", |
| "join", |
| "course", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Khoa ' Hệ thống thông tin máy tính ' đã cung cấp bao nhiêu khoá học ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "courses", |
| "does", |
| "the", |
| "department", |
| "of", |
| "Computer", |
| "Information", |
| "Systmes", |
| "offer", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Computer Info. Systems\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "class_section", |
| ")", |
| "FROM", |
| "CLASS", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'ACCT-211", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "class_section", |
| ")", |
| "from", |
| "class", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Khoá học ACCT-211 có bao nhiêu lớp học phần ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "sections", |
| "does", |
| "course", |
| "ACCT-211", |
| "has", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "DISTINCT", |
| "class_section", |
| ")", |
| "FROM", |
| "CLASS", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'ACCT-211", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "distinct", |
| "class_section", |
| ")", |
| "from", |
| "class", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết số lượng lớp học phần khác nhau được cung cấp bởi khoá học ACCT-211 .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "number", |
| "of", |
| "different", |
| "class", |
| "sections", |
| "offered", |
| "in", |
| "the", |
| "course", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| true |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT sum(T1.crs_credit) , T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code", |
| "query_toks": [ |
| "SELECT", |
| "sum", |
| "(", |
| "T1.crs_credit", |
| ")", |
| ",", |
| "T1.dept_code", |
| "FROM", |
| "course", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T2.crs_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "sum", |
| "(", |
| "t1", |
| ".", |
| "crs_credit", |
| ")", |
| ",", |
| "t1", |
| ".", |
| "dept_code", |
| "from", |
| "course", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t2", |
| ".", |
| "crs_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code" |
| ], |
| "question": "Cho biết tổng số tín chỉ được cung cấp bởi mỗi khoa .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "total", |
| "credits", |
| "of", |
| "all", |
| "classes", |
| "offered", |
| "by", |
| "each", |
| "department", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 4, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT sum(T1.crs_credit) , T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code", |
| "query_toks": [ |
| "SELECT", |
| "sum", |
| "(", |
| "T1.crs_credit", |
| ")", |
| ",", |
| "T1.dept_code", |
| "FROM", |
| "course", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T2.crs_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "sum", |
| "(", |
| "t1", |
| ".", |
| "crs_credit", |
| ")", |
| ",", |
| "t1", |
| ".", |
| "dept_code", |
| "from", |
| "course", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t2", |
| ".", |
| "crs_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code" |
| ], |
| "question": "Tổng số tín chỉ được cung cấp bởi mỗi khoa là bao nhiêu ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "total", |
| "number", |
| "of", |
| "credits", |
| "offered", |
| "by", |
| "each", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 4, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T3.dept_name", |
| "FROM", |
| "course", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T2.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T3.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "sum", |
| "(", |
| "T1.crs_credit", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "dept_name", |
| "from", |
| "course", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t2", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "sum", |
| "(", |
| "t1", |
| ".", |
| "crs_credit", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Cho biết tên của khoa cung cấp nhiều tín chỉ nhất .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "name", |
| "of", |
| "the", |
| "department", |
| "that", |
| "offers", |
| "the", |
| "largest", |
| "number", |
| "of", |
| "credits", |
| "of", |
| "all", |
| "classes", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 4, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T3.dept_name", |
| "FROM", |
| "course", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T2.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T3.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "sum", |
| "(", |
| "T1.crs_credit", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "dept_name", |
| "from", |
| "course", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t2", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "sum", |
| "(", |
| "t1", |
| ".", |
| "crs_credit", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Khoa nào cung cấp nhiều tín chỉ nhất ?", |
| "question_toks": [ |
| "Which", |
| "department", |
| "offers", |
| "the", |
| "most", |
| "credits", |
| "all", |
| "together", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 4, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "WHERE", |
| "T1.crs_code", |
| "=", |
| "'ACCT-211", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "where", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu sinh viên đã đăng ký khoá học ACCT-211 ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "students", |
| "enrolled", |
| "in", |
| "class", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "WHERE", |
| "T1.crs_code", |
| "=", |
| "'ACCT-211", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "where", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Đếm số lượng sinh viên đã đăng ký khoá học ACCT-211 .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "total", |
| "number", |
| "of", |
| "students", |
| "enrolled", |
| "in", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211'", |
| "query_toks": [ |
| "SELECT", |
| "T3.stu_fname", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "student", |
| "AS", |
| "T3", |
| "ON", |
| "T2.stu_num", |
| "=", |
| "T3.stu_num", |
| "WHERE", |
| "T1.crs_code", |
| "=", |
| "'ACCT-211", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "stu_fname", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "stu_num", |
| "=", |
| "t3", |
| ".", |
| "stu_num", |
| "where", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên của các sinh viên đã đăng ký khoá học ACCT-211 .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "name", |
| "of", |
| "each", |
| "student", |
| "enrolled", |
| "in", |
| "class", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211'", |
| "query_toks": [ |
| "SELECT", |
| "T3.stu_fname", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "student", |
| "AS", |
| "T3", |
| "ON", |
| "T2.stu_num", |
| "=", |
| "T3.stu_num", |
| "WHERE", |
| "T1.crs_code", |
| "=", |
| "'ACCT-211", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "stu_fname", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "stu_num", |
| "=", |
| "t3", |
| ".", |
| "stu_num", |
| "where", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Những sinh viên theo học khoá học ACCT-211 có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "students", |
| "in", |
| "course", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'", |
| "query_toks": [ |
| "SELECT", |
| "T3.stu_fname", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "student", |
| "AS", |
| "T3", |
| "ON", |
| "T2.stu_num", |
| "=", |
| "T3.stu_num", |
| "WHERE", |
| "T1.crs_code", |
| "=", |
| "'ACCT-211", |
| "'", |
| "AND", |
| "T2.enroll_grade", |
| "=", |
| "'C", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "stu_fname", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "stu_num", |
| "=", |
| "t3", |
| ".", |
| "stu_num", |
| "where", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "value", |
| "and", |
| "t2", |
| ".", |
| "enroll_grade", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên của các sinh viên đã đăng ký khoá học ACCT-211 và đạt điểm C.", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "name", |
| "of", |
| "students", |
| "enrolled", |
| "in", |
| "class", |
| "ACCT-211", |
| "and", |
| "got", |
| "grade", |
| "C", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"C\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'", |
| "query_toks": [ |
| "SELECT", |
| "T3.stu_fname", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "student", |
| "AS", |
| "T3", |
| "ON", |
| "T2.stu_num", |
| "=", |
| "T3.stu_num", |
| "WHERE", |
| "T1.crs_code", |
| "=", |
| "'ACCT-211", |
| "'", |
| "AND", |
| "T2.enroll_grade", |
| "=", |
| "'C", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "stu_fname", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "stu_num", |
| "=", |
| "t3", |
| ".", |
| "stu_num", |
| "where", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "value", |
| "and", |
| "t2", |
| ".", |
| "enroll_grade", |
| "=", |
| "value" |
| ], |
| "question": "Những sinh viên đã đăng ký khoá học ACCT-211 và đạt được điểm C có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "students", |
| "who", |
| "took", |
| "ACCT-211", |
| "and", |
| "received", |
| "a", |
| "C", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"C\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM employee", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "employee" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "employee" |
| ], |
| "question": "Cho biết số lượng nhân viên .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "total", |
| "number", |
| "of", |
| "employees", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM employee", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "employee" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "employee" |
| ], |
| "question": "Có bao nhiêu nhân viên tất cả ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "employees", |
| "are", |
| "there", |
| "all", |
| "together", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "professor", |
| "WHERE", |
| "prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "professor", |
| "where", |
| "prof_high_degree", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu giáo sư có bằng ' Tiến sĩ ' ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "professors", |
| "do", |
| "have", |
| "a", |
| "Ph.D.", |
| "degree", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "professor", |
| "WHERE", |
| "prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "professor", |
| "where", |
| "prof_high_degree", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết số lượng các giáo sư có bằng ' Tiến sĩ ' .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "total", |
| "number", |
| "of", |
| "professors", |
| "with", |
| "a", |
| "Ph.D.", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T4", |
| "ON", |
| "T3.dept_code", |
| "=", |
| "T4.dept_code", |
| "WHERE", |
| "T4.dept_name", |
| "=", |
| "'Accounting", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "dept_code", |
| "=", |
| "t4", |
| ".", |
| "dept_code", |
| "where", |
| "t4", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu sinh viên đang theo học các lớp học được giảng dạy bởi một số giáo sư đến từ khoa ' Kế toán ' ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "students", |
| "are", |
| "enrolled", |
| "in", |
| "the", |
| "class", |
| "taught", |
| "by", |
| "some", |
| "professor", |
| "from", |
| "the", |
| "accounting", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T4", |
| "ON", |
| "T3.dept_code", |
| "=", |
| "T4.dept_code", |
| "WHERE", |
| "T4.dept_name", |
| "=", |
| "'Accounting", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "dept_code", |
| "=", |
| "t4", |
| ".", |
| "dept_code", |
| "where", |
| "t4", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Đếm số lượng các sinh viên đang theo học một số lớp học được giảng dạy bởi một số giáo sư thuộc khoa ' Kế toán ' .", |
| "question_toks": [ |
| "How", |
| "many", |
| "students", |
| "are", |
| "enrolled", |
| "in", |
| "some", |
| "classes", |
| "that", |
| "are", |
| "taught", |
| "by", |
| "an", |
| "accounting", |
| "professor", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T4.dept_name", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T4", |
| "ON", |
| "T3.dept_code", |
| "=", |
| "T4.dept_code", |
| "GROUP", |
| "BY", |
| "T3.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t4", |
| ".", |
| "dept_name", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "dept_code", |
| "=", |
| "t4", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t3", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Cho biết tên của khoa có số lượng sinh viên theo học nhiều nhất .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "of", |
| "the", |
| "department", |
| "that", |
| "has", |
| "the", |
| "largest", |
| "number", |
| "of", |
| "students", |
| "enrolled", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T4.dept_name", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T4", |
| "ON", |
| "T3.dept_code", |
| "=", |
| "T4.dept_code", |
| "GROUP", |
| "BY", |
| "T3.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t4", |
| ".", |
| "dept_name", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "dept_code", |
| "=", |
| "t4", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t3", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Khoa nào có nhiều sinh viên theo học nhất ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "of", |
| "the", |
| "department", |
| "with", |
| "the", |
| "most", |
| "students", |
| "enrolled", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT dept_name FROM department ORDER BY dept_name", |
| "query_toks": [ |
| "SELECT", |
| "dept_name", |
| "FROM", |
| "department", |
| "ORDER", |
| "BY", |
| "dept_name" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "dept_name", |
| "from", |
| "department", |
| "order", |
| "by", |
| "dept_name" |
| ], |
| "question": "Liệt kê tên của tất cả các khoa và sắp xếp kết quả theo thứ tự bảng chữ cái tăng dần .", |
| "question_toks": [ |
| "list", |
| "names", |
| "of", |
| "all", |
| "departments", |
| "ordered", |
| "by", |
| "their", |
| "names", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT dept_name FROM department ORDER BY dept_name", |
| "query_toks": [ |
| "SELECT", |
| "dept_name", |
| "FROM", |
| "department", |
| "ORDER", |
| "BY", |
| "dept_name" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "dept_name", |
| "from", |
| "department", |
| "order", |
| "by", |
| "dept_name" |
| ], |
| "question": "Hiển thị tên của tất cả các khoa theo thứ tự bảng chữ cái .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "all", |
| "departments", |
| "in", |
| "alphabetical", |
| "order", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT class_code FROM CLASS WHERE class_room = 'KLR209'", |
| "query_toks": [ |
| "SELECT", |
| "class_code", |
| "FROM", |
| "CLASS", |
| "WHERE", |
| "class_room", |
| "=", |
| "'KLR209", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "class_code", |
| "from", |
| "class", |
| "where", |
| "class_room", |
| "=", |
| "value" |
| ], |
| "question": "Liệt kê mã của tất cả các khoá học diễn ra ở phòng học KLR 209 .", |
| "question_toks": [ |
| "List", |
| "the", |
| "codes", |
| "of", |
| "all", |
| "courses", |
| "that", |
| "take", |
| "place", |
| "in", |
| "room", |
| "KLR209", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| "\"KLR209\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT class_code FROM CLASS WHERE class_room = 'KLR209'", |
| "query_toks": [ |
| "SELECT", |
| "class_code", |
| "FROM", |
| "CLASS", |
| "WHERE", |
| "class_room", |
| "=", |
| "'KLR209", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "class_code", |
| "from", |
| "class", |
| "where", |
| "class_room", |
| "=", |
| "value" |
| ], |
| "question": "Những khoá học nào đã được dạy ở phòng học KLR 209 ? Cho biết mã của những khoá học này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "codes", |
| "of", |
| "all", |
| "the", |
| "courses", |
| "that", |
| "are", |
| "located", |
| "in", |
| "room", |
| "KLR209", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ], |
| "\"KLR209\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob", |
| "query_toks": [ |
| "SELECT", |
| "emp_fname", |
| "FROM", |
| "employee", |
| "WHERE", |
| "emp_jobcode", |
| "=", |
| "'PROF", |
| "'", |
| "ORDER", |
| "BY", |
| "emp_dob" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "emp_fname", |
| "from", |
| "employee", |
| "where", |
| "emp_jobcode", |
| "=", |
| "value", |
| "order", |
| "by", |
| "emp_dob" |
| ], |
| "question": "Liệt kê tên của tất cả các nhân viên có mã công việc là ' Giáo sư ' và sắp xếp kết quả theo thứ tự ngày sinh của từng nhân viên .", |
| "question_toks": [ |
| "List", |
| "the", |
| "first", |
| "name", |
| "of", |
| "all", |
| "employees", |
| "with", |
| "job", |
| "code", |
| "PROF", |
| "ordered", |
| "by", |
| "their", |
| "date", |
| "of", |
| "birth", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 23, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ], |
| "\"PROF\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob", |
| "query_toks": [ |
| "SELECT", |
| "emp_fname", |
| "FROM", |
| "employee", |
| "WHERE", |
| "emp_jobcode", |
| "=", |
| "'PROF", |
| "'", |
| "ORDER", |
| "BY", |
| "emp_dob" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "emp_fname", |
| "from", |
| "employee", |
| "where", |
| "emp_jobcode", |
| "=", |
| "value", |
| "order", |
| "by", |
| "emp_dob" |
| ], |
| "question": "Sắp xếp tên của tất cả các nhân viên có chức danh là ' Giáo sư ' theo thứ tự ngày sinh của mỗi người .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "employees", |
| "that", |
| "are", |
| "professors", |
| "ordered", |
| "by", |
| "date", |
| "of", |
| "birth", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 23, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ], |
| "\"PROF\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T1.prof_office", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "ORDER", |
| "BY", |
| "T2.emp_fname" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "prof_office", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "order", |
| "by", |
| "t2", |
| ".", |
| "emp_fname" |
| ], |
| "question": "Cho biết tên cũng như là văn phòng của tất cả các ' Giáo sư ' và sắp xếp kết quả theo thứ tự bảng chữ cái tăng dần của tên .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "names", |
| "and", |
| "offices", |
| "of", |
| "all", |
| "professors", |
| "sorted", |
| "by", |
| "alphabetical", |
| "order", |
| "of", |
| "their", |
| "first", |
| "name", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T1.prof_office", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "ORDER", |
| "BY", |
| "T2.emp_fname" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "prof_office", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "order", |
| "by", |
| "t2", |
| ".", |
| "emp_fname" |
| ], |
| "question": "Sắp xếp tên và địa điểm văn phòng của tất cả các ' Giáo sư ' theo thứ tự bảng chữ cái của tên .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "and", |
| "office", |
| "locations", |
| "for", |
| "all", |
| "professors", |
| "sorted", |
| "alphabetically", |
| "by", |
| "first", |
| "name", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT emp_fname , emp_lname FROM employee ORDER BY emp_dob LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "emp_fname", |
| ",", |
| "emp_lname", |
| "FROM", |
| "employee", |
| "ORDER", |
| "BY", |
| "emp_dob", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "emp_fname", |
| ",", |
| "emp_lname", |
| "from", |
| "employee", |
| "order", |
| "by", |
| "emp_dob", |
| "limit", |
| "value" |
| ], |
| "question": "Cho biết tên và họ của nhân viên lớn tuổi nhất .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "and", |
| "last", |
| "name", |
| "of", |
| "the", |
| "oldest", |
| "employee", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 23, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT emp_fname , emp_lname FROM employee ORDER BY emp_dob LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "emp_fname", |
| ",", |
| "emp_lname", |
| "FROM", |
| "employee", |
| "ORDER", |
| "BY", |
| "emp_dob", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "emp_fname", |
| ",", |
| "emp_lname", |
| "from", |
| "employee", |
| "order", |
| "by", |
| "emp_dob", |
| "limit", |
| "value" |
| ], |
| "question": "Nhân viên nào có ngày sinh sớm nhất ? Cho biết tên và họ của nhân viên này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "and", |
| "last", |
| "names", |
| "of", |
| "the", |
| "employee", |
| "with", |
| "the", |
| "earliest", |
| "date", |
| "of", |
| "birth", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 23, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "stu_fname", |
| ",", |
| "stu_lname", |
| ",", |
| "stu_gpa", |
| "FROM", |
| "student", |
| "WHERE", |
| "stu_gpa", |
| ">", |
| "3", |
| "ORDER", |
| "BY", |
| "stu_dob", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stu_fname", |
| ",", |
| "stu_lname", |
| ",", |
| "stu_gpa", |
| "from", |
| "student", |
| "where", |
| "stu_gpa", |
| ">", |
| "value", |
| "order", |
| "by", |
| "stu_dob", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Cho biết tên , họ và điểm trung bình của người trẻ nhất trong số những sinh viên có điểm trung bình cao hơn 3 .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| ",", |
| "last", |
| "name", |
| ",", |
| "gpa", |
| "of", |
| "the", |
| "youngest", |
| "one", |
| "among", |
| "students", |
| "whose", |
| "GPA", |
| "is", |
| "above", |
| "3", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 36, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ], |
| 3.0, |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "stu_fname", |
| ",", |
| "stu_lname", |
| ",", |
| "stu_gpa", |
| "FROM", |
| "student", |
| "WHERE", |
| "stu_gpa", |
| ">", |
| "3", |
| "ORDER", |
| "BY", |
| "stu_dob", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stu_fname", |
| ",", |
| "stu_lname", |
| ",", |
| "stu_gpa", |
| "from", |
| "student", |
| "where", |
| "stu_gpa", |
| ">", |
| "value", |
| "order", |
| "by", |
| "stu_dob", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Siinh viên nào là người trẻ tuổi nhất trong số các sinh viên có điểm trung bình cao hơn 3 ? Cho biết tên , họ và điểm trung bình của sinh viên này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "and", |
| "last", |
| "name", |
| "of", |
| "the", |
| "youngest", |
| "student", |
| "with", |
| "a", |
| "GPA", |
| "above", |
| "3", |
| ",", |
| "and", |
| "what", |
| "is", |
| "their", |
| "GPA", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 36, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ], |
| 3.0, |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C'", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "WHERE", |
| "enroll_grade", |
| "=", |
| "'C", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "where", |
| "enroll_grade", |
| "=", |
| "value" |
| ], |
| "question": "Các sinh viên đã từng đạt điểm C có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "name", |
| "of", |
| "students", |
| "who", |
| "got", |
| "grade", |
| "C", |
| "in", |
| "any", |
| "class", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"C\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C'", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "WHERE", |
| "enroll_grade", |
| "=", |
| "'C", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "where", |
| "enroll_grade", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên của tất cả các sinh viên đã đạt điểm C trong một số lớp học .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "students", |
| "who", |
| "got", |
| "a", |
| "grade", |
| "C", |
| "in", |
| "a", |
| "class", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"C\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "limit", |
| "value" |
| ], |
| "question": "Khoa nào có ít giáo sư nhất ? Cho biết tên của khoa này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "of", |
| "department", |
| "where", |
| "has", |
| "the", |
| "smallest", |
| "number", |
| "of", |
| "professors", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 28, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "limit", |
| "value" |
| ], |
| "question": "Cho biết tên của khoa có ít giáo sư nhất .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "of", |
| "the", |
| "department", |
| "with", |
| "the", |
| "fewest", |
| "professors", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 28, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name , T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| ",", |
| "T1.dept_code", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "T1.prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| ",", |
| "t1", |
| ".", |
| "dept_code", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "t1", |
| ".", |
| "prof_high_degree", |
| "=", |
| "value", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Khoa nào có nhiều giáo sư đã tốt nghiệp tiến sĩ nhất ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "of", |
| "department", |
| "where", |
| "has", |
| "the", |
| "largest", |
| "number", |
| "of", |
| "professors", |
| "with", |
| "a", |
| "Ph.D.", |
| "degree", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 28, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name , T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| ",", |
| "T1.dept_code", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "T1.prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| ",", |
| "t1", |
| ".", |
| "dept_code", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "t1", |
| ".", |
| "prof_high_degree", |
| "=", |
| "value", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Khoa có nhiều giáo sư đã tốt nghiệp tiến sĩ nhất tên là gì ?", |
| "question_toks": [ |
| "Which", |
| "department", |
| "has", |
| "the", |
| "most", |
| "professors", |
| "with", |
| "a", |
| "Ph.D.", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 28, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num", |
| "query_toks": [ |
| "SELECT", |
| "emp_fname", |
| "FROM", |
| "employee", |
| "WHERE", |
| "emp_jobcode", |
| "=", |
| "'PROF", |
| "'", |
| "EXCEPT", |
| "SELECT", |
| "T1.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.prof_num" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "emp_fname", |
| "from", |
| "employee", |
| "where", |
| "emp_jobcode", |
| "=", |
| "value", |
| "except", |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num" |
| ], |
| "question": "Cho biết tên của các giáo sư đã không dạy bất kỳ lớp nào .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "the", |
| "professors", |
| "who", |
| "do", |
| "not", |
| "teach", |
| "a", |
| "class", |
| "." |
| ], |
| "sql": { |
| "except": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| }, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ], |
| "\"PROF\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num", |
| "query_toks": [ |
| "SELECT", |
| "emp_fname", |
| "FROM", |
| "employee", |
| "WHERE", |
| "emp_jobcode", |
| "=", |
| "'PROF", |
| "'", |
| "EXCEPT", |
| "SELECT", |
| "T1.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.prof_num" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "emp_fname", |
| "from", |
| "employee", |
| "where", |
| "emp_jobcode", |
| "=", |
| "value", |
| "except", |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num" |
| ], |
| "question": "Những giáo sư không tham gia giảng dạy có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "professors", |
| "not", |
| "teaching", |
| "any", |
| "classes", |
| "?" |
| ], |
| "sql": { |
| "except": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| }, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ], |
| "\"PROF\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T2.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T3.dept_name", |
| "=", |
| "'History", |
| "'", |
| "EXCEPT", |
| "SELECT", |
| "T4.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T4", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T5", |
| "ON", |
| "T4.emp_num", |
| "=", |
| "T5.prof_num" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t3", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "except", |
| "select", |
| "t4", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t4", |
| "join", |
| "class", |
| "as", |
| "t5", |
| "on", |
| "t4", |
| ".", |
| "emp_num", |
| "=", |
| "t5", |
| ".", |
| "prof_num" |
| ], |
| "question": "Cho biết tên của các giáo sư đến từ khoa ' Lịch sử ' và không dạy bất kỳ lớp nào .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "names", |
| "of", |
| "the", |
| "professors", |
| "from", |
| "the", |
| "history", |
| "department", |
| "who", |
| "do", |
| "not", |
| "teach", |
| "a", |
| "class", |
| "." |
| ], |
| "sql": { |
| "except": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| }, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T2.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T3.dept_name", |
| "=", |
| "'History", |
| "'", |
| "EXCEPT", |
| "SELECT", |
| "T4.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T4", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T5", |
| "ON", |
| "T4.emp_num", |
| "=", |
| "T5.prof_num" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t3", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "except", |
| "select", |
| "t4", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t4", |
| "join", |
| "class", |
| "as", |
| "t5", |
| "on", |
| "t4", |
| ".", |
| "emp_num", |
| "=", |
| "t5", |
| ".", |
| "prof_num" |
| ], |
| "question": "Cho biết tên của các giáo sư thuộc khoa ' Lịch sử ' và không tham gia giảng dạy .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "history", |
| "professors", |
| "who", |
| "do", |
| "not", |
| "teach", |
| "?" |
| ], |
| "sql": { |
| "except": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| }, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_lname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_lname", |
| ",", |
| "T2.prof_office", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T2.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T3.dept_name", |
| "=", |
| "'History", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_lname", |
| ",", |
| "t2", |
| ".", |
| "prof_office", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t3", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết họ và địa điểm văn phòng của các giáo sư đến từ khoa ' Lịch sử ' .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "last", |
| "name", |
| "and", |
| "office", |
| "of", |
| "the", |
| "professor", |
| "from", |
| "the", |
| "history", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_lname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_lname", |
| ",", |
| "T2.prof_office", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T2.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T3.dept_name", |
| "=", |
| "'History", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_lname", |
| ",", |
| "t2", |
| ".", |
| "prof_office", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t3", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Những giáo sư đến từ khoa ' Lịch sử ' có họ là gì ? Cho biết địa điểm văn phòng của những giáo sư này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "last", |
| "name", |
| "and", |
| "office", |
| "of", |
| "all", |
| "history", |
| "professors", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.dept_name , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'", |
| "query_toks": [ |
| "SELECT", |
| "T3.dept_name", |
| ",", |
| "T2.prof_office", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T2.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T1.emp_lname", |
| "=", |
| "'Heffington", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "dept_name", |
| ",", |
| "t2", |
| ".", |
| "prof_office", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t1", |
| ".", |
| "emp_lname", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết địa điểm văn phòng của giáo sư có họ là ' Heffington ' ? Đồng thời cho biết khoa mà giáo sư này đến từ .", |
| "question_toks": [ |
| "What", |
| "is", |
| "department", |
| "name", |
| "and", |
| "office", |
| "for", |
| "the", |
| "professor", |
| "whose", |
| "last", |
| "name", |
| "is", |
| "Heffington", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| "\"Heffington\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T3.dept_name , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'", |
| "query_toks": [ |
| "SELECT", |
| "T3.dept_name", |
| ",", |
| "T2.prof_office", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T2.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T1.emp_lname", |
| "=", |
| "'Heffington", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t3", |
| ".", |
| "dept_name", |
| ",", |
| "t2", |
| ".", |
| "prof_office", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t1", |
| ".", |
| "emp_lname", |
| "=", |
| "value" |
| ], |
| "question": "Giáo sư có họ là ' Heffington ' thuộc khoa nào ? Đồng thời cho biết địa điểm văn phòng của giáo sư này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "of", |
| "the", |
| "department", |
| "and", |
| "office", |
| "location", |
| "for", |
| "the", |
| "professor", |
| "with", |
| "the", |
| "last", |
| "name", |
| "of", |
| "Heffington", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| "\"Heffington\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_lname", |
| ",", |
| "T1.emp_hiredate", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "WHERE", |
| "T2.prof_office", |
| "=", |
| "'DRE", |
| "102", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_lname", |
| ",", |
| "t1", |
| ".", |
| "emp_hiredate", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "where", |
| "t2", |
| ".", |
| "prof_office", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết họ và ngày bắt đầu công việc của các giáo sư hiện đang ở văn phòng DRE 102 .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "last", |
| "name", |
| "and", |
| "hire", |
| "date", |
| "of", |
| "the", |
| "professor", |
| "who", |
| "is", |
| "in", |
| "office", |
| "DRE", |
| "102", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 22, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ], |
| "\"DRE 102\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_lname", |
| ",", |
| "T1.emp_hiredate", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "WHERE", |
| "T2.prof_office", |
| "=", |
| "'DRE", |
| "102", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_lname", |
| ",", |
| "t1", |
| ".", |
| "emp_hiredate", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "where", |
| "t2", |
| ".", |
| "prof_office", |
| "=", |
| "value" |
| ], |
| "question": "Các giáo sư hiện đang làm việc ở văn phòng DRE 102 có họ là gì và mỗi người trong số họ bắt đầu công việc vào thời điểm nào ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "last", |
| "name", |
| "of", |
| "the", |
| "professor", |
| "whose", |
| "office", |
| "is", |
| "located", |
| "in", |
| "DRE", |
| "102", |
| ",", |
| "and", |
| "when", |
| "were", |
| "they", |
| "hired", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 22, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ], |
| "\"DRE 102\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson'", |
| "query_toks": [ |
| "SELECT", |
| "T1.crs_code", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "student", |
| "AS", |
| "T3", |
| "ON", |
| "T3.stu_num", |
| "=", |
| "T2.stu_num", |
| "WHERE", |
| "T3.stu_lname", |
| "=", |
| "'Smithson", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "crs_code", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t3", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "where", |
| "t3", |
| ".", |
| "stu_lname", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết mã của các khoá học mà sinh viên có họ là ' Smithson ' đã theo học .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "code", |
| "of", |
| "the", |
| "course", |
| "which", |
| "the", |
| "student", |
| "whose", |
| "last", |
| "name", |
| "is", |
| "Smithson", |
| "took", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ], |
| "\"Smithson\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson'", |
| "query_toks": [ |
| "SELECT", |
| "T1.crs_code", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "student", |
| "AS", |
| "T3", |
| "ON", |
| "T3.stu_num", |
| "=", |
| "T2.stu_num", |
| "WHERE", |
| "T3.stu_lname", |
| "=", |
| "'Smithson", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "crs_code", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t3", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "where", |
| "t3", |
| ".", |
| "stu_lname", |
| "=", |
| "value" |
| ], |
| "question": "Sinh viên có họ là ' Smithson ' đã đăng ký những khoá học nào ? Cho biết mã của những khoá học này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "course", |
| "codes", |
| "for", |
| "every", |
| "class", |
| "that", |
| "the", |
| "student", |
| "with", |
| "the", |
| "last", |
| "name", |
| "Smithson", |
| "took", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ], |
| "\"Smithson\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T4.crs_description , T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'", |
| "query_toks": [ |
| "SELECT", |
| "T4.crs_description", |
| ",", |
| "T4.crs_credit", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "student", |
| "AS", |
| "T3", |
| "ON", |
| "T3.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "course", |
| "AS", |
| "T4", |
| "ON", |
| "T4.crs_code", |
| "=", |
| "T1.crs_code", |
| "WHERE", |
| "T3.stu_lname", |
| "=", |
| "'Smithson", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t4", |
| ".", |
| "crs_description", |
| ",", |
| "t4", |
| ".", |
| "crs_credit", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t3", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "course", |
| "as", |
| "t4", |
| "on", |
| "t4", |
| ".", |
| "crs_code", |
| "=", |
| "t1", |
| ".", |
| "crs_code", |
| "where", |
| "t3", |
| ".", |
| "stu_lname", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết số lượng tín chỉ của các khoá học mà sinh viên có họ là ' Smithson ' đã theo học và mô tả về những khoá học này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "description", |
| "and", |
| "credit", |
| "of", |
| "the", |
| "course", |
| "which", |
| "the", |
| "student", |
| "whose", |
| "last", |
| "name", |
| "is", |
| "Smithson", |
| "took", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ], |
| "\"Smithson\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T4.crs_description , T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'", |
| "query_toks": [ |
| "SELECT", |
| "T4.crs_description", |
| ",", |
| "T4.crs_credit", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T2.class_code", |
| "JOIN", |
| "student", |
| "AS", |
| "T3", |
| "ON", |
| "T3.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "course", |
| "AS", |
| "T4", |
| "ON", |
| "T4.crs_code", |
| "=", |
| "T1.crs_code", |
| "WHERE", |
| "T3.stu_lname", |
| "=", |
| "'Smithson", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t4", |
| ".", |
| "crs_description", |
| ",", |
| "t4", |
| ".", |
| "crs_credit", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t2", |
| ".", |
| "class_code", |
| "join", |
| "student", |
| "as", |
| "t3", |
| "on", |
| "t3", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "course", |
| "as", |
| "t4", |
| "on", |
| "t4", |
| ".", |
| "crs_code", |
| "=", |
| "t1", |
| ".", |
| "crs_code", |
| "where", |
| "t3", |
| ".", |
| "stu_lname", |
| "=", |
| "value" |
| ], |
| "question": "Sinh viên có họ là ' Smithson ' đã đăng ký những khoá học có bao nhiêu tín chỉ ? Cho biết mô tả về những khoá học này .", |
| "question_toks": [ |
| "How", |
| "many", |
| "credits", |
| "is", |
| "the", |
| "course", |
| "that", |
| "the", |
| "student", |
| "with", |
| "the", |
| "last", |
| "name", |
| "Smithson", |
| "took", |
| ",", |
| "and", |
| "what", |
| "is", |
| "its", |
| "description", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ], |
| "\"Smithson\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "professor", |
| "WHERE", |
| "prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'", |
| "OR", |
| "prof_high_degree", |
| "=", |
| "'MA", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "professor", |
| "where", |
| "prof_high_degree", |
| "=", |
| "value", |
| "or", |
| "prof_high_degree", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu giáo sư có bằng ' Tiến sĩ ' hoặc ' Thạc sĩ ' ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "professors", |
| "who", |
| "has", |
| "a", |
| "either", |
| "Ph.D.", |
| "or", |
| "MA", |
| "degree", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"MA\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "professor", |
| "WHERE", |
| "prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'", |
| "OR", |
| "prof_high_degree", |
| "=", |
| "'MA", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "professor", |
| "where", |
| "prof_high_degree", |
| "=", |
| "value", |
| "or", |
| "prof_high_degree", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết số lượng các giáo sư có bằng ' Tiến sĩ ' hoặc ' Thạc sĩ ' .", |
| "question_toks": [ |
| "How", |
| "many", |
| "professors", |
| "attained", |
| "either", |
| "Ph.D.", |
| "or", |
| "Masters", |
| "degrees", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"MA\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "T2.dept_name", |
| "=", |
| "'Accounting", |
| "'", |
| "OR", |
| "T2.dept_name", |
| "=", |
| "'Biology", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "t2", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "or", |
| "t2", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu giáo sư đến từ khoa ' Kế toán ' hoặc khoa ' Sinh học ' ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "professors", |
| "who", |
| "are", |
| "from", |
| "either", |
| "Accounting", |
| "or", |
| "Biology", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Biology\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "T2.dept_name", |
| "=", |
| "'Accounting", |
| "'", |
| "OR", |
| "T2.dept_name", |
| "=", |
| "'Biology", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "t2", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "or", |
| "t2", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Đếm số lượng các giáo sư thuộc khoa ' Kế toán ' hoặc khoa ' Sinh học ' .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "number", |
| "of", |
| "professors", |
| "who", |
| "are", |
| "in", |
| "the", |
| "Accounting", |
| "or", |
| "Biology", |
| "departments", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Biology\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.prof_num", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'CIS-220", |
| "'", |
| "INTERSECT", |
| "SELECT", |
| "T1.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.prof_num", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'QM-261", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num", |
| "where", |
| "crs_code", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên của các giáo sư đang giảng dạy khoá học có mã là ' CIS-220 ' và khoá học có mã là ' QM-261 ' .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "name", |
| "of", |
| "the", |
| "professor", |
| "who", |
| "is", |
| "teaching", |
| "two", |
| "courses", |
| "with", |
| "code", |
| "CIS-220", |
| "and", |
| "QM-261", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"QM-261\"", |
| null |
| ] |
| ] |
| }, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"CIS-220\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.prof_num", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'CIS-220", |
| "'", |
| "INTERSECT", |
| "SELECT", |
| "T1.emp_fname", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.prof_num", |
| "WHERE", |
| "crs_code", |
| "=", |
| "'QM-261", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num", |
| "where", |
| "crs_code", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "class", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "prof_num", |
| "where", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Những giáo sư nào đang giảng dạy khoá học có mã là ' CIS-220 ' và khoá học có mã là ' QM-261 ' ? Cho biết tên của những giáo sư này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "name", |
| "of", |
| "the", |
| "professor", |
| "who", |
| "is", |
| "teaching", |
| "CIS-220", |
| "and", |
| "QM-261", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"QM-261\"", |
| null |
| ] |
| ] |
| }, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"CIS-220\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems'", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T2.class_code", |
| "=", |
| "T3.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T4", |
| "ON", |
| "T3.crs_code", |
| "=", |
| "T4.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T5", |
| "ON", |
| "T5.dept_code", |
| "=", |
| "T4.dept_code", |
| "WHERE", |
| "T5.dept_name", |
| "=", |
| "'Accounting", |
| "'", |
| "INTERSECT", |
| "SELECT", |
| "T1.stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T2.class_code", |
| "=", |
| "T3.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T4", |
| "ON", |
| "T3.crs_code", |
| "=", |
| "T4.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T5", |
| "ON", |
| "T5.dept_code", |
| "=", |
| "T4.dept_code", |
| "WHERE", |
| "T5.dept_name", |
| "=", |
| "'Computer", |
| "Info", |
| ".", |
| "Systems", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "t4", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t5", |
| "on", |
| "t5", |
| ".", |
| "dept_code", |
| "=", |
| "t4", |
| ".", |
| "dept_code", |
| "where", |
| "t5", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "t4", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t5", |
| "on", |
| "t5", |
| ".", |
| "dept_code", |
| "=", |
| "t4", |
| ".", |
| "dept_code", |
| "where", |
| "t5", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Những sinh viên nào hiện đang theo học một số lớp học của khoa ' Kế toán ' và một số lớp học của khoa ' Hệ thống thông tin máy tính ' ? Cho biết tên của những sinh viên này .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "name", |
| "of", |
| "student", |
| "who", |
| "is", |
| "taking", |
| "classes", |
| "from", |
| "accounting", |
| "and", |
| "Computer", |
| "Info", |
| ".", |
| "Systems", |
| "departments" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Computer Info. Systems\"", |
| null |
| ] |
| ] |
| }, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems'", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T2.class_code", |
| "=", |
| "T3.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T4", |
| "ON", |
| "T3.crs_code", |
| "=", |
| "T4.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T5", |
| "ON", |
| "T5.dept_code", |
| "=", |
| "T4.dept_code", |
| "WHERE", |
| "T5.dept_name", |
| "=", |
| "'Accounting", |
| "'", |
| "INTERSECT", |
| "SELECT", |
| "T1.stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T2.class_code", |
| "=", |
| "T3.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T4", |
| "ON", |
| "T3.crs_code", |
| "=", |
| "T4.crs_code", |
| "JOIN", |
| "department", |
| "AS", |
| "T5", |
| "ON", |
| "T5.dept_code", |
| "=", |
| "T4.dept_code", |
| "WHERE", |
| "T5.dept_name", |
| "=", |
| "'Computer", |
| "Info", |
| ".", |
| "Systems", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "t4", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t5", |
| "on", |
| "t5", |
| ".", |
| "dept_code", |
| "=", |
| "t4", |
| ".", |
| "dept_code", |
| "where", |
| "t5", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "t4", |
| ".", |
| "crs_code", |
| "join", |
| "department", |
| "as", |
| "t5", |
| "on", |
| "t5", |
| ".", |
| "dept_code", |
| "=", |
| "t4", |
| ".", |
| "dept_code", |
| "where", |
| "t5", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên của tất cả các sinh viên đang tham gia một số khoá học của khoa ' Kế toán ' và một số khoá học của khoa ' Hệ thống thông tin máy tính ' .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "students", |
| "taking", |
| "accoutning", |
| "and", |
| "Computer", |
| "Information", |
| "Systems", |
| "classes", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Computer Info. Systems\"", |
| null |
| ] |
| ] |
| }, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211'", |
| "query_toks": [ |
| "SELECT", |
| "avg", |
| "(", |
| "T2.stu_gpa", |
| ")", |
| "FROM", |
| "enroll", |
| "AS", |
| "T1", |
| "JOIN", |
| "student", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T3.class_code", |
| "WHERE", |
| "T3.crs_code", |
| "=", |
| "'ACCT-211", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "avg", |
| "(", |
| "t2", |
| ".", |
| "stu_gpa", |
| ")", |
| "from", |
| "enroll", |
| "as", |
| "t1", |
| "join", |
| "student", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "where", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết điểm gpa trung bình của các sinh viên đã đăng ký khoá học ACCT-211 .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| "gpa", |
| "of", |
| "the", |
| "students", |
| "enrolled", |
| "in", |
| "the", |
| "course", |
| "with", |
| "code", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211'", |
| "query_toks": [ |
| "SELECT", |
| "avg", |
| "(", |
| "T2.stu_gpa", |
| ")", |
| "FROM", |
| "enroll", |
| "AS", |
| "T1", |
| "JOIN", |
| "student", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T1.class_code", |
| "=", |
| "T3.class_code", |
| "WHERE", |
| "T3.crs_code", |
| "=", |
| "'ACCT-211", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "avg", |
| "(", |
| "t2", |
| ".", |
| "stu_gpa", |
| ")", |
| "from", |
| "enroll", |
| "as", |
| "t1", |
| "join", |
| "student", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "where", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "value" |
| ], |
| "question": "Điểm gpa trung bình của các sinh viên tham gia khoá học ACCT-211 là bao nhiêu ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| "GPA", |
| "of", |
| "students", |
| "taking", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT stu_gpa , stu_phone , stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5", |
| "query_toks": [ |
| "SELECT", |
| "stu_gpa", |
| ",", |
| "stu_phone", |
| ",", |
| "stu_fname", |
| "FROM", |
| "student", |
| "ORDER", |
| "BY", |
| "stu_gpa", |
| "DESC", |
| "LIMIT", |
| "5" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stu_gpa", |
| ",", |
| "stu_phone", |
| ",", |
| "stu_fname", |
| "from", |
| "student", |
| "order", |
| "by", |
| "stu_gpa", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Cho biết tên , điểm trung bình và số điện thoại của 5 sinh viên có điểm trung bình cao nhất .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "name", |
| ",", |
| "gpa", |
| "and", |
| "phone", |
| "number", |
| "of", |
| "the", |
| "top", |
| "5", |
| "students", |
| "with", |
| "highest", |
| "gpa", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": 5, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 42, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT stu_gpa , stu_phone , stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5", |
| "query_toks": [ |
| "SELECT", |
| "stu_gpa", |
| ",", |
| "stu_phone", |
| ",", |
| "stu_fname", |
| "FROM", |
| "student", |
| "ORDER", |
| "BY", |
| "stu_gpa", |
| "DESC", |
| "LIMIT", |
| "5" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stu_gpa", |
| ",", |
| "stu_phone", |
| ",", |
| "stu_fname", |
| "from", |
| "student", |
| "order", |
| "by", |
| "stu_gpa", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "5 sinh viên có điểm trung bình cao nhất là những sinh viên nào ? Cho biết tên , điểm trung bình và số điện thoại của những sinh viên này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "name", |
| ",", |
| "GPA", |
| ",", |
| "and", |
| "phone", |
| "number", |
| "of", |
| "the", |
| "students", |
| "with", |
| "the", |
| "top", |
| "5", |
| "GPAs", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": 5, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 42, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "ORDER", |
| "BY", |
| "stu_gpa", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "stu_gpa", |
| "limit", |
| "value" |
| ], |
| "question": "Cho biết tên của khoa mà sinh viên có điểm trung bình thấp nhất đang theo học .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "department", |
| "name", |
| "of", |
| "the", |
| "students", |
| "with", |
| "lowest", |
| "gpa", |
| "belongs", |
| "to", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "ORDER", |
| "BY", |
| "stu_gpa", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "stu_gpa", |
| "limit", |
| "value" |
| ], |
| "question": "Snh viên có điểm trung bình thấp nhất hiện đang theo học khoa nào ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "of", |
| "the", |
| "department", |
| "with", |
| "the", |
| "student", |
| "that", |
| "has", |
| "the", |
| "lowest", |
| "GPA", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT stu_fname , stu_gpa FROM student WHERE stu_gpa < (SELECT avg(stu_gpa) FROM student)", |
| "query_toks": [ |
| "SELECT", |
| "stu_fname", |
| ",", |
| "stu_gpa", |
| "FROM", |
| "student", |
| "WHERE", |
| "stu_gpa", |
| "<", |
| "(", |
| "SELECT", |
| "avg", |
| "(", |
| "stu_gpa", |
| ")", |
| "FROM", |
| "student", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stu_fname", |
| ",", |
| "stu_gpa", |
| "from", |
| "student", |
| "where", |
| "stu_gpa", |
| "<", |
| "(", |
| "select", |
| "avg", |
| "(", |
| "stu_gpa", |
| ")", |
| "from", |
| "student", |
| ")" |
| ], |
| "question": "Cho biết tên và điểm gpa của các sinh viên có điểm gpa thấp hơn điểm gpa trung bình của tất cả các sinh viên .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "name", |
| "and", |
| "gpa", |
| "of", |
| "the", |
| "students", |
| "whose", |
| "gpa", |
| "is", |
| "lower", |
| "than", |
| "the", |
| "average", |
| "gpa", |
| "of", |
| "all", |
| "students", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 4, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ], |
| { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| }, |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT stu_fname , stu_gpa FROM student WHERE stu_gpa < (SELECT avg(stu_gpa) FROM student)", |
| "query_toks": [ |
| "SELECT", |
| "stu_fname", |
| ",", |
| "stu_gpa", |
| "FROM", |
| "student", |
| "WHERE", |
| "stu_gpa", |
| "<", |
| "(", |
| "SELECT", |
| "avg", |
| "(", |
| "stu_gpa", |
| ")", |
| "FROM", |
| "student", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "stu_fname", |
| ",", |
| "stu_gpa", |
| "from", |
| "student", |
| "where", |
| "stu_gpa", |
| "<", |
| "(", |
| "select", |
| "avg", |
| "(", |
| "stu_gpa", |
| ")", |
| "from", |
| "student", |
| ")" |
| ], |
| "question": "Những sinh viên nào có điểm trung bình thấp hơn mức trung bình chung ? Cho biết tên và điểm trung bình của những sinh viên này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "name", |
| "and", |
| "GPA", |
| "of", |
| "every", |
| "student", |
| "that", |
| "has", |
| "a", |
| "GPA", |
| "lower", |
| "than", |
| "average", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 4, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ], |
| { |
| "except": null, |
| "from": { |
| "conds": [], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 39, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| }, |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name , T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| ",", |
| "T2.dept_address", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| ",", |
| "t2", |
| ".", |
| "dept_address", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Tìm tên và địa chỉ của khoa có đông sinh viên theo học nhất .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "name", |
| "and", |
| "address", |
| "of", |
| "the", |
| "department", |
| "that", |
| "has", |
| "the", |
| "highest", |
| "number", |
| "of", |
| "students", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name , T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| ",", |
| "T2.dept_address", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| ",", |
| "t2", |
| ".", |
| "dept_address", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Khoa nào có đông sinh viên nhất ? Cho biết tên và địa chỉ của khoa này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "address", |
| "of", |
| "the", |
| "department", |
| "with", |
| "the", |
| "most", |
| "students", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 1, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name , T2.dept_address , count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| ",", |
| "T2.dept_address", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "3" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| ",", |
| "t2", |
| ".", |
| "dept_address", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Tìm tên , địa chỉ và số lượng sinh viên của 3 khoa có đông sinh viên theo học nhất .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "name", |
| ",", |
| "address", |
| ",", |
| "number", |
| "of", |
| "students", |
| "in", |
| "the", |
| "departments", |
| "that", |
| "have", |
| "the", |
| "top", |
| "3", |
| "highest", |
| "number", |
| "of", |
| "students", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 3, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name , T2.dept_address , count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| ",", |
| "T2.dept_address", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "GROUP", |
| "BY", |
| "T1.dept_code", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "3" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| ",", |
| "t2", |
| ".", |
| "dept_address", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "dept_code", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "3 khoa có đông sinh viên theo học nhất là những khoa nào ? Cho biết tên , địa chỉ và số lượng sinh viên của những khoa này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| ",", |
| "address", |
| ",", |
| "and", |
| "number", |
| "of", |
| "students", |
| "in", |
| "the", |
| "departments", |
| "that", |
| "have", |
| "the", |
| "3", |
| "most", |
| "students", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 41, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 41, |
| false |
| ] |
| ], |
| "having": [], |
| "intersect": null, |
| "limit": 3, |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_fname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T3.dept_code = T2.dept_code WHERE T3.dept_name = 'History' AND T2.prof_high_degree = 'Ph.D.'", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_fname", |
| ",", |
| "T2.prof_office", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T3.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "T3.dept_name", |
| "=", |
| "'History", |
| "'", |
| "AND", |
| "T2.prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| ",", |
| "t2", |
| ".", |
| "prof_office", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t3", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "t3", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "and", |
| "t2", |
| ".", |
| "prof_high_degree", |
| "=", |
| "value" |
| ], |
| "question": "Tìm tên và địa chỉ văn phòng của các giáo sư ở khoa ' Lịch sử ' và có bằng ' Tiến sĩ ' .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "name", |
| "and", |
| "office", |
| "of", |
| "the", |
| "professor", |
| "who", |
| "is", |
| "in", |
| "the", |
| "history", |
| "department", |
| "and", |
| "has", |
| "a", |
| "Ph.D.", |
| "degree", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.emp_fname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T3.dept_code = T2.dept_code WHERE T3.dept_name = 'History' AND T2.prof_high_degree = 'Ph.D.'", |
| "query_toks": [ |
| "SELECT", |
| "T1.emp_fname", |
| ",", |
| "T2.prof_office", |
| "FROM", |
| "employee", |
| "AS", |
| "T1", |
| "JOIN", |
| "professor", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T3.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "T3.dept_name", |
| "=", |
| "'History", |
| "'", |
| "AND", |
| "T2.prof_high_degree", |
| "=", |
| "'Ph.D", |
| ".", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "emp_fname", |
| ",", |
| "t2", |
| ".", |
| "prof_office", |
| "from", |
| "employee", |
| "as", |
| "t1", |
| "join", |
| "professor", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t3", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "t3", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "and", |
| "t2", |
| ".", |
| "prof_high_degree", |
| "=", |
| "value" |
| ], |
| "question": "Những giáo sư thuộc khoa ' Lịch sử ' và đã tốt nghiệp chương trình ' Tiến sĩ ' có tên là gì ? Đồng thời cho biết địa chỉ văn phòng của những giáo sư này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "and", |
| "office", |
| "of", |
| "the", |
| "professors", |
| "who", |
| "are", |
| "in", |
| "the", |
| "history", |
| "department", |
| "and", |
| "have", |
| "a", |
| "Ph.D", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T1.crs_code", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "crs_code", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num" |
| ], |
| "question": "Cho biết tên của các giảng viên đã tham gia giảng dạy một số khoá học và mã của các khoá học đó .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "instructors", |
| "who", |
| "have", |
| "taught", |
| "some", |
| "course", |
| "and", |
| "the", |
| "course", |
| "code", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T1.crs_code", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "crs_code", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num" |
| ], |
| "question": "Những giảng viên nào đã tham gia giảng dạy một số khoá học ? Cho biết tên của những giảng viên này và mã của những khoá học mà họ đã giảng dạy .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "teachers", |
| "who", |
| "have", |
| "taught", |
| "a", |
| "course", |
| "and", |
| "the", |
| "corresponding", |
| "course", |
| "codes", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T3.crs_description", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t3", |
| ".", |
| "crs_description", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code" |
| ], |
| "question": "Cho biểt tên của các giảng viên đã tham gia giảng dạy một số khoá học và mô tả về các khoá học đó .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "instructors", |
| "who", |
| "have", |
| "taught", |
| "some", |
| "course", |
| "and", |
| "the", |
| "course", |
| "description", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T3.crs_description", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t3", |
| ".", |
| "crs_description", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code" |
| ], |
| "question": "Những giảng viên nào đã tham gia giảng dạy một số khoá học ? Cho biết tên của những giảng viên này và mô tả về các khoá học mà họ đã giảng dạy .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "teachers", |
| "who", |
| "have", |
| "taught", |
| "a", |
| "course", |
| "and", |
| "the", |
| "corresponding", |
| "descriptions", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T4.prof_office", |
| ",", |
| "T3.crs_description", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code", |
| "JOIN", |
| "professor", |
| "AS", |
| "T4", |
| "ON", |
| "T2.emp_num", |
| "=", |
| "T4.emp_num" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t4", |
| ".", |
| "prof_office", |
| ",", |
| "t3", |
| ".", |
| "crs_description", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code", |
| "join", |
| "professor", |
| "as", |
| "t4", |
| "on", |
| "t2", |
| ".", |
| "emp_num", |
| "=", |
| "t4", |
| ".", |
| "emp_num" |
| ], |
| "question": "Cho biết tên và địa điểm văn phòng của các giảng viên đang tham gia công tác giảng dạy cũng như là mô tả về các khoá học mà họ này đã giảng dạy .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "names", |
| "and", |
| "offices", |
| "of", |
| "all", |
| "instructors", |
| "who", |
| "have", |
| "taught", |
| "some", |
| "course", |
| "and", |
| "also", |
| "find", |
| "the", |
| "course", |
| "description", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T4.prof_office", |
| ",", |
| "T3.crs_description", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code", |
| "JOIN", |
| "professor", |
| "AS", |
| "T4", |
| "ON", |
| "T2.emp_num", |
| "=", |
| "T4.emp_num" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t4", |
| ".", |
| "prof_office", |
| ",", |
| "t3", |
| ".", |
| "crs_description", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code", |
| "join", |
| "professor", |
| "as", |
| "t4", |
| "on", |
| "t2", |
| ".", |
| "emp_num", |
| "=", |
| "t4", |
| ".", |
| "emp_num" |
| ], |
| "question": "Những giảng viên nào đã tham gia giảng dạy một số khoá học ? Cho biết tên và địa điểm văn phòng của những giảng viên này cũng như là mô tả về các khoá học mà họ đã giảng dạy .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| ",", |
| "office", |
| "locations", |
| "of", |
| "all", |
| "lecturers", |
| "who", |
| "have", |
| "taught", |
| "some", |
| "course", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T4.prof_office", |
| ",", |
| "T3.crs_description", |
| ",", |
| "T5.dept_name", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code", |
| "JOIN", |
| "professor", |
| "AS", |
| "T4", |
| "ON", |
| "T2.emp_num", |
| "=", |
| "T4.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T5", |
| "ON", |
| "T4.dept_code", |
| "=", |
| "T5.dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t4", |
| ".", |
| "prof_office", |
| ",", |
| "t3", |
| ".", |
| "crs_description", |
| ",", |
| "t5", |
| ".", |
| "dept_name", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code", |
| "join", |
| "professor", |
| "as", |
| "t4", |
| "on", |
| "t2", |
| ".", |
| "emp_num", |
| "=", |
| "t4", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t5", |
| "on", |
| "t4", |
| ".", |
| "dept_code", |
| "=", |
| "t5", |
| ".", |
| "dept_code" |
| ], |
| "question": "Cho biết tên và địa điểm văn phòng của các giảng viên đã tham gia công tác giảng dạy cũng như là mô tả về các khoá học mà họ đã dạy và khoa mà họ thuộc về .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "names", |
| "and", |
| "offices", |
| "of", |
| "all", |
| "instructors", |
| "who", |
| "have", |
| "taught", |
| "some", |
| "course", |
| "and", |
| "the", |
| "course", |
| "description", |
| "and", |
| "the", |
| "department", |
| "name", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T4.prof_office", |
| ",", |
| "T3.crs_description", |
| ",", |
| "T5.dept_name", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "course", |
| "AS", |
| "T3", |
| "ON", |
| "T1.crs_code", |
| "=", |
| "T3.crs_code", |
| "JOIN", |
| "professor", |
| "AS", |
| "T4", |
| "ON", |
| "T2.emp_num", |
| "=", |
| "T4.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T5", |
| "ON", |
| "T4.dept_code", |
| "=", |
| "T5.dept_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t4", |
| ".", |
| "prof_office", |
| ",", |
| "t3", |
| ".", |
| "crs_description", |
| ",", |
| "t5", |
| ".", |
| "dept_name", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "course", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "crs_code", |
| "=", |
| "t3", |
| ".", |
| "crs_code", |
| "join", |
| "professor", |
| "as", |
| "t4", |
| "on", |
| "t2", |
| ".", |
| "emp_num", |
| "=", |
| "t4", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t5", |
| "on", |
| "t4", |
| ".", |
| "dept_code", |
| "=", |
| "t5", |
| ".", |
| "dept_code" |
| ], |
| "question": "Cho biết tên , địa điểm văn phòng và khoa của các giảng viên đã tham gia giảng dạy cũng như là mô tả về các khoá học mà họ dạy .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| ",", |
| "office", |
| "locations", |
| ",", |
| "and", |
| "departments", |
| "of", |
| "all", |
| "instructors", |
| ",", |
| "and", |
| "also", |
| "what", |
| "are", |
| "the", |
| "descriptions", |
| "of", |
| "the", |
| "courses", |
| "they", |
| "teach", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| ",", |
| "T1.stu_lname", |
| ",", |
| "T4.crs_description", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T2.class_code", |
| "=", |
| "T3.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T4", |
| "ON", |
| "T3.crs_code", |
| "=", |
| "T4.crs_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| ",", |
| "t1", |
| ".", |
| "stu_lname", |
| ",", |
| "t4", |
| ".", |
| "crs_description", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "t4", |
| ".", |
| "crs_code" |
| ], |
| "question": "Cho biết tên đầy đủ của các sinh viên đã tham gia một số khoá học cũng như là mô tả về các khoá học mà họ đã tham gia .", |
| "question_toks": [ |
| "Find", |
| "names", |
| "of", |
| "all", |
| "students", |
| "who", |
| "took", |
| "some", |
| "course", |
| "and", |
| "the", |
| "course", |
| "description", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| ",", |
| "T1.stu_lname", |
| ",", |
| "T4.crs_description", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T2.class_code", |
| "=", |
| "T3.class_code", |
| "JOIN", |
| "course", |
| "AS", |
| "T4", |
| "ON", |
| "T3.crs_code", |
| "=", |
| "T4.crs_code" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| ",", |
| "t1", |
| ".", |
| "stu_lname", |
| ",", |
| "t4", |
| ".", |
| "crs_description", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "join", |
| "course", |
| "as", |
| "t4", |
| "on", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "t4", |
| ".", |
| "crs_code" |
| ], |
| "question": "Những sinh viên nào đã đăng ký tham gia một số khoá học ? Cho biết tên và họ của những sinh viên này cũng như là mô tả về các khoá học mà họ đã tham gia .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "all", |
| "students", |
| "who", |
| "took", |
| "a", |
| "class", |
| "and", |
| "the", |
| "corresponding", |
| "course", |
| "descriptions", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| ",", |
| "T1.stu_lname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "WHERE", |
| "T2.enroll_grade", |
| "=", |
| "'C", |
| "'", |
| "OR", |
| "T2.enroll_grade", |
| "=", |
| "'A", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| ",", |
| "t1", |
| ".", |
| "stu_lname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "where", |
| "t2", |
| ".", |
| "enroll_grade", |
| "=", |
| "value", |
| "or", |
| "t2", |
| ".", |
| "enroll_grade", |
| "=", |
| "value" |
| ], |
| "question": "Tìm tên của tất cả các sinh viên đã tham gia một số khoá học và nhận được điểm A hoặc C.", |
| "question_toks": [ |
| "Find", |
| "names", |
| "of", |
| "all", |
| "students", |
| "who", |
| "took", |
| "some", |
| "course", |
| "and", |
| "got", |
| "A", |
| "or", |
| "C", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"C\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"A\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| ",", |
| "T1.stu_lname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "WHERE", |
| "T2.enroll_grade", |
| "=", |
| "'C", |
| "'", |
| "OR", |
| "T2.enroll_grade", |
| "=", |
| "'A", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| ",", |
| "t1", |
| ".", |
| "stu_lname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "where", |
| "t2", |
| ".", |
| "enroll_grade", |
| "=", |
| "value", |
| "or", |
| "t2", |
| ".", |
| "enroll_grade", |
| "=", |
| "value" |
| ], |
| "question": "Những sinh viên nào đã tham gia một số khoá học và nhận được điểm A hoặc C ? Cho biết tên của những sinh viên này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "all", |
| "students", |
| "taking", |
| "a", |
| "course", |
| "who", |
| "received", |
| "an", |
| "A", |
| "or", |
| "C", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"C\"", |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"A\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T1.class_room", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "professor", |
| "AS", |
| "T3", |
| "ON", |
| "T2.emp_num", |
| "=", |
| "T3.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T4", |
| "ON", |
| "T4.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T4.dept_name", |
| "=", |
| "'Accounting", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "class_room", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "professor", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "emp_num", |
| "=", |
| "t3", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t4", |
| "on", |
| "t4", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t4", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên của các giáo sư thuộc khoa ' Kế toán ' và hiện đang giảng dạy một số khoá học , đồng thời cho biết phòng học nơi diễn ra các khoá học này .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "professors", |
| "in", |
| "the", |
| "Accounting", |
| "department", |
| "who", |
| "is", |
| "teaching", |
| "some", |
| "course", |
| "and", |
| "the", |
| "class", |
| "room", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T1.class_room", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "professor", |
| "AS", |
| "T3", |
| "ON", |
| "T2.emp_num", |
| "=", |
| "T3.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T4", |
| "ON", |
| "T4.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T4.dept_name", |
| "=", |
| "'Accounting", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "class_room", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "professor", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "emp_num", |
| "=", |
| "t3", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t4", |
| "on", |
| "t4", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t4", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên của các giáo sư đến từ khoa ' Kế toán ' và hiện đang tham gia giảng dạy , đồng thời các khoá học mà những giáo sư này giảng dạy được diễn ra ở những phòng học nào ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "Accounting", |
| "professors", |
| "who", |
| "teach", |
| "and", |
| "what", |
| "are", |
| "the", |
| "classrooms", |
| "of", |
| "the", |
| "courses", |
| "they", |
| "teach", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 5, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Accounting\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT DISTINCT T2.emp_fname , T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems'", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "T2.emp_fname", |
| ",", |
| "T3.prof_high_degree", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "professor", |
| "AS", |
| "T3", |
| "ON", |
| "T2.emp_num", |
| "=", |
| "T3.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T4", |
| "ON", |
| "T4.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T4.dept_name", |
| "=", |
| "'Computer", |
| "Info", |
| ".", |
| "Systems", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t3", |
| ".", |
| "prof_high_degree", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "professor", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "emp_num", |
| "=", |
| "t3", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t4", |
| "on", |
| "t4", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t4", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên của tất cả các giáo sư đang giảng dạy một số môn học thuộc khoa ' Hệ thống Thông tin Máy tính ' cũng như là loại bằng cấp cao nhất mà từng giáo sư đã đạt được .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "names", |
| "and", |
| "degree", |
| "of", |
| "all", |
| "professors", |
| "who", |
| "are", |
| "teaching", |
| "some", |
| "class", |
| "in", |
| "Computer", |
| "Info", |
| ".", |
| "Systems", |
| "department", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Computer Info. Systems\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT DISTINCT T2.emp_fname , T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems'", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "T2.emp_fname", |
| ",", |
| "T3.prof_high_degree", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "professor", |
| "AS", |
| "T3", |
| "ON", |
| "T2.emp_num", |
| "=", |
| "T3.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T4", |
| "ON", |
| "T4.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T4.dept_name", |
| "=", |
| "'Computer", |
| "Info", |
| ".", |
| "Systems", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t3", |
| ".", |
| "prof_high_degree", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "professor", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "emp_num", |
| "=", |
| "t3", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t4", |
| "on", |
| "t4", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t4", |
| ".", |
| "dept_name", |
| "=", |
| "value" |
| ], |
| "question": "Những giáo sư nào hiện đang giảng dạy ở khoa ' Hệ thống thông tin máy tính ' ? Cho biết tên của những giáo sư này và loại bằng cấp cao nhất mà từng giáo sư đã đạt được .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "different", |
| "first", |
| "names", |
| "and", |
| "highest", |
| "degree", |
| "attained", |
| "for", |
| "professors", |
| "teaching", |
| "in", |
| "the", |
| "Computer", |
| "Information", |
| "Systems", |
| "department", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"Computer Info. Systems\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_lname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "WHERE", |
| "T2.enroll_grade", |
| "=", |
| "'A", |
| "'", |
| "AND", |
| "T2.class_code", |
| "=", |
| "10018" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_lname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "where", |
| "t2", |
| ".", |
| "enroll_grade", |
| "=", |
| "value", |
| "and", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết họ của các sinh viên đã đạt điểm A trong lớp học mang mã số 10018 .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "last", |
| "name", |
| "of", |
| "the", |
| "student", |
| "who", |
| "got", |
| "a", |
| "grade", |
| "A", |
| "in", |
| "the", |
| "class", |
| "with", |
| "code", |
| "10018", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"A\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| 10018.0, |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_lname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "WHERE", |
| "T2.enroll_grade", |
| "=", |
| "'A", |
| "'", |
| "AND", |
| "T2.class_code", |
| "=", |
| "10018" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_lname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "where", |
| "t2", |
| ".", |
| "enroll_grade", |
| "=", |
| "value", |
| "and", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "value" |
| ], |
| "question": "Những sinh viên đã nhận được điểm A trong lớp học mang mã số 10018 có họ là gì ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "last", |
| "name", |
| "of", |
| "the", |
| "student", |
| "who", |
| "received", |
| "an", |
| "A", |
| "in", |
| "the", |
| "class", |
| "with", |
| "the", |
| "code", |
| "10018", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 26, |
| false |
| ], |
| null |
| ], |
| "\"A\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| 10018.0, |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree != 'Ph.D.'", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T1.prof_office", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T3.dept_name", |
| "=", |
| "'History", |
| "'", |
| "AND", |
| "T1.prof_high_degree", |
| "!", |
| "=", |
| "'Ph.D", |
| ".", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "prof_office", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t3", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "and", |
| "t1", |
| ".", |
| "prof_high_degree", |
| "!", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên cũng như là văn phòng của các giáo sư thuộc khoa ' Lịch sử ' nhưng không có bằng ' Tiến sĩ ' .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "name", |
| "and", |
| "office", |
| "of", |
| "history", |
| "professor", |
| "who", |
| "did", |
| "not", |
| "get", |
| "a", |
| "Ph.D.", |
| "degree", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 7, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree != 'Ph.D.'", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| ",", |
| "T1.prof_office", |
| "FROM", |
| "professor", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.emp_num", |
| "=", |
| "T2.emp_num", |
| "JOIN", |
| "department", |
| "AS", |
| "T3", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T3.dept_code", |
| "WHERE", |
| "T3.dept_name", |
| "=", |
| "'History", |
| "'", |
| "AND", |
| "T1.prof_high_degree", |
| "!", |
| "=", |
| "'Ph.D", |
| ".", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| ",", |
| "t1", |
| ".", |
| "prof_office", |
| "from", |
| "professor", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "emp_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "join", |
| "department", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t3", |
| ".", |
| "dept_code", |
| "where", |
| "t3", |
| ".", |
| "dept_name", |
| "=", |
| "value", |
| "and", |
| "t1", |
| ".", |
| "prof_high_degree", |
| "!", |
| "=", |
| "value" |
| ], |
| "question": "Những giáo sư đến từ khoa ' Lịch sử ' nhưng không có bằng ' Tiến sĩ ' có tên là gì ? Đồng thời cho biết văn phòng của những giáo sư này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "and", |
| "offices", |
| "of", |
| "history", |
| "professors", |
| "who", |
| "do", |
| "n't", |
| "have", |
| "Ph.D.s", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 27, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 28, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 5 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 29, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ], |
| "\"History\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 7, |
| [ |
| 0, |
| [ |
| 0, |
| 31, |
| false |
| ], |
| null |
| ], |
| "\"Ph.D.\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "GROUP", |
| "BY", |
| "T1.prof_num", |
| "HAVING", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "prof_num", |
| "having", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "value" |
| ], |
| "question": "Cho biết tên của các giáo sư hiện đang giảng dạy nhiều hơn một lớp học .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "names", |
| "of", |
| "professors", |
| "who", |
| "are", |
| "teaching", |
| "more", |
| "than", |
| "one", |
| "class", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 6, |
| false |
| ] |
| ], |
| "having": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ], |
| 1.0, |
| null |
| ] |
| ], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.emp_fname", |
| "FROM", |
| "CLASS", |
| "AS", |
| "T1", |
| "JOIN", |
| "employee", |
| "AS", |
| "T2", |
| "ON", |
| "T1.prof_num", |
| "=", |
| "T2.emp_num", |
| "GROUP", |
| "BY", |
| "T1.prof_num", |
| "HAVING", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "emp_fname", |
| "from", |
| "class", |
| "as", |
| "t1", |
| "join", |
| "employee", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "prof_num", |
| "=", |
| "t2", |
| ".", |
| "emp_num", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "prof_num", |
| "having", |
| "count", |
| "(", |
| "*", |
| ")", |
| ">", |
| "value" |
| ], |
| "question": "Những giáo sư đang dạy nhiều hơn một lớp học có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "all", |
| "professors", |
| "who", |
| "teach", |
| "more", |
| "than", |
| "one", |
| "class", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 6, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ], |
| [ |
| "table_unit", |
| 3 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 6, |
| false |
| ] |
| ], |
| "having": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ], |
| 1.0, |
| null |
| ] |
| ], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING count(*) = 1", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "GROUP", |
| "BY", |
| "T2.stu_num", |
| "HAVING", |
| "count", |
| "(", |
| "*", |
| ")", |
| "=", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "stu_num", |
| "having", |
| "count", |
| "(", |
| "*", |
| ")", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết tên của các sinh viên chỉ tham gia duy nhất một lớp học .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "first", |
| "names", |
| "of", |
| "students", |
| "who", |
| "took", |
| "exactly", |
| "one", |
| "class", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 25, |
| false |
| ] |
| ], |
| "having": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ], |
| 1.0, |
| null |
| ] |
| ], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING count(*) = 1", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "GROUP", |
| "BY", |
| "T2.stu_num", |
| "HAVING", |
| "count", |
| "(", |
| "*", |
| ")", |
| "=", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "stu_num", |
| "having", |
| "count", |
| "(", |
| "*", |
| ")", |
| "=", |
| "value" |
| ], |
| "question": "Những sinh viên chỉ tham gia đúng 1 khoá học có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "first", |
| "names", |
| "of", |
| "student", |
| "who", |
| "only", |
| "took", |
| "one", |
| "course", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ] |
| ] |
| }, |
| "groupBy": [ |
| [ |
| 0, |
| 25, |
| false |
| ] |
| ], |
| "having": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ], |
| 1.0, |
| null |
| ] |
| ], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%'", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| "FROM", |
| "course", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "T1.crs_description", |
| "LIKE", |
| "'", |
| "%", |
| "Statistics", |
| "%", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| "from", |
| "course", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "t1", |
| ".", |
| "crs_description", |
| "like", |
| "value" |
| ], |
| "question": "Cho biết tên của các khoa hiện đang cung cấp các khoá học với mô tả có chứa từ ' Thống kê ' .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "name", |
| "of", |
| "department", |
| "that", |
| "offers", |
| "the", |
| "class", |
| "whose", |
| "description", |
| "has", |
| "the", |
| "word", |
| "``", |
| "Statistics", |
| "''", |
| "." |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 9, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"%Statistics%\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%'", |
| "query_toks": [ |
| "SELECT", |
| "T2.dept_name", |
| "FROM", |
| "course", |
| "AS", |
| "T1", |
| "JOIN", |
| "department", |
| "AS", |
| "T2", |
| "ON", |
| "T1.dept_code", |
| "=", |
| "T2.dept_code", |
| "WHERE", |
| "T1.crs_description", |
| "LIKE", |
| "'", |
| "%", |
| "Statistics", |
| "%", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "dept_name", |
| "from", |
| "course", |
| "as", |
| "t1", |
| "join", |
| "department", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "dept_code", |
| "=", |
| "t2", |
| ".", |
| "dept_code", |
| "where", |
| "t1", |
| ".", |
| "crs_description", |
| "like", |
| "value" |
| ], |
| "question": "Những khoa hiện đang cung cấp các khoá học có mô tả bao gồm chuỗi con ' Thống kê ' có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "of", |
| "the", |
| "department", |
| "that", |
| "offers", |
| "a", |
| "course", |
| "that", |
| "has", |
| "a", |
| "description", |
| "including", |
| "the", |
| "word", |
| "``", |
| "Statistics", |
| "''", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 9, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ], |
| "\"%Statistics%\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%'", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T2.class_code", |
| "=", |
| "T3.class_code", |
| "WHERE", |
| "T3.crs_code", |
| "=", |
| "'ACCT-211", |
| "'", |
| "AND", |
| "T1.stu_lname", |
| "LIKE", |
| "'S", |
| "%", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "where", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "value", |
| "and", |
| "t1", |
| ".", |
| "stu_lname", |
| "like", |
| "value" |
| ], |
| "question": "Cho biết tên của các sinh viên có họ bắt đầu bằng chữ cái ' S ' và hiện đang tham gia khoá học ACCT-211 .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "name", |
| "of", |
| "the", |
| "student", |
| "whose", |
| "last", |
| "name", |
| "starting", |
| "with", |
| "the", |
| "letter", |
| "S", |
| "and", |
| "is", |
| "taking", |
| "ACCT-211", |
| "class", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 9, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ], |
| "\"S%\"", |
| null |
| ] |
| ] |
| } |
| }, |
| { |
| "db_id": "college_1", |
| "query": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%'", |
| "query_toks": [ |
| "SELECT", |
| "T1.stu_fname", |
| "FROM", |
| "student", |
| "AS", |
| "T1", |
| "JOIN", |
| "enroll", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stu_num", |
| "=", |
| "T2.stu_num", |
| "JOIN", |
| "CLASS", |
| "AS", |
| "T3", |
| "ON", |
| "T2.class_code", |
| "=", |
| "T3.class_code", |
| "WHERE", |
| "T3.crs_code", |
| "=", |
| "'ACCT-211", |
| "'", |
| "AND", |
| "T1.stu_lname", |
| "LIKE", |
| "'S", |
| "%", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t1", |
| ".", |
| "stu_fname", |
| "from", |
| "student", |
| "as", |
| "t1", |
| "join", |
| "enroll", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stu_num", |
| "=", |
| "t2", |
| ".", |
| "stu_num", |
| "join", |
| "class", |
| "as", |
| "t3", |
| "on", |
| "t2", |
| ".", |
| "class_code", |
| "=", |
| "t3", |
| ".", |
| "class_code", |
| "where", |
| "t3", |
| ".", |
| "crs_code", |
| "=", |
| "value", |
| "and", |
| "t1", |
| ".", |
| "stu_lname", |
| "like", |
| "value" |
| ], |
| "question": "Những sinh viên có họ bắt đầu bằng chữ cái ' S ' và đang tham gia khoá học ACCT-211 có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "first", |
| "name", |
| "of", |
| "the", |
| "student", |
| "whose", |
| "last", |
| "name", |
| "starts", |
| "with", |
| "the", |
| "letter", |
| "S", |
| "and", |
| "is", |
| "taking", |
| "ACCT-211", |
| "?" |
| ], |
| "sql": { |
| "except": null, |
| "from": { |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 32, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 25, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 24, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ], |
| "table_units": [ |
| [ |
| "table_unit", |
| 6 |
| ], |
| [ |
| "table_unit", |
| 4 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ] |
| }, |
| "groupBy": [], |
| "having": [], |
| "intersect": null, |
| "limit": null, |
| "orderBy": [], |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 34, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "union": null, |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ], |
| "\"ACCT-211\"", |
| null |
| ], |
| "and", |
| [ |
| false, |
| 9, |
| [ |
| 0, |
| [ |
| 0, |
| 33, |
| false |
| ], |
| null |
| ], |
| "\"S%\"", |
| null |
| ] |
| ] |
| } |
| } |
| ] |