[ { "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": "Ermitteln Sie die Anzahl der Professoren in der Abteilung \"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": "Wie viele Professoren sind in der Abteilung \"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": "Wie viele Professoren unterrichten Unterricht mit dem Code \"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": "Wie viele Professoren unterrichten eine Klasse mit dem Code \"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": "Wie lautet der Vor- und Nachname des Professors für \"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": "Wie lauten der Vor- und Nachname aller \"biology\"-Professoren\"?", "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": "Wie lauten die Vornamen und das Geburtsdatum der Professoren, die den Kurs \"ACCT-211\" unterrichten?", "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": "Wie lauten die Vornamen und Geburtsdaten der für \"ACCT-211\" zuständigen Professoren?", "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": "Wie viele Klassen hat ein Professor, dessen Nachname \"Graztevski\" ist?", "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": "Wie viele Klassen unterrichtet der Professor, dessen Nachname \"Graztevski\" ist?", "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": "Wie lautet der Code der Schule, zu der die \"Rechnungswesen\" gehört?", "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": "Wie lautet der Schulcode der \"Rechnungswesensabteilung\"?", "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": "Wie viele Credits hat der Kurs \"CIS-220\" und wie wird er beschrieben?", "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": "Wie lautet die Beschreibung für den \"CIS-220\" und wie viele Credits hat er?", "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": "Wie lautet die Adresse der \"history\"-Abteilung?", "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": "Wo ist die \"history\"-Abteilung\"?", "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": "Wie viele verschiedene Standorte hat die Schule mit Code 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": "Was sind die verschiedenen Standorte der Schule mit dem Code \"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": "Wie viele verschiedene Standorte hat jede Schule?", "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": "Zählen Sie verschiedene Adressen jeder Schule.", "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": "Finden Sie die Beschreibung und Credits für den Kurs \"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": "Wie lautet die Kursbeschreibung und die Anzahl der Credits für \"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": "Finden Sie die Anzahl der Abteilungen in jeder Schule.", "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": "Wie viele Abteilungen gibt es in jeder Schule?", "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": "Finden Sie die Anzahl der verschiedenen Abteilungen in jeder Schule, deren Anzahl der verschiedenen Abteilungen weniger als 5 beträgt.", "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": "Wie viele verschiedene Abteilungen gibt es in jeder Schule mit weniger als 5 Wohnungen?", "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": "Wie viele Abschnitte hat jeder Kurs?", "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": "Wie viele Abschnitte hat jeder Kurs?", "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": "Wie hoch ist der Gesamtcredits, den jede Abteilung anbietet?", "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": "Wie viele Credits bietet die Abteilung an?", "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": "Finden Sie die Anzahl der angebotenen Klassen für alle Klassenräume, in denen mindestens 2 Klassen abgehalten wurden.", "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": "Wie viele Klassen werden für jedes Klassenzimmer mit mindestens 2 Klassen angeboten?", "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": "Finden Sie die Anzahl der Klassen in jeder Abteilung.", "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": "Wie viele Klassen finden in jeder Abteilung statt?", "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": "Finden Sie die Anzahl der Klassen in jeder Schule.", "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": "Wie viele Klassen gibt es für jede Schule?", "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": "Wie viele Professoren gibt es für verschiedene Schulen?", "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": "Wie viele verschiedene Professoren gibt es für die verschiedenen Schulen?", "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": "Finden Sie die Anzahl und den Stellencode hat die meisten Mitarbeiter.", "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": "Was ist die Anzahl und der Stellencode mit den meisten Mitarbeitern?", "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": "Welche Schule hat die geringste Anzahl von Professoren?", "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": "Welche Schule hat die wenigsten Professoren?", "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": "Finden Sie die Anzahl der Professoren mit einem \"Ph.D.\"-Abschluss in jeder Abteilung.", "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": "Wie viele Professoren haben einen \"Ph.D.\"? in jeder Abteilung?", "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": "Finden Sie die Anzahl der Studenten für jede Abteilung.", "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": "Wie viele Studenten gibt es in jeder Abteilung?", "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": "Finden Sie die Gesamtzahl der Stunden heraus, die für alle Studenten in jeder Abteilung geleistet wurden.", "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": "Wie viele Stunden verbringen die Studenten in jeder Abteilung?", "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": "Finden Sie den maximalen, durchschnittlichen und minimalen gpa aller Studenten in jeder Abteilung.", "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": "Was ist der höchste, niedrigste und durchschnittliche GPA-Wert für jede Abteilung?", "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": "Wie lautet der Name und der durchschnittliche gpa der Abteilung, deren Studenten den höchsten durchschnittlichen gpa haben?", "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": "Welche Abteilung hat den höchsten durchschnittlichen GPA-Wert für Studenten und wie hoch ist der durchschnittliche GPA-Wert?", "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": "Wie viele Schulen gibt es insgesamt?", "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": "Wie viele Schulen gibt es in der Abteilung?", "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": "Wie viele verschiedene Klassen gibt es?", "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": "Wie viele einzigartige Klassen werden angeboten?", "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": "Wie viele Klassen werden angeboten?", "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": "Wie viele verschiedene Klassencode gibt es?", "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": "Wie viele Abteilungen hat das College?", "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": "Wie viele verschiedene Abteilungen gibt es?", "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": "Wie viele Kurse werden von der \"Computer Info. Systems\"-Abteilung angeboten? ", "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": "Wie viele Kurse bietet die Abteilung für \"Computer Information Systmes\" an?", "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": "Wie viele Abschnitte hat der Kurs\" 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": "Wie viele verschiedene Klassenabschnitte werden im Kurs\" ACCT-211\" angeboten?", "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": "Finden Sie die Gesamtpunktzahl aller von jeder Abteilung angebotenen Klassen.", "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": "Wie viele Credits werden von jeder Abteilung insgesamt angeboten?", "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": "Suchen Sie den Namen der Abteilung, die die meisten Credits aller Klassen anbietet.", "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": "Welche Abteilung bietet insgesamt die meisten Credits an?", "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": "Wie viele Schüler sind in der Klasse\" ACCT-211\" eingeschrieben?", "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": "Wie viele Studenten sind insgesamt in\" ACCT-211\" eingeschrieben?", "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": "Wie lautet der Vorname jedes Schülers, der in der Klasse\" ACCT-211\" eingeschrieben ist?", "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": "Was sind die Vornamen aller Studenten im Kurs\" 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": "Wie lautet der Vorname der Studenten, die in der Klasse \"ACCT-211\" eingeschrieben sind und die Note \"C\" erhalten haben?", "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": "Was sind die Vornamen aller Studenten, die \"ACCT-211\" genommen und ein \"C\" erhalten haben?", "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": "Finden Sie die Gesamtzahl der Mitarbeiter.", "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": "Wie viele Mitarbeiter gibt es insgesamt?", "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": "Wie viele Professoren haben einen \"Ph.D.\"-Titel? ", "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": "Wie viele Professoren gibt es insgesamt mit einem \"Ph.D.\"-Titel?", "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": "Wie viele Studenten sind in der Klasse eingeschrieben, die von einem Professor der \"Abteilung für Rechnungswesen\" unterrichtet wird?", "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": "Wie viele Studenten sind in einigen Klassen eingeschrieben, die von einem Professor der \"Abteilung für Rechnungswesen\" unterrichtet werden?", "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": "Wie heißt die Abteilung, in der die meisten Studenten eingeschrieben sind?", "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": "Wie heißt die Abteilung mit den meisten eingeschriebenen Studenten?", "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": "Listen Sie die Namen aller Abteilungen auf, die nach ihren Namen geordnet sind.", "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": "Wie heißen alle Abteilungen in alphabetischer Reihenfolge?", "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": "Listen Sie die Codes aller Kurse auf, die im Zimmer \"KLR209\" stattfinden.", "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": "Wie lauten die Codes aller Kurse, die sich im Zimmer \"KLR209\" befinden?", "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": "Listen Sie den Vornamen aller Mitarbeiter mit dem Stellencode \"PROF\" auf, der nach ihrem Geburtsdatum sortiert ist.", "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": "Wie lauten die Vornamen aller Mitarbeiter, bei denen es sich um Professoren handelt, die nach Geburtsdatum geordnet sind?", "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": "Finden Sie die Vornamen und Büros aller Professoren, sortiert nach alphabetischer Reihenfolge ihres Vornamens.", "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": "Was sind die Vornamen und Bürostandorte für alle Professoren, die alphabetisch nach Vornamen sortiert sind?", "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": "Wie lautet der Vor- und Nachname des ältesten Mitarbeiters?", "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": "Wie lautet der Vor- und Nachname des Mitarbeiters mit dem frühesten Geburtsdatum?", "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": "Was ist der Vor- und Nachname, gpa des jüngsten unter Studenten, deren GPA über 3 liegt?", "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": "Wie lautet der Vor- und Nachname des jüngsten Studenten mit einem GPA über 3 und wie lautet sein 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": "Wie lautet der Vorname von Studenten, die in einer Klasse die Klasse \"C\" erreicht haben?", "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": "Was sind die Vornamen aller Studenten, die in einer Klasse die Note \"C\" erreicht haben?", "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": "Wie heißt die Abteilung mit der geringsten Anzahl von Professoren?", "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": "Wie heißt die Abteilung mit den wenigsten Professoren?", "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": "Wie heißt die Abteilung, die die meisten \"Ph.D.\"-Titeln haben? ", "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": "Welche Abteilung hat die meisten Professoren mit einem \"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": "Was sind die Vornamen der Professoren, die keine Klasse unterrichten.", "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": "Was sind die Vornamen aller Professoren, die keine Klassen unterrichten?", "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": "Wie heißen die Professoren der Geschichtsabteilung, die keine Klasse unterrichten?", "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": "Was sind die Vornamen aller Geschichtsprofessoren, die nicht unterrichten?", "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": "Wie lautet der Nachname und das Büro des Professors aus der \"Abteilung für Geschichte\"?", "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": "Was sind der Nachname und das Büro aller Geschichtsprofessoren?", "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": "Wie lautet der Abteilungsname und das Büro des Professors, dessen Nachname \"Heffington\" ist?", "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": "Wie heißt die Abteilung und der Bürostandort des Professors mit dem Nachnamen \"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": "Finden Sie den Nachnamen und das Einstellungsdatum des Professors, der im Büro ist \"DRE 102\".", "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": "Wie lautet der Nachname des Professors, dessen Büro sich in \"DRE 102\" befindet, und wann wurden sie eingestellt?", "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": "Wie lautet der Code des Kurses, den der Student mit dem Nachnamen \"Smithson\" belegt hat?", "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": "Was sind die Kurscodes für jede Klasse, die der Student mit dem Nachnamen \"Smithson\" belegt hat?", "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": "Was ist die Beschreibung und Anrechnung des Kurses, den der Student, dessen Nachname \"Smithson\" ist, belegt hat?", "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": "Wie viele Credits hat der Student mit dem Nachnamen \"Smithson\" belegt und wie lautet seine Beschreibung?", "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": "Wie viele Professoren mit einem \"Ph.D.\" oder \"MA\"-Abschluss?", "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": "Wie viele Professoren haben entweder einen \"Ph.D.\" oder \"Masters\"-Abschlüsse?", "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": "Wie viele Professoren kommen entweder aus der Abteilung für \"Accounting\" oder \"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": "Wie viele Professoren sind in den Abteilungen \"Accounting\" oder \"Biology\" tätig?", "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": "Suchen Sie den Vornamen des Professors, der zwei Kurse mit den Codes \"CIS-220 \" und \"QM-261\" unterrichtet.", "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": "Wie lautet der Vorname des Professors, der \"CIS-220 \" und \"QM-261\" unterrichtet?", "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": "Suchen Sie den Vornamen des Studenten, der Unterricht in \"accounting\" und \"Computer Info. Systems\"-Abteilung nimmt. ", "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": "Wie lauten die Vornamen aller Studenten, die an Kursen für \"accounting\" und \"Computer Information Systems\" teilnehmen?", "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": "Wie hoch ist der durchschnittliche gpa der im Kurs eingeschriebenen Studenten mit dem Code \"ACCT-211\"?", "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": "Was ist der durchschnittliche GPA von Studenten, die \"ACCT-211\" nehmen?", "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": "Was ist der Vorname, die gpa und die Telefonnummer der 5 besten Studenten mit der höchsten 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": "Wie lautet der Vorname, der GPA und die Telefonnummer der Studenten mit den fünf besten GPAs?", "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": "Was ist der Abteilungsname der Studenten mit dem niedrigsten 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 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": "Wie heißt die Abteilung mit dem Studenten, der den niedrigsten GPA hat?", "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": "Finden Sie den Vornamen und den gpa der Studenten, deren gpa niedriger ist als der durchschnittliche gpa aller Studenten.", "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": "Was ist der Vorname und der GPA jedes Studenten, dessen GPA unter dem Durchschnitt liegt?", "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": "Suchen Sie den Namen und die Adresse der Abteilung mit der höchsten Anzahl von Studenten.", "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": "Wie lautet der Name und die Adresse der Abteilung mit den meisten Studenten?", "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": "Finden Sie den Namen, die Adresse und die Anzahl der Studenten in den Abteilungen mit den drei höchsten Studenten.", "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": "Wie lautet der Name, die Adresse und die Anzahl der Studenten in den Abteilungen mit den drei meisten Studenten?", "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": "Finden Sie den Vornamen und das Büro des Professors, der in der Abteilung für Geschichte ist und einen \"Ph.D.\"-Titel hat.", "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": "Wie lauten die Vornamen und das Amt der Professoren, die in der Abteilung für Geschichte tätig sind und einen \"Ph.D\"-Titel haben?", "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": "Finden Sie die Vornamen aller Lehrer, die einen Kurs unterrichtet haben, und den Kurscode.", "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": "Wie lauten die Vornamen aller Lehrer, die einen Kurs unterrichtet haben, und die entsprechenden Kurscodes?", "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": "Finden Sie die Vornamen aller Lehrer, die einen Kurs unterrichtet haben, und die Kursbeschreibung.", "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": "Wie lauten die Vornamen aller Lehrer, die einen Kurs unterrichtet haben, und die entsprechenden Beschreibungen?", "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": "Finden Sie die Vornamen und Büros aller Lehrer, die einen Kurs unterrichtet haben, und finden Sie auch die Kursbeschreibung.", "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": "Was sind die Vornamen, Bürostandorte aller Dozenten, die einen Kurs unterrichtet haben?", "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": "Finden Sie die Vornamen und Büros aller Lehrer, die einen Kurs unterrichtet haben, sowie die Kursbeschreibung und den Abteilungsnamen.", "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": "Wie lauten die Vornamen, Bürostandorte und Abteilungen aller Ausbilder und wie beschreiben sie die Kurse, die sie unterrichten?", "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": "Finden Sie die Namen aller Teilnehmer, die an einem Kurs teilgenommen haben, und die Kursbeschreibung.", "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": "Wie heißen alle Studenten, die eine Klasse besucht haben, und die entsprechenden Kursbeschreibungen?", "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": "Finden Sie die Namen aller Studenten, die einen Kurs belegt und \"A\" oder \"C\" erhalten haben.", "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": "Wie heißen alle Studenten, die einen Kurs belegen und ein \"A\" oder \"C\" erhalten haben?", "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": "Finden Sie die Vornamen aller Professoren in der Abteilung für \"Accounting\", die einen Kurs unterrichten, und das Klassenzimmer.", "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": "Wie lauten die Vornamen aller Professoren in der Abteilung für \"Accounting\", die unterrichten, und in welchen Klassenräumen werden die Kurse unterrichtet?", "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": "Finden Sie die Vornamen und den Grad aller Professoren, die eine Klasse in \"Computer Info. Systems\"-Abteilung unterrichten.", "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": "Was sind die verschiedenen Vornamen und der höchste Abschluss für Professoren, die in der Abteilung \"Computer Information Systems\" unterrichten?", "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": "Wie lautet der Nachname des Studenten, der in der Klasse die Note \"A\" mit dem Code 10018 erhalten hat?", "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": "Wie lautet der Nachname des Studenten, der in der Klasse ein \"A\" mit dem Code 10018 erhalten hat?", "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": "Finden Sie den Vornamen und das Büro des \"history\"-Professors, der keinen \"Ph.D.\"-Titel erhalten hat. Grad.", "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": "Was sind die Vornamen und Büros von \"history\"-Professors, die keinen \"Ph.D.\"-Titel haben?", "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": "Finden Sie die Vornamen von Professoren, die mehr als eine Klasse unterrichten.", "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": "Was sind die Vornamen aller Professoren, die mehr als eine Klasse unterrichten?", "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": "Finden Sie die Vornamen der Studenten, die genau eine Klasse belegt haben.", "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": "Was sind die Vornamen von Studenten, die nur einen Kurs belegt haben?", "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": "Suchen Sie den Namen der Abteilung, die die Klasse anbietet, deren Beschreibung das Wort \"Statistics\" enthält.", "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": "Wie heißt die Abteilung, die einen Kurs anbietet, dessen Beschreibung das Wort \"Statistics\" enthält?", "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": "Wie lautet der Vorname des Schülers, dessen Nachname mit dem Buchstaben S beginnt und an der \"ACCT-211\"-Klasse teilnimmt?", "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": "Wie lautet der Vorname des Studenten, dessen Nachname mit dem Buchstaben \"S\" beginnt und \"ACCT-211\" nimmt?", "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 } } ]