| [ | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên của tất cả các trường học thuộc quận Los Angeles .", | |
| "question_toks": [ | |
| "Report", | |
| "the", | |
| "name", | |
| "of", | |
| "all", | |
| "campuses", | |
| "in", | |
| "Los", | |
| "Angeles", | |
| "county", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những cơ sở trường học nào được đặt tại quận Los Angeles ?", | |
| "question_toks": [ | |
| "What", | |
| "campuses", | |
| "are", | |
| "located", | |
| "in", | |
| "the", | |
| "county", | |
| "of", | |
| "Los", | |
| "Angeles", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE LOCATION = \"Chico\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "LOCATION", | |
| "=", | |
| "``", | |
| "Chico", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "location", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết tên của tất cả các cơ sở trường học ở Chico .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "all", | |
| "campuses", | |
| "located", | |
| "at", | |
| "Chico", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Chico\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE LOCATION = \"Chico\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "LOCATION", | |
| "=", | |
| "``", | |
| "Chico", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "location", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những cơ sở trường học nào được đặt tại Chico ?", | |
| "question_toks": [ | |
| "What", | |
| "campuses", | |
| "are", | |
| "located", | |
| "in", | |
| "Chico", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Chico\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE YEAR = 1958", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "1958" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Tìm tất cả các cơ sở trường học được mở vào năm 1958 .", | |
| "question_toks": [ | |
| "Find", | |
| "all", | |
| "the", | |
| "campuses", | |
| "opened", | |
| "in", | |
| "1958", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1958.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE YEAR = 1958", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "1958" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những trường học được mở vào năm 1958 là những trường nào ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "campuses", | |
| "that", | |
| "opened", | |
| "in", | |
| "1958", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1958.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE YEAR < 1800", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "YEAR", | |
| "<", | |
| "1800" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "year", | |
| "<", | |
| "value" | |
| ], | |
| "question": "Tìm tên của các trường học được mở trước năm 1800 .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "campuses", | |
| "opened", | |
| "before", | |
| "1800", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1800.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE YEAR < 1800", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "YEAR", | |
| "<", | |
| "1800" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "year", | |
| "<", | |
| "value" | |
| ], | |
| "question": "Những trường học nào được mở trước năm 1800 ?", | |
| "question_toks": [ | |
| "What", | |
| "campuses", | |
| "opened", | |
| "before", | |
| "1800", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1800.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "YEAR", | |
| ">", | |
| "=", | |
| "1935", | |
| "AND", | |
| "YEAR", | |
| "<", | |
| "=", | |
| "1939" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "year", | |
| ">", | |
| "=", | |
| "value", | |
| "and", | |
| "year", | |
| "<", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những cơ sở trường học nào được mở cửa vào giữa năm 1935 và năm 1939 ?", | |
| "question_toks": [ | |
| "Which", | |
| "campus", | |
| "was", | |
| "opened", | |
| "between", | |
| "1935", | |
| "and", | |
| "1939", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1935.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1939.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "YEAR", | |
| ">", | |
| "=", | |
| "1935", | |
| "AND", | |
| "YEAR", | |
| "<", | |
| "=", | |
| "1939" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "year", | |
| ">", | |
| "=", | |
| "value", | |
| "and", | |
| "year", | |
| "<", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết những cơ sở trường học được mở cửa vào giữa năm 1935 và năm 1939 .", | |
| "question_toks": [ | |
| "What", | |
| "campuses", | |
| "opened", | |
| "between", | |
| "1935", | |
| "and", | |
| "1939", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1935.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1939.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE LOCATION = \"Northridge\" AND county = \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION = \"San Francisco\" AND county = \"San Francisco\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "LOCATION", | |
| "=", | |
| "``", | |
| "Northridge", | |
| "''", | |
| "AND", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''", | |
| "UNION", | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "LOCATION", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "''", | |
| "AND", | |
| "county", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "location", | |
| "=", | |
| "value", | |
| "and", | |
| "county", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "location", | |
| "=", | |
| "value", | |
| "and", | |
| "county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Tìm tên của các cơ sở trường học ở Northridge , Los Angeles hoặc ở San Francisco , San Francisco .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "campuses", | |
| "that", | |
| "is", | |
| "in", | |
| "Northridge", | |
| ",", | |
| "Los", | |
| "Angeles", | |
| "or", | |
| "in", | |
| "San", | |
| "Francisco", | |
| ",", | |
| "San", | |
| "Francisco", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco\"", | |
| null | |
| ] | |
| ] | |
| }, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Northridge\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE LOCATION = \"Northridge\" AND county = \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION = \"San Francisco\" AND county = \"San Francisco\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "LOCATION", | |
| "=", | |
| "``", | |
| "Northridge", | |
| "''", | |
| "AND", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''", | |
| "UNION", | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "LOCATION", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "''", | |
| "AND", | |
| "county", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "location", | |
| "=", | |
| "value", | |
| "and", | |
| "county", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "location", | |
| "=", | |
| "value", | |
| "and", | |
| "county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những cơ sở trường học nào được đặt tại Northridge , Los Angeles hoặc tại San Francisco , San Francisco ?", | |
| "question_toks": [ | |
| "What", | |
| "campuses", | |
| "are", | |
| "located", | |
| "in", | |
| "Northridge", | |
| ",", | |
| "Los", | |
| "Angeles", | |
| "or", | |
| "in", | |
| "San", | |
| "Francisco", | |
| ",", | |
| "San", | |
| "Francisco", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco\"", | |
| null | |
| ] | |
| ] | |
| }, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Northridge\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND T2.year = 1996", | |
| "query_toks": [ | |
| "SELECT", | |
| "campusfee", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "csu_fees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t1.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "T2.year", | |
| "=", | |
| "1996" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campusfee", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "csu_fees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Học phí của ' Đại học bang San Jose ' năm 1996 là bao nhiêu", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "campus", | |
| "fee", | |
| "of", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "year", | |
| "1996", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Jose State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 1996.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND T2.year = 1996", | |
| "query_toks": [ | |
| "SELECT", | |
| "campusfee", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "csu_fees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t1.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "T2.year", | |
| "=", | |
| "1996" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campusfee", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "csu_fees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết mức học phí của trường ' Đại học bang San Jose ' năm 1996 .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "campus", | |
| "fee", | |
| "for", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "in", | |
| "1996", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Jose State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 1996.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND T2.year = 1996", | |
| "query_toks": [ | |
| "SELECT", | |
| "campusfee", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "csu_fees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t1.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "T2.year", | |
| "=", | |
| "1996" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campusfee", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "csu_fees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Học phí của ' Đại học bang San Francisco ' năm 1996 là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "campus", | |
| "fee", | |
| "of", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "year", | |
| "1996", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 1996.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND T2.year = 1996", | |
| "query_toks": [ | |
| "SELECT", | |
| "campusfee", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "csu_fees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t1.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "T2.year", | |
| "=", | |
| "1996" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campusfee", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "csu_fees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết mức học phí của trường ' Đại học San Francisco ' năm 1996 .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "campus", | |
| "fee", | |
| "for", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "in", | |
| "1996", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 1996.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| "WHERE", | |
| "campusfee", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| "where", | |
| "campusfee", | |
| ">", | |
| "(", | |
| "select", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| ")" | |
| ], | |
| "question": "Tìm số lượng các trường đại học có mức học phí cao hơn mức học phí trung bình .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "count", | |
| "of", | |
| "universities", | |
| "whose", | |
| "campus", | |
| "fee", | |
| "is", | |
| "greater", | |
| "than", | |
| "the", | |
| "average", | |
| "campus", | |
| "fee", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| "WHERE", | |
| "campusfee", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| "where", | |
| "campusfee", | |
| ">", | |
| "(", | |
| "select", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| ")" | |
| ], | |
| "question": "Có bao nhiêu trường đại học có học phí cao hơn mức trung bình ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "universities", | |
| "have", | |
| "a", | |
| "campus", | |
| "fee", | |
| "higher", | |
| "than", | |
| "average", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| "WHERE", | |
| "campusfee", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| "where", | |
| "campusfee", | |
| ">", | |
| "(", | |
| "select", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| ")" | |
| ], | |
| "question": "Tìm số lượng các trường đại học có học phí cao hơn mức trung bình .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "count", | |
| "of", | |
| "universities", | |
| "whose", | |
| "campus", | |
| "fee", | |
| "is", | |
| "greater", | |
| "than", | |
| "the", | |
| "average", | |
| "campus", | |
| "fee", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| "WHERE", | |
| "campusfee", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| "where", | |
| "campusfee", | |
| ">", | |
| "(", | |
| "select", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| ")" | |
| ], | |
| "question": "Đếm số lượng các trường đại học có mức học phí cao hơn mức trung bình .", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "universities", | |
| "have", | |
| "a", | |
| "campus", | |
| "fee", | |
| "greater", | |
| "than", | |
| "the", | |
| "average", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\" AND YEAR > 1950", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''", | |
| "AND", | |
| "YEAR", | |
| ">", | |
| "1950" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "county", | |
| "=", | |
| "value", | |
| "and", | |
| "year", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Cho biết các trường đại học ở quận Los Angeles và được mở cửa sau năm 1950 .", | |
| "question_toks": [ | |
| "Which", | |
| "university", | |
| "is", | |
| "in", | |
| "Los", | |
| "Angeles", | |
| "county", | |
| "and", | |
| "opened", | |
| "after", | |
| "1950", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1950.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\" AND YEAR > 1950", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''", | |
| "AND", | |
| "YEAR", | |
| ">", | |
| "1950" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "county", | |
| "=", | |
| "value", | |
| "and", | |
| "year", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Những cơ sở trường học nào được đặt tại quận Los Angeles và được mở cửa sau năm 1950 ?", | |
| "question_toks": [ | |
| "What", | |
| "campuses", | |
| "are", | |
| "located", | |
| "in", | |
| "Los", | |
| "Angeles", | |
| "county", | |
| "and", | |
| "opened", | |
| "after", | |
| "1950", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1950.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "YEAR", | |
| "FROM", | |
| "degrees", | |
| "GROUP", | |
| "BY", | |
| "YEAR", | |
| "ORDER", | |
| "BY", | |
| "sum", | |
| "(", | |
| "degrees", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "year", | |
| "from", | |
| "degrees", | |
| "group", | |
| "by", | |
| "year", | |
| "order", | |
| "by", | |
| "sum", | |
| "(", | |
| "degrees", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Năm nào có nhiều bằng cấp được trao nhất ?", | |
| "question_toks": [ | |
| "Which", | |
| "year", | |
| "has", | |
| "the", | |
| "most", | |
| "degrees", | |
| "conferred", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 4, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "YEAR", | |
| "FROM", | |
| "degrees", | |
| "GROUP", | |
| "BY", | |
| "YEAR", | |
| "ORDER", | |
| "BY", | |
| "sum", | |
| "(", | |
| "degrees", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "year", | |
| "from", | |
| "degrees", | |
| "group", | |
| "by", | |
| "year", | |
| "order", | |
| "by", | |
| "sum", | |
| "(", | |
| "degrees", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Năm nào có số lượng bằng được trao nhiều nhất ?", | |
| "question_toks": [ | |
| "In", | |
| "what", | |
| "year", | |
| "was", | |
| "the", | |
| "most", | |
| "degrees", | |
| "conferred", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 4, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "degrees", | |
| "GROUP", | |
| "BY", | |
| "campus", | |
| "ORDER", | |
| "BY", | |
| "sum", | |
| "(", | |
| "degrees", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "degrees", | |
| "group", | |
| "by", | |
| "campus", | |
| "order", | |
| "by", | |
| "sum", | |
| "(", | |
| "degrees", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Trường học nào có nhiều bằng cấp được trao nhất ?", | |
| "question_toks": [ | |
| "Which", | |
| "campus", | |
| "has", | |
| "the", | |
| "most", | |
| "degrees", | |
| "conferred", | |
| "in", | |
| "all", | |
| "times", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 4, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "degrees", | |
| "GROUP", | |
| "BY", | |
| "campus", | |
| "ORDER", | |
| "BY", | |
| "sum", | |
| "(", | |
| "degrees", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "degrees", | |
| "group", | |
| "by", | |
| "campus", | |
| "order", | |
| "by", | |
| "sum", | |
| "(", | |
| "degrees", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Cho biết trường học có nhiều bằng cấp được trao nhất trong toàn bộ thời gian tồn tại của nó .", | |
| "question_toks": [ | |
| "What", | |
| "campus", | |
| "has", | |
| "the", | |
| "most", | |
| "degrees", | |
| "conferrred", | |
| "over", | |
| "its", | |
| "entire", | |
| "existence", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 4, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T2.year", | |
| "=", | |
| "2003", | |
| "ORDER", | |
| "BY", | |
| "T2.faculty", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "faculty", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Trường nào có nhiều giảng viên nhất trong năm 2003 ?", | |
| "question_toks": [ | |
| "Which", | |
| "campus", | |
| "has", | |
| "the", | |
| "most", | |
| "faculties", | |
| "in", | |
| "year", | |
| "2003", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2003.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T2.year", | |
| "=", | |
| "2003", | |
| "ORDER", | |
| "BY", | |
| "T2.faculty", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "faculty", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Cho biết trường học có nhiều giảng viên nhất trong năm 2003 .", | |
| "question_toks": [ | |
| "What", | |
| "campus", | |
| "has", | |
| "the", | |
| "most", | |
| "faculties", | |
| "in", | |
| "2003", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2003.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 1996", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "1996" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Tìm mức học phí trung bình của các trường học loại CSU trong năm 1996 .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "average", | |
| "fee", | |
| "on", | |
| "a", | |
| "CSU", | |
| "campus", | |
| "in", | |
| "1996" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 1996.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 1996", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "1996" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Học phí trung bình của các trường học loại CSU trong năm 1996 là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "fee", | |
| "for", | |
| "a", | |
| "CSU", | |
| "campus", | |
| "in", | |
| "the", | |
| "year", | |
| "of", | |
| "1996", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 1996.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 2005", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "2005" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Học phí trung bình của các trường học loại CSU trong năm 2005 là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "fee", | |
| "on", | |
| "a", | |
| "CSU", | |
| "campus", | |
| "in", | |
| "2005", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 2005.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 2005", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "FROM", | |
| "csu_fees", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "2005" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "campusfee", | |
| ")", | |
| "from", | |
| "csu_fees", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết học phí trung bình của các trường học loại CSU trong năm 2005 .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "fee", | |
| "for", | |
| "a", | |
| "CSU", | |
| "campus", | |
| "in", | |
| "the", | |
| "year", | |
| "of", | |
| "2005", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 2005.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| ",", | |
| "sum", | |
| "(", | |
| "T2.degrees", | |
| ")", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T2.year", | |
| ">", | |
| "=", | |
| "1998", | |
| "AND", | |
| "T2.year", | |
| "<", | |
| "=", | |
| "2002", | |
| "GROUP", | |
| "BY", | |
| "T1.campus" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| ",", | |
| "sum", | |
| "(", | |
| "t2", | |
| ".", | |
| "degrees", | |
| ")", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| ">", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "<", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "campus" | |
| ], | |
| "question": "Tổng số bằng cấp được cấp trao trong khoảng thời gian từ năm 1998 đến năm 2002 là bao nhiêu ?", | |
| "question_toks": [ | |
| "report", | |
| "the", | |
| "total", | |
| "number", | |
| "of", | |
| "degrees", | |
| "granted", | |
| "between", | |
| "1998", | |
| "and", | |
| "2002", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 1998.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| ",", | |
| "sum", | |
| "(", | |
| "T2.degrees", | |
| ")", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T2.year", | |
| ">", | |
| "=", | |
| "1998", | |
| "AND", | |
| "T2.year", | |
| "<", | |
| "=", | |
| "2002", | |
| "GROUP", | |
| "BY", | |
| "T1.campus" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| ",", | |
| "sum", | |
| "(", | |
| "t2", | |
| ".", | |
| "degrees", | |
| ")", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| ">", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "<", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "campus" | |
| ], | |
| "question": "Có bao nhiêu bằng cấp được trao trong khoảng thời gian từ năm 1998 cho đến năm 2002 ?", | |
| "question_toks": [ | |
| "how", | |
| "many", | |
| "degrees", | |
| "were", | |
| "conferred", | |
| "between", | |
| "1998", | |
| "and", | |
| "2002", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 1998.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = \"Orange\" AND T2.year >= 2000 GROUP BY T1.campus", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| ",", | |
| "sum", | |
| "(", | |
| "T2.degrees", | |
| ")", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T1.county", | |
| "=", | |
| "``", | |
| "Orange", | |
| "''", | |
| "AND", | |
| "T2.year", | |
| ">", | |
| "=", | |
| "2000", | |
| "GROUP", | |
| "BY", | |
| "T1.campus" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| ",", | |
| "sum", | |
| "(", | |
| "t2", | |
| ".", | |
| "degrees", | |
| ")", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "county", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| ">", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "campus" | |
| ], | |
| "question": "Đối với mỗi cơ sở trường học ở quận Cam , hãy báo cáo số lượng bằng cấp đã được trao sau năm 2000 .", | |
| "question_toks": [ | |
| "For", | |
| "each", | |
| "Orange", | |
| "county", | |
| "campus", | |
| ",", | |
| "report", | |
| "the", | |
| "number", | |
| "of", | |
| "degrees", | |
| "granted", | |
| "after", | |
| "2000", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Orange\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = \"Orange\" AND T2.year >= 2000 GROUP BY T1.campus", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| ",", | |
| "sum", | |
| "(", | |
| "T2.degrees", | |
| ")", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T1.county", | |
| "=", | |
| "``", | |
| "Orange", | |
| "''", | |
| "AND", | |
| "T2.year", | |
| ">", | |
| "=", | |
| "2000", | |
| "GROUP", | |
| "BY", | |
| "T1.campus" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| ",", | |
| "sum", | |
| "(", | |
| "t2", | |
| ".", | |
| "degrees", | |
| ")", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "county", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| ">", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "campus" | |
| ], | |
| "question": "Tổng số bằng cấp đã được trao sau năm 2000 của từng cơ sở trường học ở quận Cam là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "total", | |
| "number", | |
| "of", | |
| "degrees", | |
| "granted", | |
| "after", | |
| "2000", | |
| "for", | |
| "each", | |
| "Orange", | |
| "county", | |
| "campus", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Orange\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T2.year", | |
| "=", | |
| "2002", | |
| "AND", | |
| "faculty", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "max", | |
| "(", | |
| "faculty", | |
| ")", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T2.year", | |
| "=", | |
| "2002", | |
| "AND", | |
| "T1.county", | |
| "=", | |
| "``", | |
| "Orange", | |
| "''", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "faculty", | |
| ">", | |
| "(", | |
| "select", | |
| "max", | |
| "(", | |
| "faculty", | |
| ")", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "county", | |
| "=", | |
| "value", | |
| ")" | |
| ], | |
| "question": "Tìm tên của trường học có số lượng giảng viên nhiều hơn số lượng giảng viên của mọi trường ở quận Cam trong năm 2002 .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "names", | |
| "of", | |
| "the", | |
| "campus", | |
| "which", | |
| "has", | |
| "more", | |
| "faculties", | |
| "in", | |
| "2002", | |
| "than", | |
| "every", | |
| "campus", | |
| "in", | |
| "Orange", | |
| "county", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Orange\"", | |
| null | |
| ] | |
| ] | |
| }, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T2.year", | |
| "=", | |
| "2002", | |
| "AND", | |
| "faculty", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "max", | |
| "(", | |
| "faculty", | |
| ")", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "T2.campus", | |
| "WHERE", | |
| "T2.year", | |
| "=", | |
| "2002", | |
| "AND", | |
| "T1.county", | |
| "=", | |
| "``", | |
| "Orange", | |
| "''", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "faculty", | |
| ">", | |
| "(", | |
| "select", | |
| "max", | |
| "(", | |
| "faculty", | |
| ")", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "county", | |
| "=", | |
| "value", | |
| ")" | |
| ], | |
| "question": "Những trường nào có số lượng giảng viên nhiều hơn số lượng giảng viên của trường có nhiều giảng viên nhất ở quận Cam trong năm 2002 ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "the", | |
| "campus", | |
| "that", | |
| "have", | |
| "more", | |
| "faculties", | |
| "in", | |
| "2002", | |
| "than", | |
| "the", | |
| "maximum", | |
| "number", | |
| "in", | |
| "Orange", | |
| "county", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Orange\"", | |
| null | |
| ] | |
| ] | |
| }, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "enrollments", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t2.year", | |
| "=", | |
| "1956", | |
| "AND", | |
| "totalenrollment_ay", | |
| ">", | |
| "400", | |
| "AND", | |
| "FTE_AY", | |
| ">", | |
| "200" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "enrollments", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "totalenrollment_ay", | |
| ">", | |
| "value", | |
| "and", | |
| "fte_ay", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Cơ sở trường học nào có nhiều hơn 400 lượt tuyển sinh và có nhiều hơn 200 lượt tuyển sinh toàn thời gian vào năm 1956 ?", | |
| "question_toks": [ | |
| "What", | |
| "campus", | |
| "had", | |
| "more", | |
| "than", | |
| "400", | |
| "total", | |
| "enrollment", | |
| "but", | |
| "more", | |
| "than", | |
| "200", | |
| "full", | |
| "time", | |
| "enrollment", | |
| "in", | |
| "year", | |
| "1956", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 1956.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| 400.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| 200.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "enrollments", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t2.year", | |
| "=", | |
| "1956", | |
| "AND", | |
| "totalenrollment_ay", | |
| ">", | |
| "400", | |
| "AND", | |
| "FTE_AY", | |
| ">", | |
| "200" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "enrollments", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "totalenrollment_ay", | |
| ">", | |
| "value", | |
| "and", | |
| "fte_ay", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Cho biết các cơ sở trường học bắt đầu vào năm 1956 , có nhiều hơn 200 sinh viên toàn thời gian và nhiều hơn 400 sinh viên theo học .", | |
| "question_toks": [ | |
| "What", | |
| "campus", | |
| "started", | |
| "in", | |
| "year", | |
| "1956", | |
| ",", | |
| "has", | |
| "more", | |
| "than", | |
| "200", | |
| "full", | |
| "time", | |
| "students", | |
| ",", | |
| "and", | |
| "more", | |
| "than", | |
| "400", | |
| "students", | |
| "enrolled", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 1956.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| 400.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| 200.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT count(*) FROM campuses WHERE county = \"Los Angeles\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "campuses", | |
| "where", | |
| "county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu trường ở quận Los Angeles ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "campuses", | |
| "are", | |
| "there", | |
| "in", | |
| "Los", | |
| "Angeles", | |
| "county", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT count(*) FROM campuses WHERE county = \"Los Angeles\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "campuses", | |
| "where", | |
| "county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu trường ở quận LA ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "campuses", | |
| "exist", | |
| "are", | |
| "in", | |
| "the", | |
| "county", | |
| "of", | |
| "LA", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Liệt kê các cơ sở trường học ở quận Los Angeles .", | |
| "question_toks": [ | |
| "List", | |
| "the", | |
| "campuses", | |
| "in", | |
| "Los", | |
| "Angeles", | |
| "county", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "campus", | |
| "FROM", | |
| "campuses", | |
| "WHERE", | |
| "county", | |
| "=", | |
| "``", | |
| "Los", | |
| "Angeles", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "where", | |
| "county", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những cơ sở trường học nào có địa điểm ở quận Los Angeles ?", | |
| "question_toks": [ | |
| "What", | |
| "campuses", | |
| "are", | |
| "in", | |
| "Los", | |
| "Angeles", | |
| "county", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND t2.year = 2000", | |
| "query_toks": [ | |
| "SELECT", | |
| "degrees", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "t1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t1.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "t2.year", | |
| "=", | |
| "2000" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "degrees", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu bằng cấp được trao bởi ' Đại học bang San Jose ' vào năm 2000 ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "degrees", | |
| "were", | |
| "conferred", | |
| "in", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "2000", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Jose State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND t2.year = 2000", | |
| "query_toks": [ | |
| "SELECT", | |
| "degrees", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "t1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t1.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "t2.year", | |
| "=", | |
| "2000" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "degrees", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Đếm số lượng bằng cấp được trao tại ' Đại học bang San Jose ' năm 2000 .", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "degrees", | |
| "were", | |
| "conferred", | |
| "at", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "in", | |
| "2000", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Jose State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND t2.year = 2001", | |
| "query_toks": [ | |
| "SELECT", | |
| "degrees", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "t1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t1.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "t2.year", | |
| "=", | |
| "2001" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "degrees", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những loại bằng cấp được trao bởi ' Đại học bang San Francisco ' năm 2001 là những loại nào ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "degrees", | |
| "conferred", | |
| "in", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "2001", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2001.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND t2.year = 2001", | |
| "query_toks": [ | |
| "SELECT", | |
| "degrees", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "t1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t1.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "t2.year", | |
| "=", | |
| "2001" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "degrees", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết những loại bằng cấp đã được trao tại ' Đại học bang San Francisco ' vào năm 2001 .", | |
| "question_toks": [ | |
| "What", | |
| "degrees", | |
| "were", | |
| "conferred", | |
| "in", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "in", | |
| "the", | |
| "year", | |
| "2001", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2001.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT sum(faculty) FROM faculty WHERE YEAR = 2002", | |
| "query_toks": [ | |
| "SELECT", | |
| "sum", | |
| "(", | |
| "faculty", | |
| ")", | |
| "FROM", | |
| "faculty", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "2002" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sum", | |
| "(", | |
| "faculty", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Tổng cộng có bao nhiêu giảng viên trong năm 2002 ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "faculty", | |
| "is", | |
| "there", | |
| "in", | |
| "total", | |
| "in", | |
| "the", | |
| "year", | |
| "of", | |
| "2002", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT sum(faculty) FROM faculty WHERE YEAR = 2002", | |
| "query_toks": [ | |
| "SELECT", | |
| "sum", | |
| "(", | |
| "faculty", | |
| ")", | |
| "FROM", | |
| "faculty", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "2002" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sum", | |
| "(", | |
| "faculty", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Đếm tổng số lượng giảng viên năm 2002 .", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "faculty", | |
| ",", | |
| "in", | |
| "total", | |
| ",", | |
| "are", | |
| "there", | |
| "in", | |
| "the", | |
| "year", | |
| "2002", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = \"Long Beach State University\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "faculty", | |
| "FROM", | |
| "faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.campus", | |
| "=", | |
| "T2.id", | |
| "WHERE", | |
| "T1.year", | |
| "=", | |
| "2002", | |
| "AND", | |
| "T2.campus", | |
| "=", | |
| "``", | |
| "Long", | |
| "Beach", | |
| "State", | |
| "University", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "faculty", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Số lượng giảng viên thuộc trường ' Đại học bang Long Beach ' năm 2002 là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "faculty", | |
| "lines", | |
| "in", | |
| "campus", | |
| "``", | |
| "Long", | |
| "Beach", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "2002", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| 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, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Long Beach State University\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = \"Long Beach State University\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "faculty", | |
| "FROM", | |
| "faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.campus", | |
| "=", | |
| "T2.id", | |
| "WHERE", | |
| "T1.year", | |
| "=", | |
| "2002", | |
| "AND", | |
| "T2.campus", | |
| "=", | |
| "``", | |
| "Long", | |
| "Beach", | |
| "State", | |
| "University", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "faculty", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết số lượng giảng viên tại ' Đại học bang Long Beach ' năm 2002 .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "faculty", | |
| "at", | |
| "Long", | |
| "Beach", | |
| "State", | |
| "University", | |
| "in", | |
| "2002", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| 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, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Long Beach State University\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = \"San Francisco State University\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "faculty", | |
| "FROM", | |
| "faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.campus", | |
| "=", | |
| "T2.id", | |
| "WHERE", | |
| "T1.year", | |
| "=", | |
| "2004", | |
| "AND", | |
| "T2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "faculty", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu giảng viên đã giảng dạy tại ' Đại học bang San Francisco ' năm 2004 ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "faculty", | |
| "lines", | |
| "are", | |
| "there", | |
| "in", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "year", | |
| "2004", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| 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, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2004.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = \"San Francisco State University\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "faculty", | |
| "FROM", | |
| "faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.campus", | |
| "=", | |
| "T2.id", | |
| "WHERE", | |
| "T1.year", | |
| "=", | |
| "2004", | |
| "AND", | |
| "T2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "faculty", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết số lượng giảng viên đã giảng dạy tại ' Đại học bang San Francisco ' năm 2004 .", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "faculty", | |
| "lines", | |
| "are", | |
| "there", | |
| "at", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "in", | |
| "2004", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| 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, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2004.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t2.faculty", | |
| ">", | |
| "=", | |
| "600", | |
| "AND", | |
| "t2.faculty", | |
| "<", | |
| "=", | |
| "1000", | |
| "AND", | |
| "T1.year", | |
| "=", | |
| "2004" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "faculty", | |
| ">", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "faculty", | |
| "<", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Liệt kê các trường có từ 600 đến 1000 giảng viên trong năm 2004 .", | |
| "question_toks": [ | |
| "List", | |
| "the", | |
| "campus", | |
| "that", | |
| "have", | |
| "between", | |
| "600", | |
| "and", | |
| "1000", | |
| "faculty", | |
| "lines", | |
| "in", | |
| "year", | |
| "2004", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 600.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1000.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 2004.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.campus", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.id", | |
| "=", | |
| "t2.campus", | |
| "WHERE", | |
| "t2.faculty", | |
| ">", | |
| "=", | |
| "600", | |
| "AND", | |
| "t2.faculty", | |
| "<", | |
| "=", | |
| "1000", | |
| "AND", | |
| "T1.year", | |
| "=", | |
| "2004" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campus", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "where", | |
| "t2", | |
| ".", | |
| "faculty", | |
| ">", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "faculty", | |
| "<", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Những cơ sở trường học nào có từ 600 đến 1000 giảng viên trong năm 2004 ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "campuses", | |
| "that", | |
| "had", | |
| "between", | |
| "600", | |
| "and", | |
| "1000", | |
| "faculty", | |
| "members", | |
| "in", | |
| "2004", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 600.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1000.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 2004.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.faculty", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t2.campus", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t3.campus", | |
| "AND", | |
| "t2.year", | |
| "=", | |
| "t3.year", | |
| "WHERE", | |
| "t2.year", | |
| "=", | |
| "2002", | |
| "ORDER", | |
| "BY", | |
| "t3.degrees", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "faculty", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t3", | |
| ".", | |
| "campus", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "t3", | |
| ".", | |
| "year", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t3", | |
| ".", | |
| "degrees", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu giảng viên thuộc trường đại học có số lượng bằng cấp được trao nhiều nhất trong năm 2002 ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "faculty", | |
| "lines", | |
| "are", | |
| "there", | |
| "in", | |
| "the", | |
| "university", | |
| "that", | |
| "conferred", | |
| "the", | |
| "most", | |
| "number", | |
| "of", | |
| "degrees", | |
| "in", | |
| "year", | |
| "2002", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.faculty", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t2.campus", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t3.campus", | |
| "AND", | |
| "t2.year", | |
| "=", | |
| "t3.year", | |
| "WHERE", | |
| "t2.year", | |
| "=", | |
| "2002", | |
| "ORDER", | |
| "BY", | |
| "t3.degrees", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "faculty", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t3", | |
| ".", | |
| "campus", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "t3", | |
| ".", | |
| "year", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t3", | |
| ".", | |
| "degrees", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu giảng viên đã giảng dạy tại trường đại học trao nhiều bằng cấp nhất trong năm 2002 ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "faculty", | |
| "members", | |
| "did", | |
| "the", | |
| "university", | |
| "that", | |
| "conferred", | |
| "the", | |
| "most", | |
| "degrees", | |
| "in", | |
| "2002", | |
| "have", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.faculty", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t2.campus", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t3.campus", | |
| "AND", | |
| "t2.year", | |
| "=", | |
| "t3.year", | |
| "WHERE", | |
| "t2.year", | |
| "=", | |
| "2001", | |
| "ORDER", | |
| "BY", | |
| "t3.degrees", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "faculty", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t3", | |
| ".", | |
| "campus", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "t3", | |
| ".", | |
| "year", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t3", | |
| ".", | |
| "degrees", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu giảng viên thuộc trường đại học có số lượng bằng cấp được trao ít nhất trong năm 2001 ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "faculty", | |
| "lines", | |
| "are", | |
| "there", | |
| "in", | |
| "the", | |
| "university", | |
| "that", | |
| "conferred", | |
| "the", | |
| "least", | |
| "number", | |
| "of", | |
| "degrees", | |
| "in", | |
| "year", | |
| "2001", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2001.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.faculty", | |
| "FROM", | |
| "campuses", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "faculty", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t2.campus", | |
| "JOIN", | |
| "degrees", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.id", | |
| "=", | |
| "t3.campus", | |
| "AND", | |
| "t2.year", | |
| "=", | |
| "t3.year", | |
| "WHERE", | |
| "t2.year", | |
| "=", | |
| "2001", | |
| "ORDER", | |
| "BY", | |
| "t3.degrees", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "faculty", | |
| "from", | |
| "campuses", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "campus", | |
| "join", | |
| "degrees", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t3", | |
| ".", | |
| "campus", | |
| "and", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "t3", | |
| ".", | |
| "year", | |
| "where", | |
| "t2", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t3", | |
| ".", | |
| "degrees", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu giảng viên đã giảng dạy tại trường đại học có số lượng bằng cấp được trao ít nhất trong năm 2001 ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "faculty", | |
| "members", | |
| "are", | |
| "at", | |
| "the", | |
| "university", | |
| "that", | |
| "gave", | |
| "the", | |
| "least", | |
| "number", | |
| "of", | |
| "degrees", | |
| "in", | |
| "2001", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2001.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Jose State University\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "sum", | |
| "(", | |
| "t1.undergraduate", | |
| ")", | |
| "FROM", | |
| "discipline_enrollments", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.campus", | |
| "=", | |
| "t2.id", | |
| "WHERE", | |
| "t1.year", | |
| "=", | |
| "2004", | |
| "AND", | |
| "t2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sum", | |
| "(", | |
| "t1", | |
| ".", | |
| "undergraduate", | |
| ")", | |
| "from", | |
| "discipline_enrollments", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu sinh viên đại học theo học tại ' Đại học bang San Jose ' năm 2004 ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "undergraduates", | |
| "are", | |
| "there", | |
| "in", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "year", | |
| "2004", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| 2004.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Jose State University\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Jose State University\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "sum", | |
| "(", | |
| "t1.undergraduate", | |
| ")", | |
| "FROM", | |
| "discipline_enrollments", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.campus", | |
| "=", | |
| "t2.id", | |
| "WHERE", | |
| "t1.year", | |
| "=", | |
| "2004", | |
| "AND", | |
| "t2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sum", | |
| "(", | |
| "t1", | |
| ".", | |
| "undergraduate", | |
| ")", | |
| "from", | |
| "discipline_enrollments", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Đếm số lượng sinh viên đại học theo học tại ' Đại học bang San Jose ' năm 2004 .", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "undergraduates", | |
| "are", | |
| "there", | |
| "at", | |
| "San", | |
| "Jose", | |
| "State" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| 2004.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Jose State University\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Francisco State University\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "sum", | |
| "(", | |
| "t1.graduate", | |
| ")", | |
| "FROM", | |
| "discipline_enrollments", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.campus", | |
| "=", | |
| "t2.id", | |
| "WHERE", | |
| "t1.year", | |
| "=", | |
| "2004", | |
| "AND", | |
| "t2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sum", | |
| "(", | |
| "t1", | |
| ".", | |
| "graduate", | |
| ")", | |
| "from", | |
| "discipline_enrollments", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Số lượng sinh viên tốt nghiệp tại ' Đại học bang San Francisco ' năm 2004 là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "graduates", | |
| "in", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "year", | |
| "2004", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| 2004.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Francisco State University\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "sum", | |
| "(", | |
| "t1.graduate", | |
| ")", | |
| "FROM", | |
| "discipline_enrollments", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.campus", | |
| "=", | |
| "t2.id", | |
| "WHERE", | |
| "t1.year", | |
| "=", | |
| "2004", | |
| "AND", | |
| "t2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sum", | |
| "(", | |
| "t1", | |
| ".", | |
| "graduate", | |
| ")", | |
| "from", | |
| "discipline_enrollments", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Có bao nhiêu người đã tốt nghiệp tại ' Đại học San Francisco ' năm 2004 ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "people", | |
| "graduated", | |
| "from", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "in", | |
| "2004", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| 2004.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Francisco State University\" AND t1.year = 2000", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.campusfee", | |
| "FROM", | |
| "csu_fees", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.campus", | |
| "=", | |
| "t2.id", | |
| "WHERE", | |
| "t2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "t1.year", | |
| "=", | |
| "2000" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campusfee", | |
| "from", | |
| "csu_fees", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Học phí của ' Đại học bang San Francisco ' năm 2000 là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "campus", | |
| "fee", | |
| "of", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "year", | |
| "2000", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Francisco State University\" AND t1.year = 2000", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.campusfee", | |
| "FROM", | |
| "csu_fees", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.campus", | |
| "=", | |
| "t2.id", | |
| "WHERE", | |
| "t2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "t1.year", | |
| "=", | |
| "2000" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campusfee", | |
| "from", | |
| "csu_fees", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Vào năm 2000 , học phí của trường ' Đại học San Francisco ' là bao nhiêu ?", | |
| "question_toks": [ | |
| "In", | |
| "the", | |
| "year", | |
| "2000", | |
| ",", | |
| "what", | |
| "is", | |
| "the", | |
| "campus", | |
| "fee", | |
| "for", | |
| "San", | |
| "Francisco", | |
| "State", | |
| "University", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Jose State University\" AND t1.year = 2000", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.campusfee", | |
| "FROM", | |
| "csu_fees", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.campus", | |
| "=", | |
| "t2.id", | |
| "WHERE", | |
| "t2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "t1.year", | |
| "=", | |
| "2000" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campusfee", | |
| "from", | |
| "csu_fees", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết học phí của ' Đại học bang San Jose ' trong năm 2000 .", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "campus", | |
| "fee", | |
| "of", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "in", | |
| "year", | |
| "2000", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Jose State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Jose State University\" AND t1.year = 2000", | |
| "query_toks": [ | |
| "SELECT", | |
| "t1.campusfee", | |
| "FROM", | |
| "csu_fees", | |
| "AS", | |
| "t1", | |
| "JOIN", | |
| "campuses", | |
| "AS", | |
| "t2", | |
| "ON", | |
| "t1.campus", | |
| "=", | |
| "t2.id", | |
| "WHERE", | |
| "t2.campus", | |
| "=", | |
| "``", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "''", | |
| "AND", | |
| "t1.year", | |
| "=", | |
| "2000" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "campusfee", | |
| "from", | |
| "csu_fees", | |
| "as", | |
| "t1", | |
| "join", | |
| "campuses", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "campus", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "campus", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Học phí năm 2000 của ' Đại học bang San Jose ' là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "campus", | |
| "fee", | |
| "in", | |
| "the", | |
| "year", | |
| "2000", | |
| "for", | |
| "San", | |
| "Jose", | |
| "State", | |
| "University", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Jose State University\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT count(*) FROM campuses", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "campuses" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "campuses" | |
| ], | |
| "question": "Có tất cả bao nhiêu cơ sở trường học ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "CSU", | |
| "campuses", | |
| "are", | |
| "there", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "csu_1", | |
| "query": "SELECT count(*) FROM campuses", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "campuses" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "campuses" | |
| ], | |
| "question": "Đếm số lượng cơ sở trường học .", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "total", | |
| "number", | |
| "of", | |
| "campuses", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| } | |
| ] |