| [ | |
| { | |
| "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": "Informe el nombre de todos los campus del condado de ''Los Angeles''.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus se encuentran en el condado de ''Los Angeles''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuáles son los nombres de todos los campus ubicados en ''Chico''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Chico\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus se encuentran en ''Chico''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Chico\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Encuentre todos los campus abiertos en 1958.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1958.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuáles son los campus que abrieron en 1958?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1958.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Encuentre el nombre de los campus abiertos antes de 1800.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1800.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus abrieron antes de 1800?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1800.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus se abrió entre 1935 y 1939?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1935.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1939.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus abrieron entre 1935 y 1939?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1935.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1939.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Busque el nombre de los campus que se encuentran en ''Northridge'',''Los Angeles'' o en ''San Francisco'', ''San Francisco''.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Northridge\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": 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": "¿Qué campus se encuentran en ''Northridge'', ''Los Angeles'' o en ''San Francisco'', ''San Francisco''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Northridge\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"San Francisco\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": 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": "¿Cuál es la matrícula del campus de la \"San Jose State University\" en el año 1996?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es la matrícula del campus de ''San Jose State University'' en 1996?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es la matrícula del campus de la \"San Francisco State University\" en el año 1996?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es la matrícula del campus de la \"San Francisco State University\" en 1996?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Encuentre la cantidad de universidades cuya matrícula de campus es mayor que la matrícula de campus medio.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "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": "¿Cuántas universidades tienen una matrícula de campus superior a la media?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "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": "Encuentre la cantidad de universidades cuya matrícula de campus es mayor que la matrícula de campus medio.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "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": "¿Cuántas universidades tienen una matrícula de campus superior a la media?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "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": "¿Qué universidad está en el condado de ''Los Angeles'' y abrió después de 1950?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1950.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus se encuentran en el condado de ''Los Angeles'' y se abrieron después de 1950?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 1950.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué año tiene más títulos conferidos?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 4, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿En qué año se otorgaron más títulos?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 4, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "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": "¿Qué campus tiene más títulos conferidos en todos los tiempos?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 4, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "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": "¿Qué campus tiene más títulos conferidos durante toda su existencia?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 4, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus tiene más facultades en el año 2003?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2003.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus tiene más facultades en 2003?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2003.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Encuentre la matrícula media en un campus de CSU en 1996.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 1996.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es la matrícula media para un campus de CSU en el año de 1996?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 1996.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es la matrícula media en un campus de CSU en 2005?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 2005.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es la matrícula media para un campus de CSU en el año de 2005?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| 2005.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Indique el número total de títulos otorgados entre 1998 y 2002.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 1998.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos títulos se otorgaron entre 1998 y 2002?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 1998.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Para cada campus del condado de ''Orange'', informe la cantidad de títulos otorgados después de 2000.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Orange\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es el número total de títulos otorgados después del 2000 para cada campus del condado de ''Orange''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Orange\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| 2000.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Encuentre los nombres del campus que tiene más facultades en 2002 que todos los campus en el condado de Orange.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Orange\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "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": "¿Cuáles son los nombres de los campus que tienen más facultades en 2002 que el número máximo en el condado de ''Orange''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Orange\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "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": "¿Qué campus tenía más de 400 matriculaciones en total pero más de 200 matriculaciones a tiempo completo en el año 1956?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus comenzó en el año 1956, tiene más de 200 estudiantes de tiempo completo y más de 400 estudiantes inscritos?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos campus hay en el condado de ''Los Angeles''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos campus existen en el condado de ''LA''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Enumere los campus del condado de ''Los Angeles''.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué campus hay en el condado de ''Los Angeles''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Los Angeles\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos títulos se otorgaron en la \"San Jose State University\" en 2000?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos títulos se otorgaron en la \"San Jose State University\" en 2000?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuáles son los títulos conferidos en la \"San Francisco State University\" en 2001?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Qué títulos se otorgaron en la \"San Francisco State University\" en el año 2001?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos profesores hay en total en el año 2002?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos profesores hay en total en el año 2002?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es el número de profesores en el campus \"Long Beach State University\" en 2002?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es el número de profesores de la ''Long Beach State University'' en 2002?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos profesores hay en la \"San Francisco State University\" en el año 2004?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos profesores hay en la \"San Francisco State University\" en 2004?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Enumere los campus que tienen entre 600 y 1000 líneas de profesores en el año 2004.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuáles son los campus que tenían entre 600 y 1000 profesores en 2004?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos profesores hay en la universidad que más titulaciones otorgó en el año 2002?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "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 | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos profesores tenía la universidad que más títulos otorgó en 2002?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "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 | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2002.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos profesores hay en la universidad que más titulaciones otorgó en el año 2001?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "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 | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2001.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos miembros de la facultad hay en la universidad que otorgó el menor número de títulos en 2001?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "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 | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| 2001.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos estudiantes universitarios hay en la \"San Jose State University\" en el año 2004?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos estudiantes universitarios hay en el estado de ''San José''?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es el número de graduados en la \"San Francisco State University\" en el año 2004?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántas personas se graduaron de la Universidad Estatal de San Francisco en 2004?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es la matrícula del campus de la \"San Francisco State University\" en el año 2000?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "En el año 2000, ¿cuál es la matrícula del campus de la \"San Francisco State University\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "Encuentre la matrícula del campus de la \"San Jose State University\" en el año 2000.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es la matrícula del campus en el año 2000 para la \"San Jose State University\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| 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 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuántos campus de CSU hay?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": 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": "¿Cuál es el número total de campus?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| ] |