[ { "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": "Tìm các toà nhà có các phòng học với sức chứa hơn 50 .", "question_toks": [ "Find", "the", "buildings", "which", "have", "rooms", "with", "capacity", "more", "than", "50", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, 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": "Những toà nhà có phòng học với sức chứa lớn hơn 50 học sinh là những toà nhà nào ?", "question_toks": [ "What", "are", "the", "distinct", "buildings", "with", "capacities", "of", "greater", "than", "50", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, 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": "Đếm số lượng phòng học không nằm trong toà nhà Lamberton .", "question_toks": [ "Count", "the", "number", "of", "rooms", "that", "are", "not", "in", "the", "Lamberton", "building", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", 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": "Có bao nhiêu phòng học không nằm ở Lamberton ?", "question_toks": [ "How", "many", "classrooms", "are", "not", "in", "Lamberton", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", 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": "Tên và toà nhà của các khoa có ngân sách cao hơn ngân sách trung bình ?", "question_toks": [ "What", "is", "the", "name", "and", "building", "of", "the", "departments", "whose", "budget", "is", "more", "than", "the", "average", "budget", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Cho biết tên và toà nhà của các khoa có ngân sách cao hơn mức trung bình .", "question_toks": [ "Give", "the", "name", "and", "building", "of", "the", "departments", "with", "greater", "than", "average", "budget", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Tìm số của các phòng học có thể chứa từ 50 đến 100 sinh viên và các toà nhà mà các phòng học đó nằm trong .", "question_toks": [ "Find", "the", "room", "number", "of", "the", "rooms", "which", "can", "sit", "50", "to", "100", "students", "and", "their", "buildings", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 3, false ], null ], 50.0, 100.0 ] ] } }, { "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": "Những phòng học nào có thể chứa từ 50 đến 100 sinh viên ? Cho biết số của các phòng học này và toà nhà tương ứng với từng phòng học .", "question_toks": [ "What", "are", "the", "room", "numbers", "and", "corresponding", "buildings", "for", "classrooms", "which", "can", "seat", "between", "50", "to", "100", "students", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 3, false ], null ], 50.0, 100.0 ] ] } }, { "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": "Tìm tên và toà nhà của khoa có ngân sách cao nhất .", "question_toks": [ "Find", "the", "name", "and", "building", "of", "the", "department", "with", "the", "highest", "budget", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Khoa có ngân sách cao nhất có tên là gì và nằm ở toà nhà nào ?", "question_toks": [ "What", "is", "the", "department", "name", "and", "corresponding", "building", "for", "the", "department", "with", "the", "greatest", "budget", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Sinh viên có tổng tín chỉ cao nhất trong khoa Lịch sử có tên là gì ?", "question_toks": [ "What", "is", "the", "name", "of", "the", "student", "who", "has", "the", "highest", "total", "credits", "in", "the", "History", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", 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": "Cho biết tên của sinh viên trong khoa Lịch sử với nhiều tín chỉ nhất .", "question_toks": [ "Give", "the", "name", "of", "the", "student", "in", "the", "History", "department", "with", "the", "most", "credits", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", 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": "Toà nhà Lamberton có bao nhiêu phòng học ?", "question_toks": [ "How", "many", "rooms", "does", "the", "Lamberton", "building", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", 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": "Đếm số lượng phòng học ở Lamberton .", "question_toks": [ "Count", "the", "number", "of", "classrooms", "in", "Lamberton", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", 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": "Có bao nhiêu sinh viên có cố vấn ?", "question_toks": [ "How", "many", "students", "have", "advisors", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 37, true ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Đếm số lượng sinh viên có cố vấn .", "question_toks": [ "Count", "the", "number", "of", "students", "who", "have", "advisors", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 37, true ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Có bao nhiêu khoa cung cấp các khoá học ?", "question_toks": [ "How", "many", "departments", "offer", "courses", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 9, true ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Đếm số lượng các khoa cung cấp các khoá học .", "question_toks": [ "Count", "the", "number", "of", "departments", "which", "offer", "courses", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 9, true ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Có bao nhiêu khoá học khác nhau được cung cấp bởi khoa Vật lý ?", "question_toks": [ "How", "many", "different", "courses", "offered", "by", "Physics", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Physics\"", 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": "Đếm số lượng các khoá học thuộc khoa Vật lý .", "question_toks": [ "Count", "the", "number", "of", "courses", "in", "the", "Physics", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Physics\"", 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": "Tìm tiêu đề của các khoá học có hai khoá học tiên quyết .", "question_toks": [ "Find", "the", "title", "of", "courses", "that", "have", "two", "prerequisites", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Những khoá học với hai khoá học tiên quyết có tiêu đề là gì ?", "question_toks": [ "What", "are", "the", "titles", "for", "courses", "with", "two", "prerequisites", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tiêu đề , số lượng tín chỉ và tên khoa của các khoá học có nhiều hơn một khoá học tiên quyết .", "question_toks": [ "Find", "the", "title", ",", "credit", ",", "and", "department", "name", "of", "courses", "that", "have", "more", "than", "one", "prerequisites", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Những khoá học nào có nhiều hơn một khoá học tiên quyết ? Cho biết tiêu đề , số lượng tín chỉ và tên khoa của các khoá học này .", "question_toks": [ "What", "is", "the", "title", ",", "credit", "value", ",", "and", "department", "name", "for", "courses", "with", "more", "than", "one", "prerequisite", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Có bao nhiêu khoá học không có khoá học tiên quyết ?", "question_toks": [ "How", "many", "courses", "that", "do", "not", "have", "prerequisite", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Đếm số lượng các khoá học không yêu cầu tham gia các khoá học tiên quyết .", "question_toks": [ "Count", "the", "number", "of", "courses", "without", "prerequisites", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Tìm tên của các khoá học không có khoá học tiên quyết ?", "question_toks": [ "Find", "the", "name", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Những khoá học không có khoá học tiên quyết có tiêu đề là gì ?", "question_toks": [ "What", "are", "the", "titles", "of", "courses", "without", "prerequisites", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Có bao nhiêu giảng viên đã dạy một số khoá học ?", "question_toks": [ "How", "many", "different", "instructors", "have", "taught", "some", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Đếm số lượng giảng viên khác nhau đã dạy một số khoá học .", "question_toks": [ "Count", "the", "number", "of", "distinct", "instructors", "who", "have", "taught", "a", "course", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tổng ngân sách của khoa ' Tiếp thị ' hoặc khoa ' Tài chính ' .", "question_toks": [ "Find", "the", "total", "budgets", "of", "the", "Marketing", "or", "Finance", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Marketing\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Finance\"", 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": "Tổng ngân sách của khoa ' Tiếp thị ' hoặc khoa ' Tài chính ' là bao nhiêu ?", "question_toks": [ "What", "is", "the", "sum", "of", "budgets", "of", "the", "Marketing", "and", "Finance", "departments", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Marketing\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Finance\"", 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": "Tìm khoa của giảng viên có tên chứa cụm từ ' Soisalon ' .", "question_toks": [ "Find", "the", "department", "name", "of", "the", "instructor", "whose", "name", "contains", "'Soisalon", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%Soisalon%\"", 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": "Giảng viên có tên ' Soisalon ' thuộc về khoa nào ?", "question_toks": [ "What", "is", "the", "name", "of", "the", "department", "with", "an", "instructure", "who", "has", "a", "name", "like", "'Soisalon", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%Soisalon%\"", 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": "Toà nhà Lamberton có bao nhiêu phòng học với sức chứa dưới 50 ?", "question_toks": [ "How", "many", "rooms", "whose", "capacity", "is", "less", "than", "50", "does", "the", "Lamberton", "building", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ], "and", [ false, 4, [ 0, [ 0, 3, false ], null ], 50.0, 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": "Đếm số lượng phòng học ở Lamberton với sức chứa thấp hơn 50 .", "question_toks": [ "Count", "the", "number", "of", "rooms", "in", "Lamberton", "with", "capacity", "lower", "than", "50", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ], "and", [ false, 4, [ 0, [ 0, 3, false ], null ], 50.0, 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": "Tìm tên và ngân sách của các khoa có ngân sách cao hơn ngân sách trung bình .", "question_toks": [ "Find", "the", "name", "and", "budget", "of", "departments", "whose", "budgets", "are", "more", "than", "the", "average", "budget", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Những khoa nào có ngân sách cao hơn mức trung bình ? Cho biết tên và ngân sách của những khoa này .", "question_toks": [ "What", "are", "the", "names", "and", "budgets", "of", "departments", "with", "budgets", "greater", "than", "the", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Giảng viên ở khoa ' Thống kê ' và có mức lương thấp nhất tên là gì ?", "question_toks": [ "what", "is", "the", "name", "of", "the", "instructor", "who", "is", "in", "Statistics", "department", "and", "earns", "the", "lowest", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Statistics\"", 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": "Cho biết tên của giảng viên có thu nhập thấp nhất trong khoa ' Thống kê ' .", "question_toks": [ "Give", "the", "name", "of", "the", "lowest", "earning", "instructor", "in", "the", "Statistics", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Statistics\"", 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": "Tìm tiêu đề của khoá học được dạy bởi cả khoa ' Thống kê ' và khoa ' Tâm lý học ' .", "question_toks": [ "Find", "the", "title", "of", "course", "that", "is", "provided", "by", "both", "Statistics", "and", "Psychology", "departments", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", 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": "Những khoá học được liệt kê cho cả khoa ' Thống kê ' và khoa ' Tâm lý học ' có tiêu đề là gì ?", "question_toks": [ "What", "is", "the", "title", "of", "a", "course", "that", "is", "listed", "in", "both", "the", "Statistics", "and", "Psychology", "departments", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", 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": "Tìm tiêu đề của các khoá học được dạy bởi khoa ' Thống kê ' nhưng không được dạy bởi khoa ' Tâm lý học ' .", "question_toks": [ "Find", "the", "title", "of", "course", "that", "is", "provided", "by", "Statistics", "but", "not", "Psychology", "departments", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", 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": "Những khoá học thuộc khoa ' Thống kê ' nhưng không thuộc khoa ' Tâm lý học ' có tiêu đề là gì ?", "question_toks": [ "What", "are", "the", "titles", "of", "courses", "that", "are", "in", "the", "Statistics", "department", "but", "not", "the", "Psychology", "department", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", 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": "Tìm id của giảng viên đã dạy một số lớp vào mùa thu năm 2009 nhưng không dạy lớp nào vào mùa xuân năm 2010 .", "question_toks": [ "Find", "the", "id", "of", "instructors", "who", "taught", "a", "class", "in", "Fall", "2009", "but", "not", "in", "Spring", "2010", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2009.0, 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": "Những giảng viên đã dạy vào mùa thu năm 2009 nhưng không dạy vào mùa xuân năm 2010 có id là gì ?", "question_toks": [ "What", "are", "the", "ids", "of", "instructors", "who", "taught", "in", "the", "Fall", "of", "2009", "but", "not", "in", "the", "Spring", "of", "2010", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2009.0, 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": "Tìm tên của những học sinh đã tham gia bất kỳ lớp học nào trong năm 2009 hoặc năm 2010 .", "question_toks": [ "Find", "the", "name", "of", "students", "who", "took", "any", "class", "in", "the", "years", "of", "2009", "and", "2010", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], 2009.0, null ], "or", [ false, 2, [ 0, [ 0, 35, false ], null ], 2010.0, 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": "Những sinh viên đã tham gia các lớp học trong năm 2009 hoặc 2010 có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "the", "students", "who", "took", "classes", "in", "2009", "or", "2010", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], 2009.0, null ], "or", [ false, 2, [ 0, [ 0, 35, false ], null ], 2010.0, 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": "Tìm tên của 3 khoa đứng đầu về số lượng khoá học ?", "question_toks": [ "Find", "the", "names", "of", "the", "top", "3", "departments", "that", "provide", "the", "largest", "amount", "of", "courses", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "3 khoa có nhiều khoá học nhất tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "the", "3", "departments", "with", "the", "most", "courses", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tên của khoa có số lượng tín chỉ cao nhất .", "question_toks": [ "Find", "the", "name", "of", "the", "department", "that", "offers", "the", "highest", "total", "credits", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Khoa cung cấp nhiều tín chỉ nhất có tên là gì ?", "question_toks": [ "What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "credits", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê tên của tất cả các khoá học theo thứ tự tiêu đề và số lượng tín chỉ .", "question_toks": [ "List", "the", "names", "of", "all", "courses", "ordered", "by", "their", "titles", "and", "credits", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ], [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tiêu đề của tất cả các khoá học , sắp xếp theo thứ tự tiêu đề và số lượng tín chỉ của từng khoá học .", "question_toks": [ "Given", "the", "titles", "of", "all", "courses", ",", "in", "order", "of", "titles", "and", "credits", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ], [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Khoa nào có ngân sách thấp nhất ?", "question_toks": [ "Which", "department", "has", "the", "lowest", "budget", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tên của khoa có ngân sách thấp nhất .", "question_toks": [ "Give", "the", "name", "of", "the", "department", "with", "the", "lowest", "budget", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê tên và toà nhà của tất cả các khoa theo thứ tự ngân sách từ nhiều đến ít .", "question_toks": [ "List", "the", "names", "and", "buildings", "of", "all", "departments", "sorted", "by", "the", "budget", "from", "large", "to", "small", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Sắp xếp tên và toà nhà của các khoa theo thứ tự ngân sách giảm dần .", "question_toks": [ "What", "are", "the", "names", "and", "buildings", "of", "the", "deparments", ",", "sorted", "by", "budget", "descending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Ai là giảng viên với mức lương cao nhất", "question_toks": [ "Who", "is", "the", "instructor", "with", "the", "highest", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tên của giảng viên được trả lương cao nhất .", "question_toks": [ "Give", "the", "name", "of", "the", "highest", "paid", "instructor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê thông tin về tất cả các giảng viên theo thứ tự tăng dần về mức lương của họ mỗi người .", "question_toks": [ "List", "the", "information", "of", "all", "instructors", "ordered", "by", "their", "salary", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cung cấp tất cả các thông tin liên quan đến các giảng viên theo thứ tự mức lương của mỗi người từ ít nhất đến nhiều nhất .", "question_toks": [ "Give", "all", "information", "regarding", "instructors", ",", "in", "order", "of", "salary", "from", "least", "to", "greatest", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tên của các sinh viên và tên các khoa mà họ thuộc về , sắp xếp kết quả theo thứ tự tăng dần về tổng số tín chỉ mà mỗi sinh viên có .", "question_toks": [ "Find", "the", "name", "of", "the", "students", "and", "their", "department", "names", "sorted", "by", "their", "total", "credits", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Sắp xếp tên của các sinh viên và tên của các khoa tương ứng với từng sinh viên theo số lượng tín chỉ từ ít nhất đến nhiều nhất .", "question_toks": [ "What", "are", "the", "names", "of", "students", "and", "their", "respective", "departments", ",", "ordered", "by", "number", "of", "credits", "from", "least", "to", "greatest", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê theo thứ tự bảng chữ cái tiêu đề của tất cả các khoá học diễn ra vào năm 2008 và tên của các giảng viên đã giảng dạy từng khoá học .", "question_toks": [ "list", "in", "alphabetic", "order", "all", "course", "names", "and", "their", "instructors", "'", "names", "in", "year", "2008", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 23, false ], null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 2008.0, 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": "Hiển thị tiêu đề của tất cả các khoá học trong năm 2008 và tên của những giảng viên đã tham gia giảng dạy các khoá học này theo thứ tự bảng chữ cái của tiêu đề khoá học .", "question_toks": [ "Show", "all", "titles", "and", "their", "instructors", "'", "names", "for", "courses", "in", "2008", ",", "in", "alphabetical", "order", "by", "title", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 23, false ], null ], "and", [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 2008.0, 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": "Tìm tên của những giảng viên đang cố vấn cho nhiều hơn một sinh viên .", "question_toks": [ "Find", "the", "name", "of", "instructors", "who", "are", "advising", "more", "than", "one", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Những giảng viên đang cố vấn cho nhiều hơn một sinh viên có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "advise", "more", "than", "one", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tên của các sinh viên có nhiều hơn một cố vấn ?", "question_toks": [ "Find", "the", "name", "of", "the", "students", "who", "have", "more", "than", "one", "advisor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Các sinh viên có nhiều hơn một cố vấn có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "students", "who", "have", "more", "than", "one", "advisor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm số lượng phòng học có sức chứa hơn 50 cho mỗi toà nhà .", "question_toks": [ "Find", "the", "number", "of", "rooms", "with", "more", "than", "50", "capacity", "for", "each", "building", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, 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": "Có bao nhiêu phòng học có sức chứa trên 50 nằm trong mỗi toà nhà ?", "question_toks": [ "How", "many", "rooms", "in", "each", "building", "have", "a", "capacity", "of", "over", "50", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, 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": "Cho biết sức chứa tối đa và trung bình của các phòng trong mỗi toà nhà .", "question_toks": [ "Find", "the", "maximum", "and", "average", "capacity", "among", "rooms", "in", "each", "building", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ], [ 5, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Sức chứa tối đa và trung bình của các phòng trong mỗi toà nhà là bao nhiêu ?", "question_toks": [ "What", "are", "the", "greatest", "and", "average", "capacity", "for", "rooms", "in", "each", "building", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ], [ 5, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tiêu đề của các khoá học được dạy bởi nhiều hơn một khoa .", "question_toks": [ "Find", "the", "title", "of", "the", "course", "that", "is", "offered", "by", "more", "than", "one", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Các khoá học được dạy bởi nhiều hơn một khoa có tiêu đề là gì ?", "question_toks": [ "What", "are", "the", "titles", "of", "courses", "that", "are", "offered", "in", "more", "than", "one", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết tổng số tín chỉ của các khoá học được dạy bởi từng khoa khác nhau .", "question_toks": [ "Find", "the", "total", "credits", "of", "courses", "provided", "by", "different", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tổng cộng có bao nhiêu tín chỉ được dạy bởi mỗi khoa ?", "question_toks": [ "How", "many", "total", "credits", "are", "offered", "by", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết mức lương thấp nhất được trả ở các khoa có mức lương trung bình cao hơn mức lương trung bình của tất cả các giảng viên .", "question_toks": [ "Find", "the", "minimum", "salary", "for", "the", "departments", "whose", "average", "salary", "is", "above", "the", "average", "payment", "of", "all", "instructors", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Mức lương thấp nhất được trả ở các khoa có mức lương trung bình cao hơn mức trung bình chung là bao nhiêu ?", "question_toks": [ "What", "is", "the", "lowest", "salary", "in", "departments", "with", "average", "salary", "greater", "than", "the", "overall", "average", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm số lượng các khoá học được dạy trong mỗi học kỳ của từng năm .", "question_toks": [ "Find", "the", "number", "of", "courses", "provided", "in", "each", "semester", "and", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Có bao nhiêu khoá học được dạy trong mỗi học kỳ của từng năm ?", "question_toks": [ "How", "many", "courses", "are", "provided", "in", "each", "semester", "and", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm năm có nhiều khoá học được giảng dạy nhất .", "question_toks": [ "Find", "the", "year", "which", "offers", "the", "largest", "number", "of", "courses", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Năm nào có số lượng khoá học nhiều nhất ?", "question_toks": [ "Which", "year", "had", "the", "greatest", "number", "of", "courses", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết năm và học kỳ có nhiều khoá học nhất .", "question_toks": [ "Find", "the", "year", "and", "semester", "when", "offers", "the", "largest", "number", "of", "courses", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Năm và học kỳ có nhiều khoá học được giảng dạy nhất ?", "question_toks": [ "What", "is", "the", "year", "and", "semester", "with", "the", "most", "courses", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tên của khoa có đông sinh viên nhất .", "question_toks": [ "Find", "the", "name", "of", "department", "has", "the", "highest", "amount", "of", "students", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Khoa có số lượng sinh viên cao nhất tên là gì ?", "question_toks": [ "What", "is", "the", "name", "of", "the", "deparment", "with", "the", "highest", "enrollment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tổng số sinh viên trong mỗi khoa .", "question_toks": [ "Find", "the", "total", "number", "of", "students", "in", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Có bao nhiêu sinh viên học ở mỗi khoa ?", "question_toks": [ "How", "many", "students", "are", "in", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Cho biết học kỳ và năm có số lượng sinh viên tham gia các lớp học ít nhất .", "question_toks": [ "Find", "the", "semester", "and", "year", "which", "has", "the", "least", "number", "of", "student", "taking", "any", "class", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 34, false ], [ 0, 35, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Học kỳ và năm có ít sinh viên nhất ?", "question_toks": [ "Which", "semeseter", "and", "year", "had", "the", "fewest", "students", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 34, false ], [ 0, 35, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Id của giảng viên là cố vấn cho tất cả các sinh viên đến từ khoa Lịch sử ?", "question_toks": [ "What", "is", "the", "id", "of", "the", "instructor", "who", "advises", "of", "all", "students", "from", "History", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", 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": "Cung cấp id của giảng viên là người cố vấn cho các sinh viên trong khoa Lịch sử .", "question_toks": [ "Give", "id", "of", "the", "instructor", "who", "advises", "students", "in", "the", "History", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", 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": "Tìm tên và mức lương của các giảng viên là cố vấn của các sinh viên trong khoa Lịch sử .", "question_toks": [ "Find", "the", "name", "and", "salary", "of", "the", "instructors", "who", "are", "advisors", "of", "any", "student", "from", "History", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", 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": "Tên và mức lương của những giảng viên đóng vai trò cố vấn cho các sinh viên trong khoa Lịch sử ?", "question_toks": [ "What", "are", "the", "names", "and", "salaries", "of", "instructors", "who", "advises", "students", "in", "the", "History", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", 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": "Tìm id của các khoá học không có khoá học tiên quyết nào ?", "question_toks": [ "Find", "the", "id", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Các khoá học không có khoá học tiên quyết nào có id là gì ?", "question_toks": [ "What", "are", "the", "ids", "of", "courses", "without", "prerequisites", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tên của các khoá học không có bất kỳ khoá học tiên quyết nào .", "question_toks": [ "Find", "the", "name", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Các khoá học không có khoá học tiên quyết nào có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "courses", "without", "prerequisites", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Các khoá học tiên quyết của khoá học ' Tài chính quốc tế ' có tiêu đề là gì ?", "question_toks": [ "What", "is", "the", "title", "of", "the", "prerequisite", "class", "of", "International", "Finance", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ] }, 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": "Cho biết tiêu đề của các khoá học tiên quyết của khoá học ' Tài chính quốc tế ' .", "question_toks": [ "Give", "the", "title", "of", "the", "prerequisite", "to", "the", "course", "International", "Finance", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ] }, 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": "Tìm tiêu đề của những khoá học có khoá học tiên quyết là ' Hình học vi phân ' .", "question_toks": [ "Find", "the", "title", "of", "course", "whose", "prerequisite", "is", "course", "Differential", "Geometry", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Differential Geometry\"", null ] ] }, 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": "Những khoá học có ' Hình học vi phân ' là khoá học tiên quyết có tiêu đề là gì ?", "question_toks": [ "What", "is", "the", "title", "of", "the", "course", "with", "Differential", "Geometry", "as", "a", "prerequisite", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Differential Geometry\"", null ] ] }, 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": "Tìm tên của các sinh viên đã tham gia ít nhất một khoá học trong học kỳ mùa thu năm 2003 .", "question_toks": [ "Find", "the", "names", "of", "students", "who", "have", "taken", "any", "course", "in", "the", "fall", "semester", "of", "year", "2003", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], 2003.0, null ] ] }, 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": "Những sinh viên đã tham gia ít nhất một khoá học vào mùa thu năm 2003 có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "students", "who", "took", "a", "course", "in", "the", "Fall", "of", "2003", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], 2003.0, null ] ] }, 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": "Những khoá học đã được dạy ở Chandler trong học kỳ mùa thu năm 2010 có tiêu đề là gì ?", "question_toks": [ "What", "is", "the", "title", "of", "the", "course", "that", "was", "offered", "at", "building", "Chandler", "during", "the", "fall", "semester", "in", "the", "year", "of", "2010", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": 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 ] ] } }, { "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": "Cho biết tiêu đề của các khoá học được dạy tại Chandler vào mùa thu năm 2010 .", "question_toks": [ "Give", "the", "title", "of", "the", "course", "offered", "in", "Chandler", "during", "the", "Fall", "of", "2010", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": 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 ] ] } }, { "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": "Tìm tên của những giảng viên đã dạy khoá học lập trình C trước đây .", "question_toks": [ "Find", "the", "name", "of", "the", "instructors", "who", "taught", "C", "Programming", "course", "before", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"C Programming\"", 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": "Các giảng viên đã dạy các khoá học lập trình C có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "have", "taught", "C", "Programming", "courses", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"C Programming\"", 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": "Tìm tên và mức lương của các giảng viên là cố vấn của các sinh viên đến từ khoa ' Toán ' .", "question_toks": [ "Find", "the", "name", "and", "salary", "of", "instructors", "who", "are", "advisors", "of", "the", "students", "from", "the", "Math", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", 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": "Tên và mức lương của những giảng viên hiện đang cố vấn cho các sinh viên thuộc khoa ' Toán ' ?", "question_toks": [ "What", "are", "the", "names", "and", "salaries", "of", "instructors", "who", "advise", "students", "in", "the", "Math", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", 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": "Cho biết tên của những giảng viên là cố vấn của các sinh viên đến từ khoa ' Toán ' và sắp xếp kết quả theo tổng số lượng tín chỉ của các sinh viên được từng giảng viên cố vấn .", "question_toks": [ "Find", "the", "name", "of", "instructors", "who", "are", "advisors", "of", "the", "students", "from", "the", "Math", "department", ",", "and", "sort", "the", "results", "by", "students", "'", "total", "credit", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", 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": "Sắp xếp tên của tất cả các giảng viên đã cố vấn cho các sinh viên thuộc khoa ' Toán ' theo tổng số lượng tín chỉ của các sinh viên được từng giảng viên cố vấn .", "question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "who", "advise", "students", "in", "the", "math", "depart", "sorted", "by", "total", "credits", "of", "the", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", 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": "Khoá học tiên quyết của khoá học ' Điện toán di động ' có tiêu đề là gì ?", "question_toks": [ "What", "is", "the", "course", "title", "of", "the", "prerequisite", "of", "course", "Mobile", "Computing", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Mobile Computing\"", null ] ] }, 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": "Cho biết tiêu đề của khoá học là điều kiện tiên quyết cho khoá học ' Điện toán di động ' .", "question_toks": [ "What", "is", "the", "title", "of", "the", "course", "that", "is", "a", "prerequisite", "for", "Mobile", "Computing", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Mobile Computing\"", null ] ] }, 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": "Tìm tên của giảng viên là cố vấn cho sinh viên với số lượng tín chỉ cao nhất .", "question_toks": [ "Find", "the", "name", "of", "instructor", "who", "is", "the", "advisor", "of", "the", "student", "who", "has", "the", "highest", "number", "of", "total", "credits", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Giảng viên đã tư vấn cho sinh viên có nhiều tín chỉ nhất có tên là gì ?", "question_toks": [ "What", "is", "the", "name", "of", "the", "instructor", "who", "advises", "the", "student", "with", "the", "greatest", "number", "of", "total", "credits", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tên của giảng viên đã không dạy bất kỳ khoá học nào ?", "question_toks": [ "Find", "the", "name", "of", "instructors", "who", "did", "n't", "teach", "any", "courses", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Những giảng viên không dạy học có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "did", "n't", "teach", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Tìm id của những giảng viên không dạy bất kỳ khoá học nào ?", "question_toks": [ "Find", "the", "id", "of", "instructors", "who", "did", "n't", "teach", "any", "courses", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Những giảng viên không dạy học có id là gì ?", "question_toks": [ "What", "are", "the", "ids", "of", "instructors", "who", "didnt", "'", "teach", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tên của những giảng viên đã không tham gia dạy bất kì khoá học nào vào các học kỳ xuân .", "question_toks": [ "Find", "the", "names", "of", "instructors", "who", "did", "n't", "each", "any", "courses", "in", "any", "Spring", "semester", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ] ] }, 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": "Những giảng viên không dạy các khoá học vào mùa xuân có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "did", "n't", "teach", "courses", "in", "the", "Spring", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ] ] }, 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": "Tìm tên của khoa với các giảng viên có mức lương trung bình cao nhất .", "question_toks": [ "Find", "the", "name", "of", "the", "department", "which", "has", "the", "highest", "average", "salary", "of", "professors", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Khoa nào có mức lương trung bình của các giảng viên cao nhất ?", "question_toks": [ "Which", "department", "has", "the", "highest", "average", "instructor", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm số lượng giảng viên và mức lương trung bình của tất cả các giảng viên hiện đang thuộc khoa có ngân sách cao nhất .", "question_toks": [ "Find", "the", "number", "and", "averaged", "salary", "of", "all", "instructors", "who", "are", "in", "the", "department", "with", "the", "highest", "budget", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Có bao nhiêu giảng viên hiện đang thuộc khoa có ngân sách cao nhất và mức lương trung bình của họ là bao nhiêu ?", "question_toks": [ "How", "many", "instructors", "are", "in", "the", "department", "with", "the", "highest", "budget", ",", "and", "what", "is", "their", "average", "salary", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Khoá học nào được dạy trong phòng học lớn nhất ( sức chứa cao nhất ) ? Cho biết tiêu đề và tín chỉ của khoá học này .", "question_toks": [ "What", "is", "the", "title", "and", "credits", "of", "the", "course", "that", "is", "taught", "in", "the", "largest", "classroom", "(", "with", "the", "highest", "capacity", ")", "?" ], "sql": { "except": null, "from": { "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 ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Cho biết tiêu đề và tín chỉ của khoá học được giảng dạy trong phòng học có sức chứa lớn nhất .", "question_toks": [ "Give", "the", "title", "and", "credits", "for", "the", "course", "that", "is", "taught", "in", "the", "classroom", "with", "the", "greatest", "capacity", "." ], "sql": { "except": null, "from": { "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 ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Tìm tên của những sinh viên không học bất kỳ khoá học nào từ khoa ' Sinh học ' .", "question_toks": [ "Find", "the", "name", "of", "students", "who", "did", "n't", "take", "any", "course", "from", "Biology", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Biology\"", null ] ] }, 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": "Những sinh viên đã không tham gia các khoá học về ' Sinh học ' có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "students", "who", "have", "n't", "taken", "any", "Biology", "courses", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Biology\"", null ] ] }, 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": "Tìm tổng số sinh viên và tổng số giảng viên của mỗi khoa .", "question_toks": [ "Find", "the", "total", "number", "of", "students", "and", "total", "number", "of", "instructors", "for", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 29, false ], null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 27, true ], null ] ], [ 3, [ 0, [ 0, 11, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Có bao nhiêu sinh viên và bao nhiêu giảng viên thuộc mỗi khoa ?", "question_toks": [ "How", "many", "students", "and", "instructors", "are", "in", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 29, false ], null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 27, true ], null ] ], [ 3, [ 0, [ 0, 11, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tên của các sinh viên đã tham gia các khoá học tiên quyết của khoá học có tiêu đề là ' Tài chính quốc tế ' .", "question_toks": [ "Find", "the", "name", "of", "students", "who", "have", "taken", "the", "prerequisite", "course", "of", "the", "course", "with", "title", "International", "Finance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ] }, 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": "Những sinh viên đã tham gia các khoá học tiên quyết cho khoá học ' Tài chính quốc tế ' có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "students", "who", "have", "taken", "the", "prerequisite", "for", "the", "course", "International", "Finance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ] }, 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": "Tìm tên và mức lương của giảng viên có mức lương thấp hơn mức lương trung bình của các giảng viên trong khoa Vật lý .", "question_toks": [ "Find", "the", "name", "and", "salary", "of", "instructors", "whose", "salary", "is", "below", "the", "average", "salary", "of", "the", "instructors", "in", "the", "Physics", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Physics\"", null ] ] }, 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": "Những giảng viên nào kiếm được ít hơn mức lương trung bình của các giảng viên trong khoa Vật lý ? Cho biết tên và mức lương của những giảng viên này .", "question_toks": [ "What", "are", "the", "names", "and", "salaries", "for", "instructors", "who", "earn", "less", "than", "the", "average", "salary", "of", "instructors", "in", "the", "Physics", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Physics\"", null ] ] }, 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": "Tìm tên của các sinh viên đã tham gia một số khoá học được dạy bởi khoa ' Thống kê ' .", "question_toks": [ "Find", "the", "name", "of", "students", "who", "took", "some", "course", "offered", "by", "Statistics", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 32, false ], null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", 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": "Tên của các sinh viên đã tham gia các khoá học thống kê là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "students", "who", "have", "taken", "Statistics", "courses", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 32, false ], null ], "and", [ false, 2, [ 0, [ 0, 31, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", 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": "Tìm toà nhà , số phòng , học kỳ và năm học của tất cả các khoá học đã được dạy bởi khoa ' Tâm lý học ' và sắp xếp kết quả theo tiêu đề khoá học .", "question_toks": [ "Find", "the", "building", ",", "room", "number", ",", "semester", "and", "year", "of", "all", "courses", "offered", "by", "Psychology", "department", "sorted", "by", "course", "titles", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", 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": "Sắp xếp danh sách bao gồm toà nhà , số phòng , học kỳ và năm học của các khoá học trong khoa Tâm lý học theo tiêu đề khoá học .", "question_toks": [ "What", "are", "the", "building", ",", "room", "number", ",", "semester", "and", "year", "of", "courses", "in", "the", "Psychology", "department", ",", "sorted", "using", "course", "title", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", 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": "Tìm tên của tất cả các giảng viên thuộc khoa ' Khoa học máy tính ' .", "question_toks": [ "Find", "the", "names", "of", "all", "instructors", "in", "computer", "science", "department" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", 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": "Những giảng viên thuộc khoa ' Khoa học máy tính ' có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "in", "the", "Comp", ".", "Sci", ".", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", 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": "Tìm tên của tất cả các giảng viên thuộc khoa ' Khoa học máy tính ' và có mức lương cao hơn 80000 .", "question_toks": [ "Find", "the", "names", "of", "all", "instructors", "in", "Comp", ".", "Sci", ".", "department", "with", "salary", ">", "80000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], 80000.0, 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": "Những giảng viên thuộc khoa ' Khoa học máy tính ' và có mức lương cao hơn 80000 có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "the", "instructors", "in", "the", "Comp", ".", "Sci", ".", "department", "who", "earn", "more", "than", "80000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], 80000.0, 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": "Tìm tên của tất cả các giảng viên đã dạy một số khoá học và id của các khoá học mà từng giảng viên đã dạy .", "question_toks": [ "Find", "the", "names", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course_id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Những giảng viên đã dạy một số khoá học có tên là gì ? Cho biết id của những khoá học mà từng giảng viên đã dạy .", "question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "who", "have", "taught", "a", "course", ",", "as", "well", "as", "the", "corresponding", "course", "id", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tên của tất cả các giảng viên đã dạy một số khoá học thuộc bộ môn ' Nghệ thuật ' và id của khoá học mà từng giảng viên đã dạy .", "question_toks": [ "Find", "the", "names", "of", "all", "instructors", "in", "the", "Art", "department", "who", "have", "taught", "some", "course", "and", "the", "course_id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Art\"", 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": "Các giảng viên đã dạy một số khoá học thuộc khoa nghệ thuật có tên là gì , đồng thời cho biết id của các khoá học mà từng giảng viên đã dạy ?", "question_toks": [ "What", "are", "the", "names", "of", "Art", "instructors", "who", "have", "taught", "a", "course", ",", "and", "the", "corresponding", "course", "id", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Art\"", 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": "Tìm tên của tất cả các giảng viên có tên chứa chuỗi con ' dar ' .", "question_toks": [ "Find", "the", "names", "of", "all", "instructors", "whose", "name", "includes", "the", "substring", "“dar”", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%dar%\"", 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": "Những giảng viên có tên bao gồm cụm từ ' dar ' có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "with", "names", "that", "include", "``", "dar", "''", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%dar%\"", 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": "Liệt kê theo thứ tự bảng chữ cái những cái tên khác nhau của tất cả các giảng viên .", "question_toks": [ "List", "in", "alphabetic", "order", "the", "names", "of", "all", "distinct", "instructors", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Liệt kê những cái tên khác nhau của các giảng viên và sắp xếp kết quả theo tên .", "question_toks": [ "List", "the", "distinct", "names", "of", "the", "instructors", ",", "ordered", "by", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm các khoá học được dạy vào mùa thu năm 2009 hoặc mùa xuân năm 2010 .", "question_toks": [ "Find", "courses", "that", "ran", "in", "Fall", "2009", "or", "in", "Spring", "2010", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, 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": "Cho biết id của các khoá học được dạy vào mùa thu năm 2009 hoặc mùa xuân năm 2010 .", "question_toks": [ "What", "are", "the", "ids", "for", "courses", "in", "the", "Fall", "of", "2009", "or", "the", "Spring", "of", "2010", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, 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": "Tìm các khoá học được dạy vào cả mùa thu năm 2009 và mùa xuân năm 2010 .", "question_toks": [ "Find", "courses", "that", "ran", "in", "Fall", "2009", "and", "in", "Spring", "2010", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, 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": "Cho biết id của các khoá học đã được dạy vào cả mùa thu năm 2009 và mùa xuân năm 2010 .", "question_toks": [ "What", "are", "the", "ids", "for", "courses", "that", "were", "offered", "in", "both", "Fall", "of", "2009", "and", "Spring", "of", "2010", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, 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": "Tìm các khoá học được dạy vào mùa thu năm 2009 nhưng không được dạy vào mùa xuân năm 2010 .", "question_toks": [ "Find", "courses", "that", "ran", "in", "Fall", "2009", "but", "not", "in", "Spring", "2010", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, 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": "Cho biết id của các khoá học được dạy vào mùa thu năm 2009 nhưng không được dạy vào mùa xuân năm 2010 .", "question_toks": [ "What", "are", "the", "ids", "of", "courses", "offered", "in", "Fall", "of", "2009", "but", "not", "in", "Spring", "of", "2010", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, 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": "Cho biết những mức lương khác nhau của tất cả các giảng viên có mức lương thấp hơn mức lương cao nhất .", "question_toks": [ "Find", "the", "salaries", "of", "all", "distinct", "instructors", "that", "are", "less", "than", "the", "largest", "salary", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Những giảng viên nào có mức lương thấp hơn mức lương cao nhất ? Hiển thị những mức lương khác nhau của tất cả các giảng viên này .", "question_toks": [ "What", "are", "the", "distinct", "salaries", "of", "all", "instructors", "who", "earned", "less", "than", "the", "maximum", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, 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": "Cho biết số lượng giảng viên đã giảng dạy một số khoá học trong học kỳ mùa xuân năm 2010 .", "question_toks": [ "Find", "the", "total", "number", "of", "instructors", "who", "teach", "a", "course", "in", "the", "Spring", "2010", "semester", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, 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": "Có bao nhiêu giảng viên đã dạy một số khoá học vào mùa xuân năm 2010 ?", "question_toks": [ "How", "many", "instructors", "teach", "a", "course", "in", "the", "Spring", "of", "2010", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, 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": "Cho biết tên và mức lương trung bình của tất cả các khoa có mức lương trung bình cao hơn 42000 .", "question_toks": [ "Find", "the", "names", "and", "average", "salaries", "of", "all", "departments", "whose", "average", "salary", "is", "greater", "than", "42000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], 42000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Những khoa nào có mức lương trung bình cao hơn 42000 ? Cho biết tên và mức lương trung bình của những khoa này .", "question_toks": [ "What", "are", "the", "names", "and", "average", "salaries", "for", "departments", "with", "average", "salary", "higher", "than", "42000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], 42000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] } }, { "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": "Tìm tên của giảng viên có mức lương cao hơn mức lương của một số ( ít nhất một ) giảng viên thuộc khoa ' Sinh học ' .", "question_toks": [ "Find", "names", "of", "instructors", "with", "salary", "greater", "than", "that", "of", "some", "(", "at", "least", "one", ")", "instructor", "in", "the", "Biology", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ] }, 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": "Những giảng viên kiếm được nhiều tiền hơn ít nhất một giảng viên đến từ khoa ' Sinh học ' có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "earn", "more", "than", "at", "least", "one", "instructor", "from", "the", "Biology", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ] }, 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": "Tìm tên của tất cả các giảng viên có mức lương cao hơn mức lương của tất cả các giảng viên thuộc khoa ' Sinh học ' .", "question_toks": [ "Find", "the", "names", "of", "all", "instructors", "whose", "salary", "is", "greater", "than", "the", "salary", "of", "all", "instructors", "in", "the", "Biology", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ] }, 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": "Những giảng viên có mức lương cao hơn mức lương của mọi giảng viên thuộc khoa ' Sinh học ' có tên là gì ?", "question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "with", "a", "higher", "salary", "than", "any", "of", "the", "instructors", "in", "the", "Biology", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ] }, null ] ] } } ]