[ { "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": "「accounting」部の教授の数を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「accounting」部には何人の教授がいますか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コード「ACCT-211」でクラスを教えている教授は何人いますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コード「ACCT-211」でクラスを教えている教授は何人いますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「biology 」学部の教授の名前と苗字は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Biology\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "すべての「biology 」学部の教授の名前と苗字は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Biology\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コース「ACCT-211」を教える教授の名と生年月日は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「ACCT-211」を担当する教授の名と生年月日は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "苗字が「Graztevski」である教授のクラスはいくつありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Graztevski\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "苗字が「Graztevski」である教授はいくつのクラスを教えていますか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Graztevski\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「accounting」部が所属する学校のコードは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「accounting」部の学校コードは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コース「 CIS-220」にはいくつの単位があり、その説明は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"CIS-220\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「 CIS-220」の説明は何ですか?また、単位はいくつありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"CIS-220\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「history」学部の住所は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「history」学部はどこですか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コード「BUS」のある学校にはいくつの場所がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"BUS\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コード「BUS」のある学校のさまざまな場所はどこですか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"BUS\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "各学校にはいくつの異なる場所がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "各学校の異なる住所を数えます。", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コース「QM-261」の説明と単位を見つけますか?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"QM-261\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「QM-261」のコースの説明と単位数はどのくらいですか?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"QM-261\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "各学校の学部の数を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "各学校にはいくつの学部がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "学部の数が5未満の学校の異なる学部の数を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 4, [ 0, [ 3, 12, true ], null ], 5.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "学部が5つ未満の各学校にはいくつの異なる学部がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 4, [ 0, [ 3, 12, true ], null ], 5.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "各コースにはいくつのセクションがありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "各コースにはいくつのセクションがありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "各部門が提供する合計単位はいくらですか?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "学部は何単位を提供していますか?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "少なくとも2つのクラスを開催したすべてのクラスルームに提供されているクラスの数を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "少なくとも2つのクラスがある教室ごとに、いくつのクラスが提供されますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "各部門のクラスの数を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "各部門でいくつのクラスが開催されますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "各学校のクラスの数を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "各学校にはいくつのクラスがありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "異なる学校の教授の数はいくつですか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "学校ごとに何人の教授がいますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "従業員が最も多くいる仕事のコードと従業員数を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 21, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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": "従業員が最も多い仕事のコードと従業員数は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 21, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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": "教授の数が最も少ない学校はどれですか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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": "教授が最も少ない学校はどれですか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "「Ph.D」の学位.を持つ教授の数を見つけます。各部門の学位。", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [ [ 0, 28, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Ph.D」の学位.を取得している教授は何人いますか。各部門で?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [ [ 0, 28, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "各学部の学生数を調べます。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "各学部には何人の学生がいますか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "各学部のすべての学生の合計時間数を調べます。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "学生は各学部で何時間勉強しますか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "各学部のすべての学生の最大、平均、および最小のGPA。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "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 ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "すべての学部の最高、最低、平均の学生のGPAはどれくらいですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "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 ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "学生の平均成績が最も高い学部の名前と平均成績はどれくらいですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 5, 39, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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": "どの部門が最も高い平均学生GPAを持っていますか、そして平均gpaは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 5, 39, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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": "全部でいくつの学校がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "学部にはいくつの学校がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "いくつの異なるクラスがありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 1, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "クラスはいくつありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 1, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "いくつのコースが提供されていますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "異なるコースコードの数はいくつですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "大学にはいくつの学部がありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "部門はいくつありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Computer Info. Systems」によって提供されるコースの数。部門?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Computer Info. Systems」部門はいくつのコースを提供していますか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 8, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コース「ACCT-211」にはいくつのセクションがありますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 3, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コース「ACCT-211」で提供されるさまざまなクラスセクションの数はいくつですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 3, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "各部門が提供するすべてのクラスの合計単位を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "各部門が提供する単位の総数はいくつですか?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "すべてのクラスの中で最も多くの単位を提供している部門の名前を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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": "どの部門が最も多くの単位を提供しますか?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "クラス「ACCT-211」には何人の学生が在籍していますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「ACCT-211」に在籍している学生の総数はいくつですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "クラス「ACCT-211」に登録されている各学生の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コース「ACCT-211」のすべての学生の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "クラス「ACCT-211」に登録し、グレード「C」を取得した学生の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「ACCT-211」を受講して「C」を取得したすべての学生の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 32, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "従業員の総数を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "何人の従業員がいますか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "何人の教授が「Ph.D.」の学位を持っていますか。程度?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Ph.D.」の学位を取得した教授の総数はいくつですか。?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「accounting」部の教授が教えてくれたクラスには何人の学生が在籍していますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「accounting」部の教授が教えるいくつかのクラスには何人の学生が在籍していますか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "学生数が最も多い学部の名前は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "学生数が最も多い学部の名前は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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": "すべての部門の名前を名前順にリストします。", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "アルファベット順のすべての部門の名前は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": 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": "部屋「KLR209」で行われるすべてのコースのコードを一覧表示します。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"KLR209\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "部屋「KLR209」にあるすべてのコースのコードは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"KLR209\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "生年月日順にすべてのジョブコードが「PROF」の従業員の名をリストします。", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"PROF\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": 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": "生年月日順に並べられた教授である従業員の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"PROF\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": 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": "すべての教授の名と役職を、名のアルファベット順に並べ替えて検索します。", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": 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": "名のアルファベット順に並べ替えられたすべての教授の名とオフィスの場所は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "最年長の従業員の名前と苗字は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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": "生年月日が最も早い従業員の名前と苗字は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "GPAが3を超える学生の中で最年少の名前、gpaは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 39, false ], null ], 3.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "GPAが3を超える最年少の学生の名前と苗字は何ですか?また、彼らのGPAは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 39, false ], null ], 3.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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」級を取得した生徒の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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」級を取得したすべての生徒の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "教授の数が最も少ない部門の名前は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 28, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "教授が最も少ない部門の名前は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 28, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "「Ph.D.」の学位を持つ教授の数が最も多い部門の名前は何ですか。程度?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [ [ 0, 28, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "「Ph.D.」の学位を取得している教授が最も多いのはどの部門ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [ [ 0, 28, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "クラスを教えていない教授の名は何ですか。", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"PROF\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "クラスを教えていないすべての教授の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "\"PROF\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "クラスを教えていない「history」学部の教授の名は何ですか。", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ], "and", [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "教えていないすべての「history」教授の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ], "and", [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「history」学部の教授の名前と役職は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ], "and", [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "すべての「history」学部の教授の名前と役職は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ], "and", [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "苗字が「Heffington」である教授の部門名と役職は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ], "and", [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Heffington\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "苗字が「Heffington」の教授の部門とオフィスの場所の名前は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ], "and", [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Heffington\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「DRE102」に在籍している教授の名前と雇用日を検索します。", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"DRE 102\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「DRE102」にオフィスを構える教授の名前は何ですか。また、いつ採用されましたか。", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"DRE 102\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "苗字が「Smithson」の学生が受講したコースのコードは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], "\"Smithson\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Smithson」という名前の学生が受講したすべてのクラスのコースコードは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ], "and", [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], "\"Smithson\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "苗字が「Smithson」の学生が受講したコースの説明と単位は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 6 ], [ "table_unit", 1 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], "\"Smithson\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Smithson」の学生が受講したコースは何単位ですか。また、その説明は何ですか。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 6 ], [ "table_unit", 1 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 33, false ], null ], "\"Smithson\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Ph.D.」あるいは「MA 」の学位を持っている教授の数。", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ], "or", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"MA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Ph.D.」あるいは「MA 」の学位を持っている教授の数。", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ], "or", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"MA\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Accounting」学部または「Biology 」学部の教授は何人いますか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Biology\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Accounting」学部または「Biology 」学部にいる教授の数はいくつですか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Biology\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コード「CIS-220」と「QM-261」で2つのコースを教えている教授の名。", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"CIS-220\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"QM-261\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": 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": "「CIS-220」と「QM-261」を教えている教授の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"CIS-220\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 6, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"QM-261\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": 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": "「Accounting」学部と「Computer Info」学部からクラスを受講している学生の名を見つけます。システム部門", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ], [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ], [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": 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": "「Accounting」学部と「Computer Info」学部のクラスを受講しているすべての学生の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ], [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ], [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": 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": "コード「ACCT-211」でコースに登録した学生の平均GPAはどれくらいですか?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 32, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「ACCT-211」を受講している学生の平均GPAはどれくらいですか?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 25, false ], null ], [ 0, 32, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "最高のGPAを持つ上位5人の学生の名、GPA、電話番号は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 42, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 39, false ], null ] ] ], "limit": 5, "intersect": null, "union": null, "except": 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": "上位5つのGPAを持つ学生の名、GPA、および電話番号は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 39, false ], null ] ], [ 0, [ 0, [ 0, 42, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 39, false ], null ] ] ], "limit": 5, "intersect": null, "union": null, "except": null } }, { "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": "成績が最も低い学生の学部名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 39, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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": "GPAが最も低い学生のいる学部の名前は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 39, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "gpaがすべての学生の平均gpaよりも低い学生の名とgpa。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 39, false ], null ], { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "GPAが平均より低いすべての学生の名とGPAは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 39, false ], null ], { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "学生数が最も多い学部の名前と住所。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": 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": "学生数が最も多い学部の名前と住所は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "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位の学部の名前、住所、学生数。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "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人多い学部の学生の名前、住所、人数は?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 41, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 41, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": 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": "「 history」学部に在籍し、「Ph.D.」の学位を取得している教授の名とオフィスを探します。", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「 history」学部に在籍し、「Ph.D.」の学位を取得している教授の名と役職は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 17, false ], null ], [ 0, 27, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 28, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "いくつかのコースを教えたすべてのインストラクターの名とコース名。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コースを教えたすべての教師の名とそれに対応するコースコードは何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "いくつかのコースを教えたすべてのインストラクターの名とコースの説明。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "コースを教えたすべての教師の名とそれに対応する説明は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "いくつかのコースを教えたすべてのインストラクターの名とオフィスを見つけ、コースの説明も見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 1 ], [ "table_unit", 5 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "いくつかのコースを教えたすべての講師の名、オフィスの場所は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 1 ], [ "table_unit", 5 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "いくつかのコースを教えたすべてのインストラクターの名とオフィス、コースの説明と部門名を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 1 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "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 ] ] }, "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 ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "すべてのインストラクターの名、オフィスの場所、部門は何ですか?また、彼らが教えるコースの説明は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 1 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "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 ] ] }, "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 ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "いくつかのコースを受講したすべての学生の名前とコースの説明を検索します。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ], [ "table_unit", 0 ], [ "table_unit", 1 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "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": "クラスを受講したすべての学生の名前とそれに対応するコースの説明は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ], [ "table_unit", 0 ], [ "table_unit", 1 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "あるコースを受講して「A」または「C」を取得したすべての学生の名前を検索します。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ], "or", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"A\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「A」または「C」を取得したコースを受講しているすべての学生の名前は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"C\"", null ], "or", [ false, 2, [ 0, [ 0, 26, false ], null ], "\"A\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "いくつかのコースと教室を教えている「Accounting」部門のすべての教授の名を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "教えるすべての「Accounting」部の教授の名は何ですか、そして彼らが教えるコースの教室は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Accounting\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Computer Info. Systems」でクラスを教えているすべての教授の名と学位を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Computer Info. Systems」部門で教えている教授の名と最高の学位は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "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 ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Computer Info. Systems\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コード10018でクラスでグレード「A」を取得した学生の苗字は何ですか。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"A\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], 10018.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "コード10018でクラスで「A」を受け取った学生の苗字は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], "\"A\"", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], 10018.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Ph.D.」の学位を取得しなかった「history」教授の名と役職を見つけてください。程度。", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ], "and", [ false, 7, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Ph.D.」の学位を持っていない「history」学教授の名と役職は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 17, false ], null ], "and", [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"History\"", null ], "and", [ false, 7, [ 0, [ 0, 31, false ], null ], "\"Ph.D.\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "複数のクラスを教えている教授の名を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "複数のクラスを教えるすべての教授の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 17, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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 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": "ちょうど1つのクラスを受講した学生の名を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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 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": "1つのコースしか受講しなかった学生の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 25, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "説明に「Statistics」という単語が含まれるクラスを提供する部門の名前を見つけます。", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%Statistics%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "「Statistics」という言葉を含む説明のあるコースを提供している部門の名前は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%Statistics%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "苗字が「S」で始まり、「ACCT-211」クラスを受講している学生の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ], "and", [ false, 9, [ 0, [ 0, 33, false ], null ], "\"S%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": 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": "苗字が文字「S」で始まり、「ACCT-211」を使用している学生の名は何ですか?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 25, false ], null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"ACCT-211\"", null ], "and", [ false, 9, [ 0, [ 0, 33, false ], null ], "\"S%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } ]