[ { "db_id": "college_2", "query": "SELECT DISTINCT building FROM classroom WHERE capacity > 50", "query_toks": [ "SELECT", "DISTINCT", "building", "FROM", "classroom", "WHERE", "capacity", ">", "50" ], "query_toks_no_value": [ "select", "distinct", "building", "from", "classroom", "where", "capacity", ">", "value" ], "question": "Encuentra los edificios que tienen habitaciones con capacidad para más de 50.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT DISTINCT building FROM classroom WHERE capacity > 50", "query_toks": [ "SELECT", "DISTINCT", "building", "FROM", "classroom", "WHERE", "capacity", ">", "50" ], "query_toks_no_value": [ "select", "distinct", "building", "from", "classroom", "where", "capacity", ">", "value" ], "question": "¿Cuáles son los distintos edificios con capacidades superiores a 50?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building != 'Lamberton'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "!", "=", "'Lamberton", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "!", "=", "value" ], "question": "Cuente el número de habitaciones que no están en el edificio ''Lamberton''.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building != 'Lamberton'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "!", "=", "'Lamberton", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "!", "=", "value" ], "question": "¿Cuántas aulas no hay en ''Lamberton''?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department WHERE budget > (SELECT avg(budget) FROM department)", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "WHERE", "budget", ">", "(", "SELECT", "avg", "(", "budget", ")", "FROM", "department", ")" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "where", "budget", ">", "(", "select", "avg", "(", "budget", ")", "from", "department", ")" ], "question": "¿Cuál es el nombre y el edificio de los departamentos cuyo presupuesto es mayor que el medio?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 6, 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_2", "query": "SELECT dept_name , building FROM department WHERE budget > (SELECT avg(budget) FROM department)", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "WHERE", "budget", ">", "(", "SELECT", "avg", "(", "budget", ")", "FROM", "department", ")" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "where", "budget", ">", "(", "select", "avg", "(", "budget", ")", "from", "department", ")" ], "question": "Indique el nombre y edificio de los departamentos con presupuesto superior al promedio.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 6, 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_2", "query": "SELECT building , room_number FROM classroom WHERE capacity BETWEEN 50 AND 100", "query_toks": [ "SELECT", "building", ",", "room_number", "FROM", "classroom", "WHERE", "capacity", "BETWEEN", "50", "AND", "100" ], "query_toks_no_value": [ "select", "building", ",", "room_number", "from", "classroom", "where", "capacity", "between", "value", "and", "value" ], "question": "Encuentre el número de salón de los salones que pueden sentar de 50 a 100 estudiantes y sus edificios.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 1, [ 0, [ 0, 3, false ], null ], 50.0, 100.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT building , room_number FROM classroom WHERE capacity BETWEEN 50 AND 100", "query_toks": [ "SELECT", "building", ",", "room_number", "FROM", "classroom", "WHERE", "capacity", "BETWEEN", "50", "AND", "100" ], "query_toks_no_value": [ "select", "building", ",", "room_number", "from", "classroom", "where", "capacity", "between", "value", "and", "value" ], "question": "¿Cuáles son los números de las salas y los edificios correspondientes para las aulas con capacidad para entre 50 y 100 estudiantes?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 1, [ 0, [ 0, 3, false ], null ], 50.0, 100.0 ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department ORDER BY budget DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "ORDER", "BY", "budget", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "order", "by", "budget", "desc", "limit", "value" ], "question": "Busque el nombre y el edificio del departamento con mayor presupuesto.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department ORDER BY budget DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "ORDER", "BY", "budget", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "order", "by", "budget", "desc", "limit", "value" ], "question": "¿Cuál es el nombre del departamento y el edificio correspondiente para el departamento con mayor presupuesto?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM student WHERE dept_name = 'History' ORDER BY tot_cred DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "dept_name", "=", "'History", "'", "ORDER", "BY", "tot_cred", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "dept_name", "=", "value", "order", "by", "tot_cred", "desc", "limit", "value" ], "question": "¿Cuál es el nombre del estudiante que tiene el total de créditos más alto en el departamento de ''Historia''?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM student WHERE dept_name = 'History' ORDER BY tot_cred DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "dept_name", "=", "'History", "'", "ORDER", "BY", "tot_cred", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "dept_name", "=", "value", "order", "by", "tot_cred", "desc", "limit", "value" ], "question": "Indique el nombre del estudiante del departamento de ''Historia'' con más créditos.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building = 'Lamberton'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "=", "'Lamberton", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "=", "value" ], "question": "¿Cuántas habitaciones tiene el edificio ''Lamberton''?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building = 'Lamberton'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "=", "'Lamberton", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "=", "value" ], "question": "Cuente el número de aulas en ''Lamberton''.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(DISTINCT s_id) FROM advisor", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "s_id", ")", "FROM", "advisor" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "s_id", ")", "from", "advisor" ], "question": "¿Cuántos estudiantes tienen profesores?", "sql": { "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 37, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(DISTINCT s_id) FROM advisor", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "s_id", ")", "FROM", "advisor" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "s_id", ")", "from", "advisor" ], "question": "Cuente el número de estudiantes que tienen profesores.", "sql": { "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 37, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(DISTINCT dept_name) FROM course", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "course" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", "from", "course" ], "question": "¿Cuántos departamentos ofrecen cursos?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 9, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(DISTINCT dept_name) FROM course", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "course" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", "from", "course" ], "question": "Cuente el número de departamentos que ofrecen cursos.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 9, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "course_id", ")", "FROM", "course", "WHERE", "dept_name", "=", "'Physics", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "course_id", ")", "from", "course", "where", "dept_name", "=", "value" ], "question": "¿Cuántos cursos diferentes ofrece el departamento de Física?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Physics\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "course_id", ")", "FROM", "course", "WHERE", "dept_name", "=", "'Physics", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "course_id", ")", "from", "course", "where", "dept_name", "=", "value" ], "question": "Cuente el número de cursos en el departamento de ''Física''.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Physics\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) = 2", "query_toks": [ "SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "Encuentre el título de los cursos que tienen dos requisitos previos.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) = 2", "query_toks": [ "SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "¿Cuáles son los títulos de los cursos con dos prerrequisitos?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.title , T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.title", ",", "T1.credits", ",", "T1.dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "¿Encuentre el título, el crédito y el nombre del departamento de los cursos que tienen más de un prerrequisito?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.title , T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.title", ",", "T1.credits", ",", "T1.dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "¿Cuál es el título, el valor del crédito y el nombre del departamento para los cursos con más de un prerrequisito?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "¿Cuántos cursos que no tienen prerrequisito?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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_2", "query": "SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "Cuente el número de cursos sin prerrequisitos.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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_2", "query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "Encuentre el nombre de los cursos que no tienen ningún prerrequisito.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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_2", "query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "¿Cuáles son los títulos de los cursos sin prerrequisitos?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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_2", "query": "SELECT COUNT (DISTINCT id) FROM teaches", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "teaches" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "id", ")", "from", "teaches" ], "question": "¿Cuántos profesores diferentes han impartido algún curso?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT COUNT (DISTINCT id) FROM teaches", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "teaches" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "id", ")", "from", "teaches" ], "question": "Cuente el número de profesores distintos que han impartido un curso.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT sum(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance'", "query_toks": [ "SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "'Marketing", "'", "OR", "dept_name", "=", "'Finance", "'" ], "query_toks_no_value": [ "select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value" ], "question": "Encuentre los presupuestos totales del departamento de Marketing o Finanzas.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Marketing\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Finance\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT sum(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance'", "query_toks": [ "SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "'Marketing", "'", "OR", "dept_name", "=", "'Finance", "'" ], "query_toks_no_value": [ "select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value" ], "question": "¿Cuál es la suma de los presupuestos de los departamentos de ''Marketing'' y ''Finanzas''?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Marketing\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Finance\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'", "query_toks": [ "SELECT", "dept_name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "Soisalon", "%", "'" ], "query_toks_no_value": [ "select", "dept_name", "from", "instructor", "where", "name", "like", "value" ], "question": "Busque el nombre del departamento del profesor cuyo nombre contiene 'Soisalon'.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%Soisalon%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'", "query_toks": [ "SELECT", "dept_name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "Soisalon", "%", "'" ], "query_toks_no_value": [ "select", "dept_name", "from", "instructor", "where", "name", "like", "value" ], "question": "¿Cómo se llama el departamento con una estructura que tiene un nombre como ''Soisalon''?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%Soisalon%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "=", "'Lamberton", "'", "AND", "capacity", "<", "50" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "=", "value", "and", "capacity", "<", "value" ], "question": "¿Cuántas salas con capacidad inferior a 50 tiene el edificio ''Lamberton''?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ], "and", [ false, 4, [ 0, [ 0, 3, false ], null ], 50.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "=", "'Lamberton", "'", "AND", "capacity", "<", "50" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "=", "value", "and", "capacity", "<", "value" ], "question": "Cuente el número de habitaciones en ''Lamberton'' con capacidad inferior a 50.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ], "and", [ false, 4, [ 0, [ 0, 3, false ], null ], 50.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name , budget FROM department WHERE budget > (SELECT avg(budget) FROM department)", "query_toks": [ "SELECT", "dept_name", ",", "budget", "FROM", "department", "WHERE", "budget", ">", "(", "SELECT", "avg", "(", "budget", ")", "FROM", "department", ")" ], "query_toks_no_value": [ "select", "dept_name", ",", "budget", "from", "department", "where", "budget", ">", "(", "select", "avg", "(", "budget", ")", "from", "department", ")" ], "question": "Busque el nombre y el presupuesto de los departamentos cuyos presupuestos superen el medio.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 6, 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_2", "query": "SELECT dept_name , budget FROM department WHERE budget > (SELECT avg(budget) FROM department)", "query_toks": [ "SELECT", "dept_name", ",", "budget", "FROM", "department", "WHERE", "budget", ">", "(", "SELECT", "avg", "(", "budget", ")", "FROM", "department", ")" ], "query_toks_no_value": [ "select", "dept_name", ",", "budget", "from", "department", "where", "budget", ">", "(", "select", "avg", "(", "budget", ")", "from", "department", ")" ], "question": "¿Cuáles son los nombres y los presupuestos de los departamentos con presupuestos superiores al promedio?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 6, 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_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Statistics", "'", "ORDER", "BY", "salary", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value", "order", "by", "salary", "limit", "value" ], "question": "¿Cuál es el nombre del profesor que está en el departamento de Estadística y gana el salario más bajo?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Statistics\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Statistics", "'", "ORDER", "BY", "salary", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value", "order", "by", "salary", "limit", "value" ], "question": "Indique el nombre del profesor con los ingresos más bajos en el departamento de ''Statistics''.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Statistics\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "INTERSECT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "dept_name", "=", "value", "intersect", "select", "title", "from", "course", "where", "dept_name", "=", "value" ], "question": "Encuentre el título del curso proporcionado por los departamentos de ''Statistics'' y ''Psychology''.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "INTERSECT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "dept_name", "=", "value", "intersect", "select", "title", "from", "course", "where", "dept_name", "=", "value" ], "question": "¿Cuál es el título de un curso que figura en los departamentos de ''Statistics'' y ''Psychology''?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology'", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "EXCEPT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "dept_name", "=", "value", "except", "select", "title", "from", "course", "where", "dept_name", "=", "value" ], "question": "Busque el título del curso proporcionado por los departamentos de ''Statistics'' pero no de ''Psychology''.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology'", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "EXCEPT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "dept_name", "=", "value", "except", "select", "title", "from", "course", "where", "dept_name", "=", "value" ], "question": "¿Cuáles son los títulos de los cursos que se encuentran en el departamento de Estadística pero no en el departamento de ''Psychology''?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "EXCEPT", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "id", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value", "except", "select", "id", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Busque la identificación de los profesores que impartieron una clase en el ''Fall'' de 2009, pero no en ''Spring'' de 2010.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "EXCEPT", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "id", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value", "except", "select", "id", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "¿Cuáles son las identificaciones de los profesores que enseñaron en el ''Fall'' de 2009 pero no en la ''Spring'' de 2010?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "YEAR", "=", "2009", "OR", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "Busque el nombre de los estudiantes que tomaron alguna clase en los años 2009 y 2010.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], 2009.0, null ], "or", [ false, 2, [ 0, [ 0, 35, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "YEAR", "=", "2009", "OR", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "¿Cuáles son los nombres de los estudiantes que tomaron clases en 2009 o 2010?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], 2009.0, null ], "or", [ false, 2, [ 0, [ 0, 35, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "dept_name", "from", "course", "group", "by", "dept_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Encuentre los nombres de los 3 departamentos principales que ofrecen la mayor cantidad de cursos.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "dept_name", "from", "course", "group", "by", "dept_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "¿Cuáles son los nombres de los 3 departamentos con más cursos?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name", "ORDER", "BY", "sum", "(", "credits", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "course", "group", "by", "dept_name", "order", "by", "sum", "(", "credits", ")", "desc", "limit", "value" ], "question": "Encuentre el nombre del departamento que ofrece los créditos totales más altos.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name", "ORDER", "BY", "sum", "(", "credits", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "course", "group", "by", "dept_name", "order", "by", "sum", "(", "credits", ")", "desc", "limit", "value" ], "question": "¿Cuál es el nombre del departamento con más créditos?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT title FROM course ORDER BY title , credits", "query_toks": [ "SELECT", "title", "FROM", "course", "ORDER", "BY", "title", ",", "credits" ], "query_toks_no_value": [ "select", "title", "from", "course", "order", "by", "title", ",", "credits" ], "question": "Enumere los nombres de todos los cursos ordenados por sus títulos y créditos.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ], [ 0, [ 0, 10, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT title FROM course ORDER BY title , credits", "query_toks": [ "SELECT", "title", "FROM", "course", "ORDER", "BY", "title", ",", "credits" ], "query_toks_no_value": [ "select", "title", "from", "course", "order", "by", "title", ",", "credits" ], "question": "Dé los títulos de todos los cursos, en orden de títulos y créditos.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ], [ 0, [ 0, 10, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM department ORDER BY budget LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "department", "ORDER", "BY", "budget", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "department", "order", "by", "budget", "limit", "value" ], "question": "¿Qué departamento tiene el presupuesto más bajo?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM department ORDER BY budget LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "department", "ORDER", "BY", "budget", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "department", "order", "by", "budget", "limit", "value" ], "question": "Indique el nombre del departamento con el presupuesto más bajo.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department ORDER BY budget DESC", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "ORDER", "BY", "budget", "DESC" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "order", "by", "budget", "desc" ], "question": "Enumere los nombres y los edificios de todos los departamentos ordenados por presupuesto, de mayor a menor.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department ORDER BY budget DESC", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "ORDER", "BY", "budget", "DESC" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "order", "by", "budget", "desc" ], "question": "¿Cuáles son los nombres y edificios de los departamentos, ordenados por presupuesto descendente?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor ORDER BY salary DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "instructor", "ORDER", "BY", "salary", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "order", "by", "salary", "desc", "limit", "value" ], "question": "¿Quién es el profesor con el salario más alto?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor ORDER BY salary DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "instructor", "ORDER", "BY", "salary", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "order", "by", "salary", "desc", "limit", "value" ], "question": "Indique el nombre del profesor mejor pagado.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT * FROM instructor ORDER BY salary", "query_toks": [ "SELECT", "*", "FROM", "instructor", "ORDER", "BY", "salary" ], "query_toks_no_value": [ "select", "*", "from", "instructor", "order", "by", "salary" ], "question": "Enumere la información de todos los profesores ordenados por su salario en orden ascendente.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT * FROM instructor ORDER BY salary", "query_toks": [ "SELECT", "*", "FROM", "instructor", "ORDER", "BY", "salary" ], "query_toks_no_value": [ "select", "*", "from", "instructor", "order", "by", "salary" ], "question": "Proporcione toda la información relativa a los profesores, en orden de salario de menor a mayor.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name , dept_name FROM student ORDER BY tot_cred", "query_toks": [ "SELECT", "name", ",", "dept_name", "FROM", "student", "ORDER", "BY", "tot_cred" ], "query_toks_no_value": [ "select", "name", ",", "dept_name", "from", "student", "order", "by", "tot_cred" ], "question": "Busque el nombre de los estudiantes y los nombres de sus departamentos ordenados por sus créditos totales en orden ascendente.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name , dept_name FROM student ORDER BY tot_cred", "query_toks": [ "SELECT", "name", ",", "dept_name", "FROM", "student", "ORDER", "BY", "tot_cred" ], "query_toks_no_value": [ "select", "name", ",", "dept_name", "from", "student", "order", "by", "tot_cred" ], "question": "¿Cuáles son los nombres de los estudiantes y sus respectivos departamentos, ordenados por número de créditos de menor a mayor?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.title , T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title", "query_toks": [ "SELECT", "T1.title", ",", "T3.name", "FROM", "course", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "JOIN", "instructor", "AS", "T3", "ON", "T2.id", "=", "T3.id", "WHERE", "YEAR", "=", "2008", "ORDER", "BY", "T1.title" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t3", ".", "name", "from", "course", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "instructor", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "id", "where", "year", "=", "value", "order", "by", "t1", ".", "title" ], "question": "enumere en orden alfabético todos los nombres de los cursos y los nombres de sus profesores en el año 2008.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 23, false ], null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 2008.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.title , T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title", "query_toks": [ "SELECT", "T1.title", ",", "T3.name", "FROM", "course", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "JOIN", "instructor", "AS", "T3", "ON", "T2.id", "=", "T3.id", "WHERE", "YEAR", "=", "2008", "ORDER", "BY", "T1.title" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t3", ".", "name", "from", "course", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "instructor", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "id", "where", "year", "=", "value", "order", "by", "t1", ".", "title" ], "question": "Muestre todos los títulos y los nombres de sus profesores para los cursos en 2008, en orden alfabético por título.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 23, false ], null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 11, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 2008.0, null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "advisor", "AS", "T2", "ON", "T1.id", "=", "T2.i_id", "GROUP", "BY", "T2.i_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "advisor", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "i_id", "group", "by", "t2", ".", "i_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Busque el nombre de los profesores que guían a más de un estudiante.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 38, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 38, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "advisor", "AS", "T2", "ON", "T1.id", "=", "T2.i_id", "GROUP", "BY", "T2.i_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "advisor", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "i_id", "group", "by", "t2", ".", "i_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "¿Cuáles son los nombres de los profesores que guían a más de un alumno?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 38, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 38, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "advisor", "AS", "T2", "ON", "T1.id", "=", "T2.s_id", "GROUP", "BY", "T2.s_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "student", "as", "t1", "join", "advisor", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "s_id", "group", "by", "t2", ".", "s_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Ecuentre el nombre de los estudiantes que tienen más de un profesor.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 37, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "advisor", "AS", "T2", "ON", "T1.id", "=", "T2.s_id", "GROUP", "BY", "T2.s_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "student", "as", "t1", "join", "advisor", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "s_id", "group", "by", "t2", ".", "s_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "¿Cuáles son los nombres de los estudiantes que tienen más de un profesor?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 37, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) , building FROM classroom WHERE capacity > 50 GROUP BY building", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "building", "FROM", "classroom", "WHERE", "capacity", ">", "50", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "building", "from", "classroom", "where", "capacity", ">", "value", "group", "by", "building" ], "question": "Calcule la cantidad de habitaciones con más de 50 de capacidad para cada edificio.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, null ] ], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) , building FROM classroom WHERE capacity > 50 GROUP BY building", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "building", "FROM", "classroom", "WHERE", "capacity", ">", "50", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "building", "from", "classroom", "where", "capacity", ">", "value", "group", "by", "building" ], "question": "¿Cuántas habitaciones en cada edificio tienen una capacidad de más de 50?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, null ] ], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building", "query_toks": [ "SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building" ], "question": "Encuentre la capacidad máxima y media entre las habitaciones de cada edificio.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ], [ 5, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building", "query_toks": [ "SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building" ], "question": "¿Cuál es la capacidad máxima y media de las habitaciones de cada edificio?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ], [ 5, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 1, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT title FROM course GROUP BY title HAVING count(*) > 1", "query_toks": [ "SELECT", "title", "FROM", "course", "GROUP", "BY", "title", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "title", "from", "course", "group", "by", "title", "having", "count", "(", "*", ")", ">", "value" ], "question": "Busque el título del curso que ofrece más de un departamento.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT title FROM course GROUP BY title HAVING count(*) > 1", "query_toks": [ "SELECT", "title", "FROM", "course", "GROUP", "BY", "title", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "title", "from", "course", "group", "by", "title", "having", "count", "(", "*", ")", ">", "value" ], "question": "¿Cuáles son los títulos de los cursos que se ofrecen en más de un departamento?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT sum(credits) , dept_name FROM course GROUP BY dept_name", "query_toks": [ "SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name" ], "query_toks_no_value": [ "select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name" ], "question": "Encuentre los créditos totales de los cursos impartidos por diferentes departamentos.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT sum(credits) , dept_name FROM course GROUP BY dept_name", "query_toks": [ "SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name" ], "query_toks_no_value": [ "select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name" ], "question": "¿Cuántos créditos totales ofrece cada departamento?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT min(salary) , dept_name FROM instructor GROUP BY dept_name HAVING avg(salary) > (SELECT avg(salary) FROM instructor)", "query_toks": [ "SELECT", "min", "(", "salary", ")", ",", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "avg", "(", "salary", ")", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", ")" ], "query_toks_no_value": [ "select", "min", "(", "salary", ")", ",", "dept_name", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "(", "select", "avg", "(", "salary", ")", "from", "instructor", ")" ], "question": "Encuentre el salario mínimo para los departamentos cuyo salario medio está por encima del pago medio de todos los profesores.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT min(salary) , dept_name FROM instructor GROUP BY dept_name HAVING avg(salary) > (SELECT avg(salary) FROM instructor)", "query_toks": [ "SELECT", "min", "(", "salary", ")", ",", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "avg", "(", "salary", ")", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", ")" ], "query_toks_no_value": [ "select", "min", "(", "salary", ")", ",", "dept_name", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "(", "select", "avg", "(", "salary", ")", "from", "instructor", ")" ], "question": "¿Cuál es el salario más bajo en departamentos con salario medio mayor que el general?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) , semester , YEAR FROM SECTION GROUP BY semester , YEAR", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "semester", ",", "YEAR", "FROM", "SECTION", "GROUP", "BY", "semester", ",", "YEAR" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "semester", ",", "year", "from", "section", "group", "by", "semester", ",", "year" ], "question": "Encuentre el número de cursos proporcionados en cada semestre y año.", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) , semester , YEAR FROM SECTION GROUP BY semester , YEAR", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "semester", ",", "YEAR", "FROM", "SECTION", "GROUP", "BY", "semester", ",", "YEAR" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "semester", ",", "year", "from", "section", "group", "by", "semester", ",", "year" ], "question": "¿Cuántos cursos se ofrecen en cada semestre y año?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "SECTION", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "section", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Encuentre el año que ofrece la mayor cantidad de cursos.", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 18, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "SECTION", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "section", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "¿Qué año tuvo el mayor número de cursos?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 18, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "semester", ",", "YEAR", "FROM", "SECTION", "GROUP", "BY", "semester", ",", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "semester", ",", "year", "from", "section", "group", "by", "semester", ",", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Encuentre el año y el semestre en que ofrece la mayor cantidad de cursos.", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "semester", ",", "YEAR", "FROM", "SECTION", "GROUP", "BY", "semester", ",", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "semester", ",", "year", "from", "section", "group", "by", "semester", ",", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "¿Cuál es el año y semestre con más cursos?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "student", "GROUP", "BY", "dept_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "student", "group", "by", "dept_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Encuentre el nombre del departamento que tiene la mayor cantidad de estudiantes.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 29, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "student", "GROUP", "BY", "dept_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "student", "group", "by", "dept_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "¿Cuál es el nombre del departamento con mayor matrícula?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 29, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) , dept_name FROM student GROUP BY dept_name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_name", "FROM", "student", "GROUP", "BY", "dept_name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_name", "from", "student", "group", "by", "dept_name" ], "question": "Encuentre el número total de estudiantes en cada departamento.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 29, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT count(*) , dept_name FROM student GROUP BY dept_name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_name", "FROM", "student", "GROUP", "BY", "dept_name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_name", "from", "student", "group", "by", "dept_name" ], "question": "¿Cuántos estudiantes hay en cada departamento?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 29, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT semester , YEAR FROM takes GROUP BY semester , YEAR ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "semester", ",", "YEAR", "FROM", "takes", "GROUP", "BY", "semester", ",", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "semester", ",", "year", "from", "takes", "group", "by", "semester", ",", "year", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Encuentre el semestre y el año que tiene la menor cantidad de estudiantes tomando cualquier clase.", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 34, false ], [ 0, 35, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT semester , YEAR FROM takes GROUP BY semester , YEAR ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "semester", ",", "YEAR", "FROM", "takes", "GROUP", "BY", "semester", ",", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "semester", ",", "year", "from", "takes", "group", "by", "semester", ",", "year", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "¿Qué semestre y año tuvo la menor cantidad de estudiantes?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 34, false ], [ 0, 35, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'", "query_toks": [ "SELECT", "i_id", "FROM", "advisor", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.s_id", "=", "T2.id", "WHERE", "T2.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "i_id", "from", "advisor", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "s_id", "=", "t2", ".", "id", "where", "t2", ".", "dept_name", "=", "value" ], "question": "¿Cuál es la identificación del profesor que guía a todos los estudiantes del departamento de ''History''?", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'", "query_toks": [ "SELECT", "i_id", "FROM", "advisor", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.s_id", "=", "T2.id", "WHERE", "T2.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "i_id", "from", "advisor", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "s_id", "=", "t2", ".", "id", "where", "t2", ".", "dept_name", "=", "value" ], "question": "Dé la identificación del profesor que guía a los estudiantes del departamento de ''History''.", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'", "query_toks": [ "SELECT", "T2.name", ",", "T2.salary", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "salary", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value" ], "question": "Encuentre el nombre y salario de los profesores del departamento de ''History''.", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'", "query_toks": [ "SELECT", "T2.name", ",", "T2.salary", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "salary", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value" ], "question": "¿Cuáles son los nombres y salarios de los profesores del departamento de ''History''?", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq", "query_toks": [ "SELECT", "course_id", "FROM", "course", "EXCEPT", "SELECT", "course_id", "FROM", "prereq" ], "query_toks_no_value": [ "select", "course_id", "from", "course", "except", "select", "course_id", "from", "prereq" ], "question": "Ecuentre la identificación de los cursos que no tienen ningún prerrequisito.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq", "query_toks": [ "SELECT", "course_id", "FROM", "course", "EXCEPT", "SELECT", "course_id", "FROM", "prereq" ], "query_toks_no_value": [ "select", "course_id", "from", "course", "except", "select", "course_id", "from", "prereq" ], "question": "¿Cuáles son las identificaciones de los cursos sin prerrequisitos?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "Encuentra el nombre de los cursos que no tienen ningún prerrequisito.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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_2", "query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "¿Cuáles son los nombres de los cursos sin prerrequisitos?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, 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_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.prereq_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'International", "Finance", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "prereq_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "¿Cuál es el título de la clase de prerrquisitos del curso de ''International Finance''?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ], "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_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.prereq_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'International", "Finance", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "prereq_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "Deme el título del prerrequisito al curso de ''International Finance''", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ], "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_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.course_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.prereq_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'Differential", "Geometry", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "course_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "prereq_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "Encuentre el título del curso cuyo prerrequisito es el curso de Geometría Diferencial.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Differential Geometry\"", null ] ], "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_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.course_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.prereq_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'Differential", "Geometry", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "course_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "prereq_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "¿Cuál es el título del curso con Geometría Diferencial como prerrequisito?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Differential Geometry\"", null ] ], "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_2", "query": "SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester = 'Fall' AND YEAR = 2003)", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "id", "IN", "(", "SELECT", "id", "FROM", "takes", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2003", ")" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "id", "in", "(", "select", "id", "from", "takes", "where", "semester", "=", "value", "and", "year", "=", "value", ")" ], "question": "Busque los nombres de los estudiantes que han tomado algún curso en el semestre de otoño del año 2003.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], 2003.0, null ] ], "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_2", "query": "SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester = 'Fall' AND YEAR = 2003)", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "id", "IN", "(", "SELECT", "id", "FROM", "takes", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2003", ")" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "id", "in", "(", "select", "id", "from", "takes", "where", "semester", "=", "value", "and", "year", "=", "value", ")" ], "question": "¿Cuáles son los nombres de los estudiantes que tomaron un curso en el otoño de 2003?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], 2003.0, null ] ], "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_2", "query": "SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010", "query_toks": [ "SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "building", "=", "'Chandler", "'", "AND", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "course", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "building", "=", "value", "and", "semester", "=", "value", "and", "year", "=", "value" ], "question": "¿Cuál es el título del curso que se ofreció en el edificio ''Chandler'' durante el semestre de otoño del año 2010?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Chandler\"", null ], "and", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010", "query_toks": [ "SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "building", "=", "'Chandler", "'", "AND", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "course", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "building", "=", "value", "and", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Dé el título del curso ofrecido en ''Chandler'' durante el otoño de 2010.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Chandler\"", null ], "and", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming'", "query_toks": [ "SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.id", "=", "T2.id", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T3.title", "=", "'C", "Programming", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t3", ".", "title", "=", "value" ], "question": "Busque el nombre de los profesores que enseñaron el curso de ''C Programming'' anteriormente.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"C Programming\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming'", "query_toks": [ "SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.id", "=", "T2.id", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T3.title", "=", "'C", "Programming", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t3", ".", "title", "=", "value" ], "question": "¿Cuáles son los nombres de los profesores que han impartido cursos de ''C Programming''?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"C Programming\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'", "query_toks": [ "SELECT", "T2.name", ",", "T2.salary", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'Math", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "salary", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value" ], "question": "Encuentre el nombre y salario de los profesores del departamento de ''Math''.", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'", "query_toks": [ "SELECT", "T2.name", ",", "T2.salary", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'Math", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "salary", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value" ], "question": "¿Cuáles son los nombres y salarios de los profesores del departamento de ''Math'?", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred", "query_toks": [ "SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'Math", "'", "ORDER", "BY", "T3.tot_cred" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value", "order", "by", "t3", ".", "tot_cred" ], "question": "Busque el nombre de los profesores del departamento de ''Math\" y ordene los resultados por el crédito total de los estudiantes.", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred", "query_toks": [ "SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'Math", "'", "ORDER", "BY", "T3.tot_cred" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value", "order", "by", "t3", ".", "tot_cred" ], "question": "¿Cuáles son los nombres de todos los profesores del departamento de ''Math\" ordenados por créditos totales del estudiante?", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.prereq_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'Mobile", "Computing", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "prereq_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "¿Cuál es el título del curso del prerrequisito del curso Mobile Computing?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Mobile Computing\"", null ] ], "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_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.prereq_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'Mobile", "Computing", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "prereq_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "¿Cuál es el título del curso que es un prerrequisito para la Mobile Computing?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "from": { "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Mobile Computing\"", null ] ], "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_2", "query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "ORDER", "BY", "T3.tot_cred", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "order", "by", "t3", ".", "tot_cred", "desc", "limit", "value" ], "question": "Busque el nombre del profesor que su estudiante tiene el mayor número de créditos totales.", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "ORDER", "BY", "T3.tot_cred", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "order", "by", "t3", ".", "tot_cred", "desc", "limit", "value" ], "question": "¿Cuál es el nombre del profesor que su estudiante tiene el mayor número de créditos totales?", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", ")" ], "question": "Encuentre el nombre de los profesores que no enseñaron ningún curso.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, 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_2", "query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", ")" ], "question": "¿Cuáles son los nombres de los profesores que no enseñaron?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, 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_2", "query": "SELECT id FROM instructor EXCEPT SELECT id FROM teaches", "query_toks": [ "SELECT", "id", "FROM", "instructor", "EXCEPT", "SELECT", "id", "FROM", "teaches" ], "query_toks_no_value": [ "select", "id", "from", "instructor", "except", "select", "id", "from", "teaches" ], "question": "Encuentre la identificación de los profesores que no enseñaron ningún curso.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT id FROM instructor EXCEPT SELECT id FROM teaches", "query_toks": [ "SELECT", "id", "FROM", "instructor", "EXCEPT", "SELECT", "id", "FROM", "teaches" ], "query_toks_no_value": [ "select", "id", "from", "instructor", "except", "select", "id", "from", "teaches" ], "question": "¿Cuáles son las identificaciones de los profesores que no enseñaron?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester = 'Spring')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", "where", "semester", "=", "value", ")" ], "question": "Busque los nombres de los profesores que no recibieron ningún curso en ningún semestre de ''Spring''.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ] ], "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_2", "query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester = 'Spring')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", "where", "semester", "=", "value", ")" ], "question": "¿Cuáles son los nombres de los profesores que no enseñaron cursos en ''Spring''?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ] ], "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_2", "query": "SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "ORDER", "BY", "avg", "(", "salary", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "instructor", "group", "by", "dept_name", "order", "by", "avg", "(", "salary", ")", "desc", "limit", "value" ], "question": "Busque el nombre del departamento que tiene el salario medio más alto de profesores.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 5, 14, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "ORDER", "BY", "avg", "(", "salary", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "instructor", "group", "by", "dept_name", "order", "by", "avg", "(", "salary", ")", "desc", "limit", "value" ], "question": "¿Qué departamento tiene el salario medio de profesor más alto?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 5, 14, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT avg(T1.salary) , count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1", "query_toks": [ "SELECT", "avg", "(", "T1.salary", ")", ",", "count", "(", "*", ")", "FROM", "instructor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "ORDER", "BY", "T2.budget", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "salary", ")", ",", "count", "(", "*", ")", "from", "instructor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "order", "by", "t2", ".", "budget", "desc", "limit", "value" ], "question": "Encuentre el número y el salario medio de todos los profesores que están en el departamento con el presupuesto más alto.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT avg(T1.salary) , count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1", "query_toks": [ "SELECT", "avg", "(", "T1.salary", ")", ",", "count", "(", "*", ")", "FROM", "instructor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "ORDER", "BY", "T2.budget", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "salary", ")", ",", "count", "(", "*", ")", "from", "instructor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "order", "by", "t2", ".", "budget", "desc", "limit", "value" ], "question": "¿Cuántos profesores hay en el departamento con el presupuesto más alto y cuál es su salario medio?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ] }, "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T3.title , T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT max(capacity) FROM classroom)", "query_toks": [ "SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")" ], "query_toks_no_value": [ "select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")" ], "question": "¿Cuál es el título y los créditos del curso que se imparte en el aula más grande (con mayor capacidad)?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 19, false ], null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 20, false ], null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 3, 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_2", "query": "SELECT T3.title , T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT max(capacity) FROM classroom)", "query_toks": [ "SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")" ], "query_toks_no_value": [ "select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")" ], "question": "Dé el título y los créditos de la asignatura que se enseña en el aula con mayor capacidad.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 19, false ], null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 20, false ], null ], "and", [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 3, 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_2", "query": "SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.id", "FROM", "takes", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "id", "not", "in", "(", "select", "t1", ".", "id", "from", "takes", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "dept_name", "=", "value", ")" ], "question": "Busque el nombre de los estudiantes que no tomaron ningún curso del departamento de ''Biology''.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 27, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Biology\"", null ] ], "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_2", "query": "SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.id", "FROM", "takes", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "id", "not", "in", "(", "select", "t1", ".", "id", "from", "takes", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "dept_name", "=", "value", ")" ], "question": "¿Cuáles son los nombres de los estudiantes que no han tomado ningún curso de ''Biology''?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 27, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 7, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Biology\"", null ] ], "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_2", "query": "SELECT count(DISTINCT T2.id) , count(DISTINCT T3.id) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.id", ")", ",", "count", "(", "DISTINCT", "T3.id", ")", ",", "T3.dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1.dept_name", "=", "T3.dept_name", "GROUP", "BY", "T3.dept_name" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "id", ")", ",", "count", "(", "distinct", "t3", ".", "id", ")", ",", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name" ], "question": "Encuentre el número total de estudiantes y el número total de profesores para cada departamento.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 29, false ], null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 27, true ], null ] ], [ 3, [ 0, [ 0, 11, 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_2", "query": "SELECT count(DISTINCT T2.id) , count(DISTINCT T3.id) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.id", ")", ",", "count", "(", "DISTINCT", "T3.id", ")", ",", "T3.dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1.dept_name", "=", "T3.dept_name", "GROUP", "BY", "T3.dept_name" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "id", ")", ",", "count", "(", "distinct", "t3", ".", "id", ")", ",", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name" ], "question": "¿Cuántos estudiantes y profesores hay en cada departamento?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ], [ "table_unit", 3 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 29, false ], null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 13, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 27, true ], null ] ], [ 3, [ 0, [ 0, 11, 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_2", "query": "SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance')", "query_toks": [ "SELECT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "T2.course_id", "IN", "(", "SELECT", "T4.prereq_id", "FROM", "course", "AS", "T3", "JOIN", "prereq", "AS", "T4", "ON", "T3.course_id", "=", "T4.course_id", "WHERE", "T3.title", "=", "'International", "Finance", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "t2", ".", "course_id", "in", "(", "select", "t4", ".", "prereq_id", "from", "course", "as", "t3", "join", "prereq", "as", "t4", "on", "t3", ".", "course_id", "=", "t4", ".", "course_id", "where", "t3", ".", "title", "=", "value", ")" ], "question": "Busque el nombre de los estudiantes que han realizado el curso de prerrequisito del curso con el título Finanzas internacionales.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ], "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_2", "query": "SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance')", "query_toks": [ "SELECT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "T2.course_id", "IN", "(", "SELECT", "T4.prereq_id", "FROM", "course", "AS", "T3", "JOIN", "prereq", "AS", "T4", "ON", "T3.course_id", "=", "T4.course_id", "WHERE", "T3.title", "=", "'International", "Finance", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "t2", ".", "course_id", "in", "(", "select", "t4", ".", "prereq_id", "from", "course", "as", "t3", "join", "prereq", "as", "t4", "on", "t3", ".", "course_id", "=", "t4", ".", "course_id", "where", "t3", ".", "title", "=", "value", ")" ], "question": "¿Cuáles son los nombres de los estudiantes que han cursado el prerrequisito para el curso ''International Finance''?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ], "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ], "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_2", "query": "SELECT name , salary FROM instructor WHERE salary < (SELECT avg(salary) FROM instructor WHERE dept_name = 'Physics')", "query_toks": [ "SELECT", "name", ",", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Physics", "'", ")" ], "query_toks_no_value": [ "select", "name", ",", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "avg", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "Busque el nombre y el salario de los profesores cuyo salario sea inferior al salario medio de los del departamento de ''Physics''.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Physics\"", null ] ], "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_2", "query": "SELECT name , salary FROM instructor WHERE salary < (SELECT avg(salary) FROM instructor WHERE dept_name = 'Physics')", "query_toks": [ "SELECT", "name", ",", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Physics", "'", ")" ], "query_toks_no_value": [ "select", "name", ",", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "avg", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "¿Cuáles son los nombres y los salarios de los profesores que ganan menos que el salario medio de los en el departamento de ''Physics''?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Physics\"", null ] ], "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_2", "query": "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'", "query_toks": [ "SELECT", "T3.name", "FROM", "course", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "JOIN", "student", "AS", "T3", "ON", "T2.id", "=", "T3.id", "WHERE", "T1.dept_name", "=", "'Statistics", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "course", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "student", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "id", "where", "t1", ".", "dept_name", "=", "value" ], "question": "Busque el nombre de los estudiantes que tomaron algún curso ofrecido por el departamento de ''Statistics''.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 32, false ], null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'", "query_toks": [ "SELECT", "T3.name", "FROM", "course", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "JOIN", "student", "AS", "T3", "ON", "T2.id", "=", "T3.id", "WHERE", "T1.dept_name", "=", "'Statistics", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "course", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "student", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "id", "where", "t1", ".", "dept_name", "=", "value" ], "question": "¿Cuáles son los nombres de los estudiantes que han realizado cursos de ''Statistics''?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ], [ "table_unit", 6 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 32, false ], null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T2.building , T2.room_number , T2.semester , T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title", "query_toks": [ "SELECT", "T2.building", ",", "T2.room_number", ",", "T2.semester", ",", "T2.year", "FROM", "course", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.dept_name", "=", "'Psychology", "'", "ORDER", "BY", "T1.title" ], "query_toks_no_value": [ "select", "t2", ".", "building", ",", "t2", ".", "room_number", ",", "t2", ".", "semester", ",", "t2", ".", "year", "from", "course", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "dept_name", "=", "value", "order", "by", "t1", ".", "title" ], "question": "Encuentre el edificio, número de habitación, semestre y año de todos los cursos ofrecidos por el departamento de ''Psychology'' ordenados por títulos de curso.", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT T2.building , T2.room_number , T2.semester , T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title", "query_toks": [ "SELECT", "T2.building", ",", "T2.room_number", ",", "T2.semester", ",", "T2.year", "FROM", "course", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.dept_name", "=", "'Psychology", "'", "ORDER", "BY", "T1.title" ], "query_toks_no_value": [ "select", "t2", ".", "building", ",", "t2", ".", "room_number", ",", "t2", ".", "semester", ",", "t2", ".", "year", "from", "course", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "dept_name", "=", "value", "order", "by", "t1", ".", "title" ], "question": "¿Cuáles son el edificio, el número de habitación, el semestre y el año de los cursos en el departamento de ''Psychology'', ordenados según el título del curso?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.'", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Comp", ".", "Sci", ".", "'" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value" ], "question": "Encuentre los nombres de todos los profesores en el departamento de ''computer science''.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.'", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Comp", ".", "Sci", ".", "'" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value" ], "question": "¿Cuáles son los nombres de todos los profesores en el departamento de ciencias de la ''Comp. Sci.''?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Comp", ".", "Sci", ".", "'", "AND", "salary", ">", "80000" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value", "and", "salary", ">", "value" ], "question": "Busque los nombres de todos los profesores en el departamento de ciencias de la ''Comp. Sci.''con salario > 80000.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], 80000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Comp", ".", "Sci", ".", "'", "AND", "salary", ">", "80000" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value", "and", "salary", ">", "value" ], "question": "¿Cuáles son los nombres de los profesores en el departamento de ciencias de la ''Comp. Sci.'' que gana más de 80000?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], 80000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID", "query_toks": [ "SELECT", "name", ",", "course_id", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.ID", "=", "T2.ID" ], "query_toks_no_value": [ "select", "name", ",", "course_id", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id" ], "question": "Busque los nombres de todos los profesores que han enseñado algún curso y el course_id.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID", "query_toks": [ "SELECT", "name", ",", "course_id", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.ID", "=", "T2.ID" ], "query_toks_no_value": [ "select", "name", ",", "course_id", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id" ], "question": "¿Cuáles son los nombres de todos los profesores que han enseñado un curso, así como la identificación del curso correspondiente?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art'", "query_toks": [ "SELECT", "name", ",", "course_id", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.ID", "=", "T2.ID", "WHERE", "T1.dept_name", "=", "'Art", "'" ], "query_toks_no_value": [ "select", "name", ",", "course_id", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "t1", ".", "dept_name", "=", "value" ], "question": "Busque los nombres de todos los profesores del departamento de arte que hayan enseñado algún curso y la ID de curso.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Art\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art'", "query_toks": [ "SELECT", "name", ",", "course_id", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.ID", "=", "T2.ID", "WHERE", "T1.dept_name", "=", "'Art", "'" ], "query_toks_no_value": [ "select", "name", ",", "course_id", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "t1", ".", "dept_name", "=", "value" ], "question": "¿Cuáles son los nombres de los profesores de ''Art'' que han enseñado un curso y la identificación del curso correspondiente?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Art\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE name LIKE '%dar%'", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "dar", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "name", "like", "value" ], "question": "Busque los nombres de todos los profesores cuyo nombre incluye \"dar\".", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%dar%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE name LIKE '%dar%'", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "dar", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "name", "like", "value" ], "question": "¿Cuáles son los nombres de todos los profesores cuyos nombres incluyen \"dar\"?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%dar%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT DISTINCT name FROM instructor ORDER BY name", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "instructor", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "instructor", "order", "by", "name" ], "question": "Enumere en orden alfabético los nombres de todos los profesores distintos.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ true, [ [ 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_2", "query": "SELECT DISTINCT name FROM instructor ORDER BY name", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "instructor", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "instructor", "order", "by", "name" ], "question": "Enumere los distintos nombres de los profesores, ordenados por nombre.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ true, [ [ 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_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "UNION", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "union", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Encuentre cursos que se llevaron a cabo en el ''Fall'' de 2009 o en la ''Spring'' de 2010.", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "UNION", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "union", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "¿Cuáles son las identificaciones de los cursos en el ''Fall' de 2009 o en la ''Spring'' de 2010?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "except": null } }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "INTERSECT", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "intersect", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Encuentre cursos que se llevaron a cabo en el ''Fall'' de 2009 y en la ''Spring'' de 2010.", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "INTERSECT", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "intersect", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "¿Cuáles son las identificaciones de los cursos en el ''Fall'' de 2009 como en la ''Spring'' de 2010?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "EXCEPT", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "except", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Busque cursos en el ''Fall'' de 2009 pero no en la ''Spring'' de 2010.", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "EXCEPT", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "except", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "¿Cuáles son las ID de los cursos en el ''Fall'' de 2009 pero no en la ''Spring'' de 2010?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "college_2", "query": "SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT max(salary) FROM instructor)", "query_toks": [ "SELECT", "DISTINCT", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", ")" ], "query_toks_no_value": [ "select", "distinct", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "max", "(", "salary", ")", "from", "instructor", ")" ], "question": "Encuentre los salarios de todos los profesores distintos que son menores que el salario máximo.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, 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_2", "query": "SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT max(salary) FROM instructor)", "query_toks": [ "SELECT", "DISTINCT", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", ")" ], "query_toks_no_value": [ "select", "distinct", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "max", "(", "salary", ")", "from", "instructor", ")" ], "question": "¿Cuáles son los distintos salarios de todos los profesores que ganaron menos del salario máximo?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, 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_2", "query": "SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "ID", ")", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "id", ")", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Encuentre el número total de profesores que enseñan un curso en el semestre de ''Spring'' de 2010.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "ID", ")", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "id", ")", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "¿Cuántos profesores enseñan un curso en la ''Spring'' de 2010?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name , AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary) > 42000", "query_toks": [ "SELECT", "dept_name", ",", "AVG", "(", "salary", ")", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "AVG", "(", "salary", ")", ">", "42000" ], "query_toks_no_value": [ "select", "dept_name", ",", "avg", "(", "salary", ")", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "value" ], "question": "Encuentre los nombres y los salarios medios de todos los departamentos cuyo salario medio sea superior a 42000.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], 42000.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT dept_name , AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary) > 42000", "query_toks": [ "SELECT", "dept_name", ",", "AVG", "(", "salary", ")", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "AVG", "(", "salary", ")", ">", "42000" ], "query_toks_no_value": [ "select", "dept_name", ",", "avg", "(", "salary", ")", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "value" ], "question": "¿Cuáles son los nombres y los salarios medios de los departamentos con un salario medio superior a 42000?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], 42000.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE salary > (SELECT min(salary) FROM instructor WHERE dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "Busque los nombres de los profesores con un salario superior al de algún (al menos uno) profesor en el departamento de Biología.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ], "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_2", "query": "SELECT name FROM instructor WHERE salary > (SELECT min(salary) FROM instructor WHERE dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "¿Cuáles son los nombres de los profesores que ganan más de al menos un profesor del departamento de ''Biology''?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ], "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_2", "query": "SELECT name FROM instructor WHERE salary > (SELECT max(salary) FROM instructor WHERE dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "Busque los nombres de todos los profesores cuyo salario sea mayor que el salario de todos los profesores del departamento de ''Biology''.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ], "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_2", "query": "SELECT name FROM instructor WHERE salary > (SELECT max(salary) FROM instructor WHERE dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "¿Cuáles son los nombres de todos los profesores con un salario más alto que cualquiera de los profesores del departamento de ''Biology''?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } ]