| [ | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM COURSE", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COURSE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "course" | |
| ], | |
| "question": "Tổng cộng có bao nhiêu khoá học ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "courses", | |
| "are", | |
| "there", | |
| "in", | |
| "total", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM COURSE", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COURSE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "course" | |
| ], | |
| "question": "Đếm số lượng các khoá học .", | |
| "question_toks": [ | |
| "Count", | |
| "the", | |
| "number", | |
| "of", | |
| "courses", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM COURSE WHERE Credits > 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| ">", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu khoá học cung cấp nhiều hơn 2 tín chỉ ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "courses", | |
| "have", | |
| "more", | |
| "than", | |
| "2", | |
| "credits", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 2.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM COURSE WHERE Credits > 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| ">", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Đếm số lượng các khoá học cung cấp nhiều hơn 2 tín chỉ .", | |
| "question_toks": [ | |
| "Count", | |
| "the", | |
| "number", | |
| "of", | |
| "courses", | |
| "with", | |
| "more", | |
| "than", | |
| "2", | |
| "credits", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 2.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Credits = 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Liệt kê tên của các khoá học chỉ cung cấp duy nhất 1 tín chỉ .", | |
| "question_toks": [ | |
| "List", | |
| "all", | |
| "names", | |
| "of", | |
| "courses", | |
| "with", | |
| "1", | |
| "credit", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Credits = 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những khoá học chỉ cung cấp duy nhất 1 tín chỉ có tên là gì ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "courses", | |
| "with", | |
| "1", | |
| "credit", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Days = \"MTW\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Days", | |
| "=", | |
| "``", | |
| "MTW", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "days", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những khoá học nào được dạy vào những ngày MTW trong tuần ?", | |
| "question_toks": [ | |
| "Which", | |
| "courses", | |
| "are", | |
| "taught", | |
| "on", | |
| "days", | |
| "MTW", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"MTW\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Days = \"MTW\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Days", | |
| "=", | |
| "``", | |
| "MTW", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "days", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên của những khoá học được dạy vào các ngày MTW trong tuần .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "course", | |
| "names", | |
| "for", | |
| "courses", | |
| "taught", | |
| "on", | |
| "MTW", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"MTW\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM DEPARTMENT WHERE Division = \"AS\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "AS", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết số lượng khoa nằm trong bộ phận ' AS ' .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "departments", | |
| "in", | |
| "Division", | |
| "``", | |
| "AS", | |
| "''", | |
| "?" | |
| ], | |
| "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": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AS\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM DEPARTMENT WHERE Division = \"AS\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "AS", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu khoa nằm trong bộ phận ' AS ' ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "departments", | |
| "are", | |
| "in", | |
| "the", | |
| "division", | |
| "AS", | |
| "?" | |
| ], | |
| "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": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AS\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DPhone FROM DEPARTMENT WHERE Room = 268", | |
| "query_toks": [ | |
| "SELECT", | |
| "DPhone", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Room", | |
| "=", | |
| "268" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dphone", | |
| "from", | |
| "department", | |
| "where", | |
| "room", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết số điện thoại của các khoa nằm ở phòng 268 .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "phones", | |
| "of", | |
| "departments", | |
| "in", | |
| "Room", | |
| "268", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| 268.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DPhone FROM DEPARTMENT WHERE Room = 268", | |
| "query_toks": [ | |
| "SELECT", | |
| "DPhone", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Room", | |
| "=", | |
| "268" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dphone", | |
| "from", | |
| "department", | |
| "where", | |
| "room", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Số điện thoại của các khoa nằm ở phòng 268 ?", | |
| "question_toks": [ | |
| "Give", | |
| "the", | |
| "phones", | |
| "for", | |
| "departments", | |
| "in", | |
| "room", | |
| "268", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| 268.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = \"B\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "DISTINCT", | |
| "StuID", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "WHERE", | |
| "Grade", | |
| "=", | |
| "``", | |
| "B", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "stuid", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "where", | |
| "grade", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết số lượng học sinh đã từng đạt điểm B.", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "number", | |
| "of", | |
| "students", | |
| "that", | |
| "have", | |
| "at", | |
| "least", | |
| "one", | |
| "grade", | |
| "``", | |
| "B", | |
| "''", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"B\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = \"B\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "DISTINCT", | |
| "StuID", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "WHERE", | |
| "Grade", | |
| "=", | |
| "``", | |
| "B", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "stuid", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "where", | |
| "grade", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu học sinh đã từng đạt điểm B ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "students", | |
| "have", | |
| "had", | |
| "at", | |
| "least", | |
| "one", | |
| "``", | |
| "B", | |
| "''", | |
| "grade", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"B\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| "FROM", | |
| "GRADECONVERSION" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "gradeconversion" | |
| ], | |
| "question": "Cho biết điểm số cao nhất và điểm số thấp nhất trong tất cả các bảng điểm .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "max", | |
| "and", | |
| "min", | |
| "grade", | |
| "point", | |
| "for", | |
| "all", | |
| "letter", | |
| "grade", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| "FROM", | |
| "GRADECONVERSION" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "gradeconversion" | |
| ], | |
| "question": "Cho biết điểm số cao nhất và điểm số thấp nhất .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "maximum", | |
| "and", | |
| "minumum", | |
| "grade", | |
| "points", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "Fname", | |
| "LIKE", | |
| "'", | |
| "%", | |
| "a", | |
| "%", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "fname", | |
| "from", | |
| "student", | |
| "where", | |
| "fname", | |
| "like", | |
| "value" | |
| ], | |
| "question": "Cho biết tên của các học sinh có chứa chữ cái ' a ' trong tên .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "first", | |
| "names", | |
| "of", | |
| "students", | |
| "whose", | |
| "first", | |
| "names", | |
| "contain", | |
| "letter", | |
| "``", | |
| "a", | |
| "''", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%a%\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "Fname", | |
| "LIKE", | |
| "'", | |
| "%", | |
| "a", | |
| "%", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "fname", | |
| "from", | |
| "student", | |
| "where", | |
| "fname", | |
| "like", | |
| "value" | |
| ], | |
| "question": "Những sinh viên có chứa chữ cái ' a ' trong tên của họ có tên là gì ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "first", | |
| "names", | |
| "for", | |
| "students", | |
| "who", | |
| "have", | |
| "an", | |
| "``", | |
| "a", | |
| "''", | |
| "in", | |
| "their", | |
| "first", | |
| "name", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%a%\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname , Lname FROM FACULTY WHERE sex = \"M\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "sex", | |
| "=", | |
| "``", | |
| "M", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Tìm họ và tên của các giảng viên nam hiện đang làm việc ở toà nhà NEB .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "first", | |
| "names", | |
| "and", | |
| "last", | |
| "names", | |
| "of", | |
| "male", | |
| "(", | |
| "sex", | |
| "is", | |
| "M", | |
| ")", | |
| "faculties", | |
| "who", | |
| "live", | |
| "in", | |
| "building", | |
| "NEB", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname , Lname FROM FACULTY WHERE sex = \"M\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "sex", | |
| "=", | |
| "``", | |
| "M", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên đầy đủ của các giảng viên nam hiện đang làm việc ở toà nhà NEB .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "full", | |
| "names", | |
| "of", | |
| "faculties", | |
| "with", | |
| "sex", | |
| "M", | |
| "and", | |
| "who", | |
| "live", | |
| "in", | |
| "building", | |
| "NEB", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Room FROM FACULTY WHERE Rank = \"Professor\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Room", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "room", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết phòng của các giảng viên có học hàm là ' Giáo sư ' và hiện đang làm việc ở khu nhà NEB .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "rooms", | |
| "of", | |
| "faculties", | |
| "with", | |
| "rank", | |
| "professor", | |
| "who", | |
| "live", | |
| "in", | |
| "building", | |
| "NEB", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Room FROM FACULTY WHERE Rank = \"Professor\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Room", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "room", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những giảng viên có học hàm ' Giáo sư ' hiện đang làm việc ở những phòng nào thuộc khu nhà NEB ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "rooms", | |
| "for", | |
| "members", | |
| "of", | |
| "the", | |
| "faculty", | |
| "who", | |
| "are", | |
| "professors", | |
| "and", | |
| "who", | |
| "live", | |
| "in", | |
| "building", | |
| "NEB", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT WHERE Building = \"Mergenthaler\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Building", | |
| "=", | |
| "``", | |
| "Mergenthaler", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên của các khoa hiện đang làm việc ở toà nhà ' Mergenthaler ' .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "department", | |
| "name", | |
| "that", | |
| "is", | |
| "in", | |
| "Building", | |
| "``", | |
| "Mergenthaler", | |
| "''", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mergenthaler\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT WHERE Building = \"Mergenthaler\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Building", | |
| "=", | |
| "``", | |
| "Mergenthaler", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Toà nhà ' Mergenthaler ' là nơi làm việc của những khoa nào ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "department", | |
| "in", | |
| "the", | |
| "Building", | |
| "Mergenthaler", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mergenthaler\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT * FROM COURSE ORDER BY Credits", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "COURSE", | |
| "ORDER", | |
| "BY", | |
| "Credits" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "course", | |
| "order", | |
| "by", | |
| "credits" | |
| ], | |
| "question": "Liệt kê thông tin về tất cả các khoá học và sắp xếp kết quả theo thứ tự tăng dần về số lượng tín chỉ mà từng khoá học cung cấp .", | |
| "question_toks": [ | |
| "List", | |
| "all", | |
| "information", | |
| "about", | |
| "courses", | |
| "sorted", | |
| "by", | |
| "credits", | |
| "in", | |
| "the", | |
| "ascending", | |
| "order", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT * FROM COURSE ORDER BY Credits", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "COURSE", | |
| "ORDER", | |
| "BY", | |
| "Credits" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "course", | |
| "order", | |
| "by", | |
| "credits" | |
| ], | |
| "question": "Sắp xếp thông tin về các khoá học theo thứ tự tăng dần về số lượng tín chỉ mà từng khoá học cung cấp .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "all", | |
| "the", | |
| "information", | |
| "about", | |
| "courses", | |
| ",", | |
| "ordered", | |
| "by", | |
| "credits", | |
| "ascending", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE ORDER BY Credits", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "ORDER", | |
| "BY", | |
| "Credits" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "order", | |
| "by", | |
| "credits" | |
| ], | |
| "question": "Liệt kê tên của các khoá học theo thứ tự tăng dần về số lượng tín chỉ mà từng khoá học cung cấp .", | |
| "question_toks": [ | |
| "List", | |
| "the", | |
| "course", | |
| "name", | |
| "of", | |
| "courses", | |
| "sorted", | |
| "by", | |
| "credits", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE ORDER BY Credits", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "ORDER", | |
| "BY", | |
| "Credits" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "order", | |
| "by", | |
| "credits" | |
| ], | |
| "question": "Sắp xếp tên của các khoá học theo thứ tự tăng dần về số lượng tín chỉ của từng khoá học .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "course", | |
| "names", | |
| ",", | |
| "ordered", | |
| "by", | |
| "credits", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM STUDENT ORDER BY Age DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "ORDER", | |
| "BY", | |
| "Age", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "student", | |
| "order", | |
| "by", | |
| "age", | |
| "desc" | |
| ], | |
| "question": "Cho biết tên của các sinh viên theo thứ tự độ tuổi giảm dần .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "first", | |
| "name", | |
| "of", | |
| "students", | |
| "in", | |
| "the", | |
| "descending", | |
| "order", | |
| "of", | |
| "age", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM STUDENT ORDER BY Age DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "ORDER", | |
| "BY", | |
| "Age", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "student", | |
| "order", | |
| "by", | |
| "age", | |
| "desc" | |
| ], | |
| "question": "Sắp xếp tên của các sinh viên theo thứ tự độ tuổi giảm dần .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "first", | |
| "names", | |
| "of", | |
| "students", | |
| ",", | |
| "ordered", | |
| "by", | |
| "age", | |
| "from", | |
| "greatest", | |
| "to", | |
| "least", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT LName FROM STUDENT WHERE Sex = \"F\" ORDER BY Age DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "LName", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "``", | |
| "F", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Age", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "student", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "age", | |
| "desc" | |
| ], | |
| "question": "Liệt kê họ của các sinh viên nữ ( giới tính là F ) theo thứ tự độ tuổi giảm dần .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "last", | |
| "name", | |
| "of", | |
| "female", | |
| "(", | |
| "sex", | |
| "is", | |
| "F", | |
| ")", | |
| "students", | |
| "in", | |
| "the", | |
| "descending", | |
| "order", | |
| "of", | |
| "age", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT LName FROM STUDENT WHERE Sex = \"F\" ORDER BY Age DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "LName", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "``", | |
| "F", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Age", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "student", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "age", | |
| "desc" | |
| ], | |
| "question": "Sắp xếp họ của các nữ sinh theo thứ tự độ tuổi giảm dần .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "last", | |
| "names", | |
| "of", | |
| "female", | |
| "students", | |
| ",", | |
| "ordered", | |
| "by", | |
| "age", | |
| "descending", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Lname FROM FACULTY WHERE Building = \"Barton\" ORDER BY Lname", | |
| "query_toks": [ | |
| "SELECT", | |
| "Lname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Building", | |
| "=", | |
| "``", | |
| "Barton", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Lname" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "building", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "lname" | |
| ], | |
| "question": "Liệt kê họ của các giảng viên đang làm việc tại toà nhà Barton theo thứ tự tăng dần của bảng chữ cái .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "last", | |
| "names", | |
| "of", | |
| "faculties", | |
| "in", | |
| "building", | |
| "Barton", | |
| "in", | |
| "alphabetic", | |
| "order", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Barton\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Lname FROM FACULTY WHERE Building = \"Barton\" ORDER BY Lname", | |
| "query_toks": [ | |
| "SELECT", | |
| "Lname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Building", | |
| "=", | |
| "``", | |
| "Barton", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Lname" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "building", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "lname" | |
| ], | |
| "question": "Sắp xếp họ của các giảng viên tại toà nhà Barton theo thứ tự tăng dần của bảng chữ cái .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "last", | |
| "names", | |
| "of", | |
| "faculty", | |
| "in", | |
| "building", | |
| "Barton", | |
| ",", | |
| "sorted", | |
| "by", | |
| "last", | |
| "name", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Barton\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM FACULTY WHERE Rank = \"Professor\" ORDER BY Fname", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Fname" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "fname" | |
| ], | |
| "question": "Liệt kê tên của các giáo sư theo thứ tự bảng chữ cái tăng dần .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "first", | |
| "names", | |
| "of", | |
| "faculties", | |
| "of", | |
| "rank", | |
| "Professor", | |
| "in", | |
| "alphabetic", | |
| "order", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM FACULTY WHERE Rank = \"Professor\" ORDER BY Fname", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Fname" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "fname" | |
| ], | |
| "question": "Sắp xếp tên của các giảng viên có học hàm ' Giáo sư ' theo thứ tự bảng chữ cái tăng dần .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "first", | |
| "names", | |
| "for", | |
| "all", | |
| "faculty", | |
| "professors", | |
| ",", | |
| "ordered", | |
| "by", | |
| "first", | |
| "name", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MINOR_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "GROUP", | |
| "BY", | |
| "T2.DNO", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "minor_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "dno", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Cho biết tên của khoa có nhiều sinh viên đăng ký học chuyên ngành phụ nhất .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "department", | |
| "that", | |
| "has", | |
| "the", | |
| "biggest", | |
| "number", | |
| "of", | |
| "students", | |
| "minored", | |
| "in", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MINOR_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "GROUP", | |
| "BY", | |
| "T2.DNO", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "minor_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "dno", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Khoa nào có nhiều sinh viên đăng ký học chuyên ngành phụ nhất ? Cho biết tên của khoa này .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "department", | |
| "with", | |
| "the", | |
| "most", | |
| "students", | |
| "minoring", | |
| "in", | |
| "it", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MINOR_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "minor_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno" | |
| ], | |
| "question": "Những khoa không có sinh viên nào đăng ký học chuyên ngành phụ có tên là gì ?", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "department", | |
| "that", | |
| "has", | |
| "no", | |
| "students", | |
| "minored", | |
| "in", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MINOR_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "minor_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno" | |
| ], | |
| "question": "Những khoa nào không có sinh viên đăng ký học chuyên ngành phụ ? Cho biết tên của những khoa này .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "department", | |
| "htat", | |
| "has", | |
| "no", | |
| "students", | |
| "minoring", | |
| "in", | |
| "it", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "GROUP", | |
| "BY", | |
| "T2.DNO", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "dno", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Tìm tên của khoa có ít thành viên nhất .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "department", | |
| "that", | |
| "has", | |
| "the", | |
| "fewest", | |
| "members", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "GROUP", | |
| "BY", | |
| "T2.DNO", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "dno", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Khoa có ít thành viên nhất tên là gì ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "department", | |
| "with", | |
| "the", | |
| "fewest", | |
| "members", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "Rank", | |
| "FROM", | |
| "FACULTY", | |
| "GROUP", | |
| "BY", | |
| "Rank", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Cho biết ngạch giảng viên ít phổ biến nhất .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "rank", | |
| "of", | |
| "the", | |
| "faculty", | |
| "that", | |
| "the", | |
| "fewest", | |
| "faculties", | |
| "belong", | |
| "to", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "Rank", | |
| "FROM", | |
| "FACULTY", | |
| "GROUP", | |
| "BY", | |
| "Rank", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Ngạch giảng viên ít phổ biến nhất là ngạch nào ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "least", | |
| "common", | |
| "faculty", | |
| "rank", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "GROUP", | |
| "BY", | |
| "T1.Instructor", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Cho biết họ và tên của 3 người hướng dẫn đã tham gia giảng dạy nhiều khoá học nhất .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "first", | |
| "and", | |
| "last", | |
| "names", | |
| "of", | |
| "the", | |
| "instructors", | |
| "who", | |
| "teach", | |
| "the", | |
| "top", | |
| "3", | |
| "number", | |
| "of", | |
| "courses", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 3, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "GROUP", | |
| "BY", | |
| "T1.Instructor", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Cho biết tên đầy đủ của 3 người hướng dẫn đã tham gia giảng dạy nhiều khoá học nhất .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "full", | |
| "names", | |
| "of", | |
| "the", | |
| "3", | |
| "instructors", | |
| "who", | |
| "teach", | |
| "the", | |
| "most", | |
| "courses", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 3, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Building", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "GROUP", | |
| "BY", | |
| "T1.Instructor", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "building", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Người hướng dẫn đã giảng dạy nhiều khoá học nhất hiện đang làm việc ở toà nhà nào ?", | |
| "question_toks": [ | |
| "Which", | |
| "building", | |
| "does", | |
| "the", | |
| "instructor", | |
| "who", | |
| "teaches", | |
| "the", | |
| "most", | |
| "number", | |
| "of", | |
| "courses", | |
| "live", | |
| "in", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Building", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "GROUP", | |
| "BY", | |
| "T1.Instructor", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "building", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Toà nhà nào là nơi làm việc của người hướng dẫn đã giảng dạy nhiều khoá học nhất ?", | |
| "question_toks": [ | |
| "Give", | |
| "the", | |
| "building", | |
| "that", | |
| "the", | |
| "instructor", | |
| "who", | |
| "teaches", | |
| "the", | |
| "greatest", | |
| "number", | |
| "of", | |
| "courses", | |
| "lives", | |
| "in", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.CName", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CID", | |
| "=", | |
| "T2.CID", | |
| "GROUP", | |
| "BY", | |
| "T2.CID", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "5" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "cname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "enrolled_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "cid", | |
| "=", | |
| "t2", | |
| ".", | |
| "cid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "cid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên của các khoá học đã nhận được ít nhất 5 lượt đăng ký .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "name", | |
| "of", | |
| "courses", | |
| "that", | |
| "have", | |
| "at", | |
| "least", | |
| "five", | |
| "enrollments", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 5.0, | |
| null | |
| ] | |
| ], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.CName", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CID", | |
| "=", | |
| "T2.CID", | |
| "GROUP", | |
| "BY", | |
| "T2.CID", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "5" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "cname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "enrolled_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "cid", | |
| "=", | |
| "t2", | |
| ".", | |
| "cid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "cid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những khoá học nào đã nhận được ít nhất 5 lượt đăng ký ? Cho biết tên của những khoá học này .", | |
| "question_toks": [ | |
| "Give", | |
| "the", | |
| "names", | |
| "of", | |
| "the", | |
| "courses", | |
| "with", | |
| "at", | |
| "least", | |
| "five", | |
| "enrollments", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 5.0, | |
| null | |
| ] | |
| ], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = \"COMPUTER LITERACY\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "WHERE", | |
| "T1.CName", | |
| "=", | |
| "``", | |
| "COMPUTER", | |
| "LITERACY", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "cname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Khoá học có tiêu đề là ' Kỹ năng máy tính ' đã được giảng dạy bởi những người hướng dẫn nào ? Cho biết tên và họ của những người hướng dẫn này .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "first", | |
| "name", | |
| "and", | |
| "last", | |
| "name", | |
| "of", | |
| "the", | |
| "instructor", | |
| "of", | |
| "course", | |
| "that", | |
| "has", | |
| "course", | |
| "name" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"COMPUTER LITERACY\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = \"COMPUTER LITERACY\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "WHERE", | |
| "T1.CName", | |
| "=", | |
| "``", | |
| "COMPUTER", | |
| "LITERACY", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "cname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên đầy đủ của những người hướng dẫn đã trực tiếp giảng dạy khoá học có tiêu đề là ' Kỹ năng máy tính ' .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "full", | |
| "name", | |
| "of", | |
| "the", | |
| "instructor", | |
| "who", | |
| "has", | |
| "a", | |
| "course", | |
| "named", | |
| "COMPUTER", | |
| "LITERACY", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"COMPUTER LITERACY\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Dname", | |
| ",", | |
| "T2.Room", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "DEPARTMENT", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "WHERE", | |
| "T1.CName", | |
| "=", | |
| "``", | |
| "INTRODUCTION", | |
| "TO", | |
| "COMPUTER", | |
| "SCIENCE", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "dname", | |
| ",", | |
| "t2", | |
| ".", | |
| "room", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "department", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "where", | |
| "t1", | |
| ".", | |
| "cname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Khoá học ' Giới thiệu về khoa học máy tính ' được dạy bởi khoa nào và tại phòng học nào ?", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "department", | |
| "name", | |
| "and", | |
| "room", | |
| "of", | |
| "the", | |
| "course", | |
| "INTRODUCTION", | |
| "TO", | |
| "COMPUTER", | |
| "SCIENCE", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 32, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"INTRODUCTION TO COMPUTER SCIENCE\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Dname", | |
| ",", | |
| "T2.Room", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "DEPARTMENT", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "WHERE", | |
| "T1.CName", | |
| "=", | |
| "``", | |
| "INTRODUCTION", | |
| "TO", | |
| "COMPUTER", | |
| "SCIENCE", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "dname", | |
| ",", | |
| "t2", | |
| ".", | |
| "room", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "department", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "where", | |
| "t1", | |
| ".", | |
| "cname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Khoa nào đã trực tiếp giảng dạy khoá học ' Giới thiệu về khoa học máy tính ' ? Đồng thời , cho biết phòng học nơi diễn ra khoá học này .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "department", | |
| "name", | |
| "and", | |
| "room", | |
| "for", | |
| "the", | |
| "course", | |
| "INTRODUCTION", | |
| "TO", | |
| "COMPUTER", | |
| "SCIENCE", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 32, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"INTRODUCTION TO COMPUTER SCIENCE\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.Fname", | |
| ",", | |
| "T3.LName", | |
| ",", | |
| "T2.gradepoint", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "fname", | |
| ",", | |
| "t3", | |
| ".", | |
| "lname", | |
| ",", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid" | |
| ], | |
| "question": "Đối với mỗi lượt đăng ký , cho biết tên đầy đủ của sinh viên và điểm số ghi trên học bạ .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "student", | |
| "first", | |
| "and", | |
| "last", | |
| "names", | |
| "and", | |
| "grade", | |
| "points", | |
| "of", | |
| "all", | |
| "enrollments", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.Fname", | |
| ",", | |
| "T3.LName", | |
| ",", | |
| "T2.gradepoint", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "fname", | |
| ",", | |
| "t3", | |
| ".", | |
| "lname", | |
| ",", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid" | |
| ], | |
| "question": "Cho biết tên đầy đủ và điểm số của từng học sinh ứng với mỗi lượt đăng ký .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "full", | |
| "names", | |
| "and", | |
| "gradepoints", | |
| "for", | |
| "all", | |
| "enrollments", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T3.Fname", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T2.gradepoint", | |
| ">", | |
| "=", | |
| "3.8" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t3", | |
| ".", | |
| "fname", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những sinh viên nào đã đạt được điểm số cao hơn 3.8 trong ít nhất một khoá học mà họ đã tham gia ? Liệt kê tên của những sinh viên này .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "distinct", | |
| "student", | |
| "first", | |
| "names", | |
| "of", | |
| "all", | |
| "students", | |
| "that", | |
| "have", | |
| "grade", | |
| "point", | |
| "at", | |
| "least", | |
| "3.8", | |
| "in", | |
| "one", | |
| "course", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.8, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T3.Fname", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T2.gradepoint", | |
| ">", | |
| "=", | |
| "3.8" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t3", | |
| ".", | |
| "fname", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết những cái tên khác nhau của các sinh viên đã đạt được điểm số cao hơn 3.8 trong ít nhất một khoá học mà họ đã tham gia .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "distinct", | |
| "first", | |
| "names", | |
| "for", | |
| "students", | |
| "with", | |
| "a", | |
| "grade", | |
| "point", | |
| "of", | |
| "3.8", | |
| "or", | |
| "above", | |
| "in", | |
| "at", | |
| "least", | |
| "one", | |
| "course", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.8, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Fname", | |
| ",", | |
| "T1.Lname", | |
| "FROM", | |
| "FACULTY", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.FacID", | |
| "WHERE", | |
| "T2.DNO", | |
| "=", | |
| "520" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t2", | |
| ".", | |
| "dno", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những giảng viên nào hiện đang là thành viên của khoa có mã số 520 ? Hiển thị tên đầy đủ của những giảng viên này .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "full", | |
| "names", | |
| "of", | |
| "faculties", | |
| "who", | |
| "are", | |
| "members", | |
| "of", | |
| "department", | |
| "with", | |
| "department", | |
| "number", | |
| "520", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| 520.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Fname", | |
| ",", | |
| "T1.Lname", | |
| "FROM", | |
| "FACULTY", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.FacID", | |
| "WHERE", | |
| "T2.DNO", | |
| "=", | |
| "520" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t2", | |
| ".", | |
| "dno", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên đầy đủ của các giảng viên đang làm việc tại khoa có mã số 520 .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "full", | |
| "names", | |
| "of", | |
| "faculty", | |
| "members", | |
| "who", | |
| "are", | |
| "a", | |
| "part", | |
| "of", | |
| "department", | |
| "520", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| 520.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "MINOR_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.StuID", | |
| "=", | |
| "T2.StuID", | |
| "WHERE", | |
| "T1.DNO", | |
| "=", | |
| "140" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "minor_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những sinh viên nào đang theo học chuyên ngành phụ ở khoa có mã số DNO là 140 ? Cho biết họ và tên của những sinh viên này .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "first", | |
| "names", | |
| "and", | |
| "last", | |
| "names", | |
| "of", | |
| "the", | |
| "students", | |
| "that", | |
| "minor", | |
| "in", | |
| "the", | |
| "department", | |
| "with", | |
| "DNO", | |
| "140", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 33, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| 140.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "MINOR_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.StuID", | |
| "=", | |
| "T2.StuID", | |
| "WHERE", | |
| "T1.DNO", | |
| "=", | |
| "140" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "minor_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên đầy đủ của những sinh viên đang theo học chuyên ngành phụ ở khoa có mã số DNO là 140 .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "full", | |
| "names", | |
| "of", | |
| "students", | |
| "minoring", | |
| "in", | |
| "department", | |
| "140", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 33, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| 140.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = \"Computer Science\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Lname", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T3.DNO", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.FacID", | |
| "=", | |
| "T3.FacID", | |
| "WHERE", | |
| "T1.DName", | |
| "=", | |
| "``", | |
| "Computer", | |
| "Science", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t3", | |
| ".", | |
| "dno", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "facid", | |
| "=", | |
| "t3", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "dname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Các giảng viên hiện đang làm việc tại khoa ' Khoa học máy tính ' có họ là gi ?", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "last", | |
| "names", | |
| "of", | |
| "faculties", | |
| "who", | |
| "are", | |
| "members", | |
| "of", | |
| "computer", | |
| "science", | |
| "department", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Computer Science\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = \"Computer Science\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Lname", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T3.DNO", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.FacID", | |
| "=", | |
| "T3.FacID", | |
| "WHERE", | |
| "T1.DName", | |
| "=", | |
| "``", | |
| "Computer", | |
| "Science", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t3", | |
| ".", | |
| "dno", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "facid", | |
| "=", | |
| "t3", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "dname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết họ của các giảng viên hiện đang làm việc tại khoa ' Khoa học máy tính ' .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "last", | |
| "names", | |
| "of", | |
| "faculty", | |
| "who", | |
| "are", | |
| "part", | |
| "of", | |
| "the", | |
| "computer", | |
| "science", | |
| "department", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Computer Science\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = \"Smith\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T3.LName", | |
| "=", | |
| "``", | |
| "Smith", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t3", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Học sinh có họ là Smith đạt được số điểm trung bình là bao nhiêu ?", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "average", | |
| "grade", | |
| "point", | |
| "of", | |
| "student", | |
| "whose", | |
| "last", | |
| "name", | |
| "is", | |
| "Smith", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Smith\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = \"Smith\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T3.LName", | |
| "=", | |
| "``", | |
| "Smith", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t3", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết số điểm trung bình của học sinh có họ là Smith .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "gradepoint", | |
| "for", | |
| "students", | |
| "with", | |
| "the", | |
| "last", | |
| "name", | |
| "Smith", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Smith\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = \"NYC\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T3.city_code", | |
| "=", | |
| "``", | |
| "NYC", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t3", | |
| ".", | |
| "city_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Số điểm cao nhất và số điểm thấp nhất trong học bạ của tất cả các học sinh sống ở NYC là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "maximum", | |
| "and", | |
| "minimum", | |
| "grade", | |
| "point", | |
| "of", | |
| "students", | |
| "who", | |
| "live", | |
| "in", | |
| "NYC", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NYC\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = \"NYC\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T3.city_code", | |
| "=", | |
| "``", | |
| "NYC", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t3", | |
| ".", | |
| "city_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết số điểm cao nhất và số điểm thấp nhất trong học bạ của tất cả các học sinh sống ở NYC .", | |
| "question_toks": [ | |
| "Give", | |
| "the", | |
| "maximum", | |
| "and", | |
| "minimum", | |
| "gradepoints", | |
| "for", | |
| "students", | |
| "living", | |
| "in", | |
| "NYC", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NYC\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "3", | |
| "UNION", | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "1", | |
| "AND", | |
| "Hours", | |
| "=", | |
| "4" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value", | |
| "and", | |
| "hours", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên của những khoá học cung cấp 3 hoặc 1 tín chỉ nhưng lại kéo dài trong 4 tiếng đồng hồ .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "names", | |
| "of", | |
| "courses", | |
| "that", | |
| "have", | |
| "either", | |
| "3", | |
| "credits", | |
| "or", | |
| "1", | |
| "credit", | |
| "but", | |
| "4", | |
| "hours", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 31, | |
| false | |
| ], | |
| null | |
| ], | |
| 4.0, | |
| null | |
| ] | |
| ] | |
| }, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "3", | |
| "UNION", | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "1", | |
| "AND", | |
| "Hours", | |
| "=", | |
| "4" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value", | |
| "and", | |
| "hours", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những khoá học nào cung cấp 3 hoặc 1 tín chỉ nhưng lại kéo dài trong 4 tiếng đồng hồ ? Cho biết tên của những khoá học này .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "courses", | |
| "that", | |
| "give", | |
| "either", | |
| "3", | |
| "credits", | |
| ",", | |
| "or", | |
| "1", | |
| "credit", | |
| "and", | |
| "4", | |
| "hours", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 31, | |
| false | |
| ], | |
| null | |
| ], | |
| 4.0, | |
| null | |
| ] | |
| ] | |
| }, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT WHERE Division = \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division = \"EN\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "AS", | |
| "''", | |
| "UNION", | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "EN", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên của các khoa thuộc bộ phận AS hoặc bộ phận EN và nằm trong toà nhà NEB .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "names", | |
| "of", | |
| "departments", | |
| "that", | |
| "are", | |
| "either", | |
| "in", | |
| "division", | |
| "AS", | |
| "or", | |
| "in", | |
| "division", | |
| "EN", | |
| "and", | |
| "in", | |
| "Building", | |
| "NEB", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"EN\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ] | |
| }, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AS\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT WHERE Division = \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division = \"EN\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "AS", | |
| "''", | |
| "UNION", | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "EN", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những khoa thuộc bộ phận AS hoặc bộ phận EN và nằm trong toà nhà NEB có tên là gì ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "departments", | |
| "either", | |
| "in", | |
| "division", | |
| "AS", | |
| ",", | |
| "or", | |
| "in", | |
| "division", | |
| "EN", | |
| "and", | |
| "in", | |
| "building", | |
| "NEB", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"EN\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ] | |
| }, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AS\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "StuID", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "ENROLLED_IN", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "student", | |
| "where", | |
| "stuid", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "stuid", | |
| "from", | |
| "enrolled_in", | |
| ")" | |
| ], | |
| "question": "Cho biết tên của những sinh viên không đăng ký bất kỳ khoá học nào .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "first", | |
| "name", | |
| "of", | |
| "students", | |
| "not", | |
| "enrolled", | |
| "in", | |
| "any", | |
| "course", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "StuID", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "ENROLLED_IN", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "student", | |
| "where", | |
| "stuid", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "stuid", | |
| "from", | |
| "enrolled_in", | |
| ")" | |
| ], | |
| "question": "Những sinh viên nào đã không đăng ký bất kỳ khoá học nào ? Cho biết tên của những sinh viên này .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "first", | |
| "names", | |
| "of", | |
| "all", | |
| "students", | |
| "that", | |
| "are", | |
| "not", | |
| "enrolled", | |
| "in", | |
| "courses", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| null | |
| ] | |
| ] | |
| } | |
| } | |
| ] |