| [ | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CONTINENTS;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CONTINENTS", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "continents" | |
| ], | |
| "question": "How many continents are there?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "continents", | |
| "are", | |
| "there", | |
| "?" | |
| ], | |
| "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": "car_1", | |
| "query": "SELECT count(*) FROM CONTINENTS;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CONTINENTS", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "continents" | |
| ], | |
| "question": "What is the number of continents?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "continents", | |
| "?" | |
| ], | |
| "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": "car_1", | |
| "query": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.ContId", | |
| ",", | |
| "T1.Continent", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CONTINENTS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ContId", | |
| "=", | |
| "T2.Continent", | |
| "GROUP", | |
| "BY", | |
| "T1.ContId", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "contid", | |
| ",", | |
| "t1", | |
| ".", | |
| "continent", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "continents", | |
| "as", | |
| "t1", | |
| "join", | |
| "countries", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "contid", | |
| "=", | |
| "t2", | |
| ".", | |
| "continent", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "contid" | |
| ], | |
| "question": "How many countries does each continent have? List the continent id, continent name and the number of countries.", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "countries", | |
| "does", | |
| "each", | |
| "continent", | |
| "have", | |
| "?", | |
| "List", | |
| "the", | |
| "continent", | |
| "id", | |
| ",", | |
| "continent", | |
| "name", | |
| "and", | |
| "the", | |
| "number", | |
| "of", | |
| "countries", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.ContId", | |
| ",", | |
| "T1.Continent", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CONTINENTS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ContId", | |
| "=", | |
| "T2.Continent", | |
| "GROUP", | |
| "BY", | |
| "T1.ContId", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "contid", | |
| ",", | |
| "t1", | |
| ".", | |
| "continent", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "continents", | |
| "as", | |
| "t1", | |
| "join", | |
| "countries", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "contid", | |
| "=", | |
| "t2", | |
| ".", | |
| "continent", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "contid" | |
| ], | |
| "question": "For each continent, list its id, name, and how many countries it has?", | |
| "question_toks": [ | |
| "For", | |
| "each", | |
| "continent", | |
| ",", | |
| "list", | |
| "its", | |
| "id", | |
| ",", | |
| "name", | |
| ",", | |
| "and", | |
| "how", | |
| "many", | |
| "countries", | |
| "it", | |
| "has", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM COUNTRIES;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COUNTRIES", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "countries" | |
| ], | |
| "question": "How many countries are listed?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "countries", | |
| "are", | |
| "listed", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM COUNTRIES;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COUNTRIES", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "countries" | |
| ], | |
| "question": "How many countries exist?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "countries", | |
| "exist", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FullName", | |
| ",", | |
| "T1.Id", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "GROUP", | |
| "BY", | |
| "T1.Id", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fullname", | |
| ",", | |
| "t1", | |
| ".", | |
| "id", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "id" | |
| ], | |
| "question": "How many models does each car maker produce? List maker full name, id and the number.", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "models", | |
| "does", | |
| "each", | |
| "car", | |
| "maker", | |
| "produce", | |
| "?", | |
| "List", | |
| "maker", | |
| "full", | |
| "name", | |
| ",", | |
| "id", | |
| "and", | |
| "the", | |
| "number", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FullName", | |
| ",", | |
| "T1.Id", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "GROUP", | |
| "BY", | |
| "T1.Id", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fullname", | |
| ",", | |
| "t1", | |
| ".", | |
| "id", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "id" | |
| ], | |
| "question": "What is the full name of each car maker, along with its id and how many models it produces?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "full", | |
| "name", | |
| "of", | |
| "each", | |
| "car", | |
| "maker", | |
| ",", | |
| "along", | |
| "with", | |
| "its", | |
| "id", | |
| "and", | |
| "how", | |
| "many", | |
| "models", | |
| "it", | |
| "produces", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "ORDER", | |
| "BY", | |
| "T2.horsepower", | |
| "ASC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "horsepower", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Which model of the car has the minimum horsepower?", | |
| "question_toks": [ | |
| "Which", | |
| "model", | |
| "of", | |
| "the", | |
| "car", | |
| "has", | |
| "the", | |
| "minimum", | |
| "horsepower", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "ORDER", | |
| "BY", | |
| "T2.horsepower", | |
| "ASC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "horsepower", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "What is the model of the car with the smallest amount of horsepower?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "model", | |
| "of", | |
| "the", | |
| "car", | |
| "with", | |
| "the", | |
| "smallest", | |
| "amount", | |
| "of", | |
| "horsepower", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "WHERE", | |
| "T2.Weight", | |
| "<", | |
| "(", | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "Weight", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "weight", | |
| "<", | |
| "(", | |
| "select", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| "from", | |
| "cars_data", | |
| ")" | |
| ], | |
| "question": "Find the model of the car whose weight is below the average weight.", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "model", | |
| "of", | |
| "the", | |
| "car", | |
| "whose", | |
| "weight", | |
| "is", | |
| "below", | |
| "the", | |
| "average", | |
| "weight", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| 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": "car_1", | |
| "query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "WHERE", | |
| "T2.Weight", | |
| "<", | |
| "(", | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "Weight", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "weight", | |
| "<", | |
| "(", | |
| "select", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| "from", | |
| "cars_data", | |
| ")" | |
| ], | |
| "question": "What is the model for the car with a weight smaller than the average?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "model", | |
| "for", | |
| "the", | |
| "car", | |
| "with", | |
| "a", | |
| "weight", | |
| "smaller", | |
| "than", | |
| "the", | |
| "average", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| 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": "car_1", | |
| "query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.Maker", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.model", | |
| "=", | |
| "T3.model", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T4", | |
| "ON", | |
| "T3.MakeId", | |
| "=", | |
| "T4.id", | |
| "WHERE", | |
| "T4.year", | |
| "=", | |
| "'1970", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "maker", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "model", | |
| "=", | |
| "t3", | |
| ".", | |
| "model", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t4", | |
| "on", | |
| "t3", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t4", | |
| ".", | |
| "id", | |
| "where", | |
| "t4", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Find the name of the makers that produced some cars in the year of 1970?", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "makers", | |
| "that", | |
| "produced", | |
| "some", | |
| "cars", | |
| "in", | |
| "the", | |
| "year", | |
| "of", | |
| "1970", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"1970\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.Maker", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.model", | |
| "=", | |
| "T3.model", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T4", | |
| "ON", | |
| "T3.MakeId", | |
| "=", | |
| "T4.id", | |
| "WHERE", | |
| "T4.year", | |
| "=", | |
| "'1970", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "maker", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "model", | |
| "=", | |
| "t3", | |
| ".", | |
| "model", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t4", | |
| "on", | |
| "t3", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t4", | |
| ".", | |
| "id", | |
| "where", | |
| "t4", | |
| ".", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the name of the different car makers who produced a car in 1970?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "different", | |
| "car", | |
| "makers", | |
| "who", | |
| "produced", | |
| "a", | |
| "car", | |
| "in", | |
| "1970", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"1970\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Make", | |
| ",", | |
| "T1.Year", | |
| "FROM", | |
| "CARS_DATA", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.MakeId", | |
| "WHERE", | |
| "T1.Year", | |
| "=", | |
| "(", | |
| "SELECT", | |
| "min", | |
| "(", | |
| "YEAR", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| ")", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "make", | |
| ",", | |
| "t1", | |
| ".", | |
| "year", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "(", | |
| "select", | |
| "min", | |
| "(", | |
| "year", | |
| ")", | |
| "from", | |
| "cars_data", | |
| ")" | |
| ], | |
| "question": "Find the make and production time of the cars that were produced in the earliest year?", | |
| "question_toks": [ | |
| "Find", | |
| "the", | |
| "make", | |
| "and", | |
| "production", | |
| "time", | |
| "of", | |
| "the", | |
| "cars", | |
| "that", | |
| "were", | |
| "produced", | |
| "in", | |
| "the", | |
| "earliest", | |
| "year", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| 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": "car_1", | |
| "query": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Make", | |
| ",", | |
| "T1.Year", | |
| "FROM", | |
| "CARS_DATA", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.MakeId", | |
| "WHERE", | |
| "T1.Year", | |
| "=", | |
| "(", | |
| "SELECT", | |
| "min", | |
| "(", | |
| "YEAR", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| ")", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "make", | |
| ",", | |
| "t1", | |
| ".", | |
| "year", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "year", | |
| "=", | |
| "(", | |
| "select", | |
| "min", | |
| "(", | |
| "year", | |
| ")", | |
| "from", | |
| "cars_data", | |
| ")" | |
| ], | |
| "question": "What is the maker of the carr produced in the earliest year and what year was it?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "maker", | |
| "of", | |
| "the", | |
| "carr", | |
| "produced", | |
| "in", | |
| "the", | |
| "earliest", | |
| "year", | |
| "and", | |
| "what", | |
| "year", | |
| "was", | |
| "it", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| 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": "car_1", | |
| "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.model", | |
| "FROM", | |
| "MODEL_LIST", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.model", | |
| "=", | |
| "T2.model", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.MakeId", | |
| "=", | |
| "T3.id", | |
| "WHERE", | |
| "T3.year", | |
| ">", | |
| "1980", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "model_list", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "model", | |
| "=", | |
| "t2", | |
| ".", | |
| "model", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t3", | |
| ".", | |
| "id", | |
| "where", | |
| "t3", | |
| ".", | |
| "year", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Which distinct car models are the produced after 1980?", | |
| "question_toks": [ | |
| "Which", | |
| "distinct", | |
| "car", | |
| "models", | |
| "are", | |
| "the", | |
| "produced", | |
| "after", | |
| "1980", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1980, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.model", | |
| "FROM", | |
| "MODEL_LIST", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.model", | |
| "=", | |
| "T2.model", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.MakeId", | |
| "=", | |
| "T3.id", | |
| "WHERE", | |
| "T3.year", | |
| ">", | |
| "1980", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "model_list", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "model", | |
| "=", | |
| "t2", | |
| ".", | |
| "model", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t3", | |
| ".", | |
| "id", | |
| "where", | |
| "t3", | |
| ".", | |
| "year", | |
| ">", | |
| "value" | |
| ], | |
| "question": "What are the different models for the cards produced after 1980?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "different", | |
| "models", | |
| "for", | |
| "the", | |
| "cards", | |
| "produced", | |
| "after", | |
| "1980", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1980, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Continent", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CONTINENTS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ContId", | |
| "=", | |
| "T2.continent", | |
| "JOIN", | |
| "car_makers", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.CountryId", | |
| "=", | |
| "T3.Country", | |
| "GROUP", | |
| "BY", | |
| "T1.Continent", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "continent", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "continents", | |
| "as", | |
| "t1", | |
| "join", | |
| "countries", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "contid", | |
| "=", | |
| "t2", | |
| ".", | |
| "continent", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t3", | |
| ".", | |
| "country", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "continent" | |
| ], | |
| "question": "How many car makers are there in each continents? List the continent name and the count.", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "car", | |
| "makers", | |
| "are", | |
| "there", | |
| "in", | |
| "each", | |
| "continents", | |
| "?", | |
| "List", | |
| "the", | |
| "continent", | |
| "name", | |
| "and", | |
| "the", | |
| "count", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Continent", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CONTINENTS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ContId", | |
| "=", | |
| "T2.continent", | |
| "JOIN", | |
| "car_makers", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.CountryId", | |
| "=", | |
| "T3.Country", | |
| "GROUP", | |
| "BY", | |
| "T1.Continent", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "continent", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "continents", | |
| "as", | |
| "t1", | |
| "join", | |
| "countries", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "contid", | |
| "=", | |
| "t2", | |
| ".", | |
| "continent", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t3", | |
| ".", | |
| "country", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "continent" | |
| ], | |
| "question": "What is the name of each continent and how many car makers are there in each one?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "name", | |
| "of", | |
| "each", | |
| "continent", | |
| "and", | |
| "how", | |
| "many", | |
| "car", | |
| "makers", | |
| "are", | |
| "there", | |
| "in", | |
| "each", | |
| "one", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.CountryName", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Country", | |
| "=", | |
| "T2.CountryId", | |
| "GROUP", | |
| "BY", | |
| "T1.Country", | |
| "ORDER", | |
| "BY", | |
| "Count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "countryname", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "countries", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "country", | |
| "=", | |
| "t2", | |
| ".", | |
| "countryid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "country", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Which of the countries has the most car makers? List the country name.", | |
| "question_toks": [ | |
| "Which", | |
| "of", | |
| "the", | |
| "countries", | |
| "has", | |
| "the", | |
| "most", | |
| "car", | |
| "makers", | |
| "?", | |
| "List", | |
| "the", | |
| "country", | |
| "name", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.CountryName", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Country", | |
| "=", | |
| "T2.CountryId", | |
| "GROUP", | |
| "BY", | |
| "T1.Country", | |
| "ORDER", | |
| "BY", | |
| "Count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "countryname", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "countries", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "country", | |
| "=", | |
| "t2", | |
| ".", | |
| "countryid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "country", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "What is the name of the country with the most car makers?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "country", | |
| "with", | |
| "the", | |
| "most", | |
| "car", | |
| "makers", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;", | |
| "query_toks": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "t2.fullname", | |
| "from", | |
| "model_list", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1.maker", | |
| "=", | |
| "t2.id", | |
| "group", | |
| "by", | |
| "t2.id", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "t2", | |
| ".", | |
| "fullname", | |
| "from", | |
| "model_list", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "maker", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "id" | |
| ], | |
| "question": "How many car models are produced by each maker ? Only list the count and the maker full name .", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "car", | |
| "models", | |
| "are", | |
| "produced", | |
| "by", | |
| "each", | |
| "maker", | |
| "?", | |
| "Only", | |
| "list", | |
| "the", | |
| "count", | |
| "and", | |
| "the", | |
| "maker", | |
| "full", | |
| "name", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT Count(*) , T2.FullName , T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id;", | |
| "query_toks": [ | |
| "SELECT", | |
| "Count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "T2.FullName", | |
| ",", | |
| "T2.id", | |
| "FROM", | |
| "MODEL_LIST", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Maker", | |
| "=", | |
| "T2.Id", | |
| "GROUP", | |
| "BY", | |
| "T2.id", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "t2", | |
| ".", | |
| "fullname", | |
| ",", | |
| "t2", | |
| ".", | |
| "id", | |
| "from", | |
| "model_list", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "maker", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "id" | |
| ], | |
| "question": "What is the number of car models that are produced by each maker and what is the id and full name of each maker?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "car", | |
| "models", | |
| "that", | |
| "are", | |
| "produced", | |
| "by", | |
| "each", | |
| "maker", | |
| "and", | |
| "what", | |
| "is", | |
| "the", | |
| "id", | |
| "and", | |
| "full", | |
| "name", | |
| "of", | |
| "each", | |
| "maker", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Accelerate", | |
| "FROM", | |
| "CARS_DATA", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.MakeId", | |
| "WHERE", | |
| "T2.Make", | |
| "=", | |
| "'amc", | |
| "hornet", | |
| "sportabout", | |
| "(", | |
| "sw", | |
| ")", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "accelerate", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "where", | |
| "t2", | |
| ".", | |
| "make", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the accelerate of the car make amc hornet sportabout (sw)?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "accelerate", | |
| "of", | |
| "the", | |
| "car", | |
| "make", | |
| "amc", | |
| "hornet", | |
| "sportabout", | |
| "(", | |
| "sw", | |
| ")", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"amc hornet sportabout (sw)\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Accelerate", | |
| "FROM", | |
| "CARS_DATA", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.MakeId", | |
| "WHERE", | |
| "T2.Make", | |
| "=", | |
| "'amc", | |
| "hornet", | |
| "sportabout", | |
| "(", | |
| "sw", | |
| ")", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "accelerate", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "where", | |
| "t2", | |
| ".", | |
| "make", | |
| "=", | |
| "value" | |
| ], | |
| "question": "How much does the car accelerate that makes amc hornet sportabout (sw)?", | |
| "question_toks": [ | |
| "How", | |
| "much", | |
| "does", | |
| "the", | |
| "car", | |
| "accelerate", | |
| "that", | |
| "makes", | |
| "amc", | |
| "hornet", | |
| "sportabout", | |
| "(", | |
| "sw", | |
| ")", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"amc hornet sportabout (sw)\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Country", | |
| "=", | |
| "T2.CountryId", | |
| "WHERE", | |
| "T2.CountryName", | |
| "=", | |
| "'france", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "countries", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "country", | |
| "=", | |
| "t2", | |
| ".", | |
| "countryid", | |
| "where", | |
| "t2", | |
| ".", | |
| "countryname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "How many car makers are there in france?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "car", | |
| "makers", | |
| "are", | |
| "there", | |
| "in", | |
| "france", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"france\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Country", | |
| "=", | |
| "T2.CountryId", | |
| "WHERE", | |
| "T2.CountryName", | |
| "=", | |
| "'france", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "countries", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "country", | |
| "=", | |
| "t2", | |
| ".", | |
| "countryid", | |
| "where", | |
| "t2", | |
| ".", | |
| "countryname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the number of makers of care in France?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "makers", | |
| "of", | |
| "care", | |
| "in", | |
| "France", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"france\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "MODEL_LIST", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Maker", | |
| "=", | |
| "T2.Id", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.Country", | |
| "=", | |
| "T3.CountryId", | |
| "WHERE", | |
| "T3.CountryName", | |
| "=", | |
| "'usa", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "model_list", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "maker", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "join", | |
| "countries", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "country", | |
| "=", | |
| "t3", | |
| ".", | |
| "countryid", | |
| "where", | |
| "t3", | |
| ".", | |
| "countryname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "How many car models are produced in the usa?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "car", | |
| "models", | |
| "are", | |
| "produced", | |
| "in", | |
| "the", | |
| "usa", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"usa\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "MODEL_LIST", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Maker", | |
| "=", | |
| "T2.Id", | |
| "JOIN", | |
| "COUNTRIES", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.Country", | |
| "=", | |
| "T3.CountryId", | |
| "WHERE", | |
| "T3.CountryName", | |
| "=", | |
| "'usa", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "model_list", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "maker", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "join", | |
| "countries", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "country", | |
| "=", | |
| "t3", | |
| ".", | |
| "countryid", | |
| "where", | |
| "t3", | |
| ".", | |
| "countryname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the count of the car models produced in the United States?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "count", | |
| "of", | |
| "the", | |
| "car", | |
| "models", | |
| "produced", | |
| "in", | |
| "the", | |
| "United", | |
| "States", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"usa\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "mpg", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "Cylinders", | |
| "=", | |
| "4", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "mpg", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "miles", | |
| "per", | |
| "gallon", | |
| "(", | |
| "mpg", | |
| ")", | |
| "of", | |
| "the", | |
| "cars", | |
| "with", | |
| "4", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 4, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "mpg", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "Cylinders", | |
| "=", | |
| "4", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "mpg", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the average miles per gallon of all the cards with 4 cylinders?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "miles", | |
| "per", | |
| "gallon", | |
| "of", | |
| "all", | |
| "the", | |
| "cards", | |
| "with", | |
| "4", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 4, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", | |
| "query_toks": [ | |
| "select", | |
| "min", | |
| "(", | |
| "weight", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "8", | |
| "and", | |
| "year", | |
| "=", | |
| "1974" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "min", | |
| "(", | |
| "weight", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "value", | |
| "and", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "smallest", | |
| "weight", | |
| "of", | |
| "the", | |
| "car", | |
| "produced", | |
| "with", | |
| "8", | |
| "cylinders", | |
| "on", | |
| "1974", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 8, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1974, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", | |
| "query_toks": [ | |
| "select", | |
| "min", | |
| "(", | |
| "weight", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "8", | |
| "and", | |
| "year", | |
| "=", | |
| "1974" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "min", | |
| "(", | |
| "weight", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "value", | |
| "and", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "minimum", | |
| "weight", | |
| "of", | |
| "the", | |
| "car", | |
| "with", | |
| "8", | |
| "cylinders", | |
| "produced", | |
| "in", | |
| "1974", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 8, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1974, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT Maker , Model FROM MODEL_LIST;", | |
| "query_toks": [ | |
| "SELECT", | |
| "Maker", | |
| ",", | |
| "Model", | |
| "FROM", | |
| "MODEL_LIST", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "maker", | |
| ",", | |
| "model", | |
| "from", | |
| "model_list" | |
| ], | |
| "question": "What are all the makers and models?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "all", | |
| "the", | |
| "makers", | |
| "and", | |
| "models", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT Maker , Model FROM MODEL_LIST;", | |
| "query_toks": [ | |
| "SELECT", | |
| "Maker", | |
| ",", | |
| "Model", | |
| "FROM", | |
| "MODEL_LIST", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "maker", | |
| ",", | |
| "model", | |
| "from", | |
| "model_list" | |
| ], | |
| "question": "What are the makers and models?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "makers", | |
| "and", | |
| "models", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.CountryName", | |
| ",", | |
| "T1.CountryId", | |
| "FROM", | |
| "COUNTRIES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CountryId", | |
| "=", | |
| "T2.Country", | |
| "GROUP", | |
| "BY", | |
| "T1.CountryId", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "countryname", | |
| ",", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What are the countries having at least one car maker? List name and id.", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "countries", | |
| "having", | |
| "at", | |
| "least", | |
| "one", | |
| "car", | |
| "maker", | |
| "?", | |
| "List", | |
| "name", | |
| "and", | |
| "id", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 1, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.CountryName", | |
| ",", | |
| "T1.CountryId", | |
| "FROM", | |
| "COUNTRIES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CountryId", | |
| "=", | |
| "T2.Country", | |
| "GROUP", | |
| "BY", | |
| "T1.CountryId", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "countryname", | |
| ",", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What are the names and ids of all countries with at least one car maker?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "and", | |
| "ids", | |
| "of", | |
| "all", | |
| "countries", | |
| "with", | |
| "at", | |
| "least", | |
| "one", | |
| "car", | |
| "maker", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 1, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "horsepower", | |
| ">", | |
| "150", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "horsepower", | |
| ">", | |
| "value" | |
| ], | |
| "question": "What is the number of the cars with horsepower more than 150?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "the", | |
| "cars", | |
| "with", | |
| "horsepower", | |
| "more", | |
| "than", | |
| "150", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| 150, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "horsepower", | |
| ">", | |
| "150", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "horsepower", | |
| ">", | |
| "value" | |
| ], | |
| "question": "What is the number of cars with a horsepower greater than 150?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "cars", | |
| "with", | |
| "a", | |
| "horsepower", | |
| "greater", | |
| "than", | |
| "150", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| 150, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "Weight", | |
| ")", | |
| ",", | |
| "YEAR", | |
| "FROM", | |
| "CARS_DATA", | |
| "GROUP", | |
| "BY", | |
| "YEAR", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "year", | |
| "from", | |
| "cars_data", | |
| "group", | |
| "by", | |
| "year" | |
| ], | |
| "question": "What is the average weight of cars each year?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "weight", | |
| "of", | |
| "cars", | |
| "each", | |
| "year", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "Weight", | |
| ")", | |
| ",", | |
| "YEAR", | |
| "FROM", | |
| "CARS_DATA", | |
| "GROUP", | |
| "BY", | |
| "YEAR", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "weight", | |
| ")", | |
| ",", | |
| "year", | |
| "from", | |
| "cars_data", | |
| "group", | |
| "by", | |
| "year" | |
| ], | |
| "question": "What is the average weight and year for each year?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "weight", | |
| "and", | |
| "year", | |
| "for", | |
| "each", | |
| "year", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.CountryName", | |
| "FROM", | |
| "COUNTRIES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CONTINENTS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Continent", | |
| "=", | |
| "T2.ContId", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.CountryId", | |
| "=", | |
| "T3.Country", | |
| "WHERE", | |
| "T2.Continent", | |
| "=", | |
| "'europe", | |
| "'", | |
| "GROUP", | |
| "BY", | |
| "T1.CountryName", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "3", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "continents", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "continent", | |
| "=", | |
| "t2", | |
| ".", | |
| "contid", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t3", | |
| ".", | |
| "country", | |
| "where", | |
| "t2", | |
| ".", | |
| "continent", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Which countries in europe have at least 3 car manufacturers?", | |
| "question_toks": [ | |
| "Which", | |
| "countries", | |
| "in", | |
| "europe", | |
| "have", | |
| "at", | |
| "least", | |
| "3", | |
| "car", | |
| "manufacturers", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"europe\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.CountryName", | |
| "FROM", | |
| "COUNTRIES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CONTINENTS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Continent", | |
| "=", | |
| "T2.ContId", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.CountryId", | |
| "=", | |
| "T3.Country", | |
| "WHERE", | |
| "T2.Continent", | |
| "=", | |
| "'europe", | |
| "'", | |
| "GROUP", | |
| "BY", | |
| "T1.CountryName", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "3", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "continents", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "continent", | |
| "=", | |
| "t2", | |
| ".", | |
| "contid", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t3", | |
| ".", | |
| "country", | |
| "where", | |
| "t2", | |
| ".", | |
| "continent", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What are the names of all European countries with at least 3 manufacturers?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "all", | |
| "European", | |
| "countries", | |
| "with", | |
| "at", | |
| "least", | |
| "3", | |
| "manufacturers", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"europe\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.horsepower", | |
| ",", | |
| "T1.Make", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "WHERE", | |
| "T2.cylinders", | |
| "=", | |
| "3", | |
| "ORDER", | |
| "BY", | |
| "T2.horsepower", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "horsepower", | |
| ",", | |
| "t1", | |
| ".", | |
| "make", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "cylinders", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "horsepower", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "What is the maximum horsepower and the make of the car models with 3 cylinders?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "maximum", | |
| "horsepower", | |
| "and", | |
| "the", | |
| "make", | |
| "of", | |
| "the", | |
| "car", | |
| "models", | |
| "with", | |
| "3", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.horsepower", | |
| ",", | |
| "T1.Make", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "WHERE", | |
| "T2.cylinders", | |
| "=", | |
| "3", | |
| "ORDER", | |
| "BY", | |
| "T2.horsepower", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "horsepower", | |
| ",", | |
| "t1", | |
| ".", | |
| "make", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "cylinders", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "horsepower", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "largest", | |
| "amount", | |
| "of", | |
| "horsepower", | |
| "for", | |
| "the", | |
| "models", | |
| "with", | |
| "3", | |
| "cylinders", | |
| "and", | |
| "what", | |
| "make", | |
| "is", | |
| "it", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "ORDER", | |
| "BY", | |
| "T2.mpg", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "mpg", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", | |
| "question_toks": [ | |
| "Which", | |
| "model", | |
| "saves", | |
| "the", | |
| "most", | |
| "gasoline", | |
| "?", | |
| "That", | |
| "is", | |
| "to", | |
| "say", | |
| ",", | |
| "have", | |
| "the", | |
| "maximum", | |
| "miles", | |
| "per", | |
| "gallon", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1;", | |
| "query_toks": [ | |
| "select", | |
| "t1.model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1.makeid", | |
| "=", | |
| "t2.id", | |
| "order", | |
| "by", | |
| "t2.mpg", | |
| "desc", | |
| "limit", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "mpg", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "What is the car model with the highest mpg ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "car", | |
| "model", | |
| "with", | |
| "the", | |
| "highest", | |
| "mpg", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "horsepower", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "YEAR", | |
| "<", | |
| "1980", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "horsepower", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "year", | |
| "<", | |
| "value" | |
| ], | |
| "question": "What is the average horsepower of the cars before 1980?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "horsepower", | |
| "of", | |
| "the", | |
| "cars", | |
| "before", | |
| "1980", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1980, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select avg(horsepower) from cars_data where year < 1980;", | |
| "query_toks": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "horsepower", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "year", | |
| "<", | |
| "1980", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "horsepower", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "year", | |
| "<", | |
| "value" | |
| ], | |
| "question": "What is the average horsepower for all cars produced before 1980 ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "horsepower", | |
| "for", | |
| "all", | |
| "cars", | |
| "produced", | |
| "before", | |
| "1980", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1980, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "T2.edispl", | |
| ")", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "WHERE", | |
| "T1.Model", | |
| "=", | |
| "'volvo", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "edispl", | |
| ")", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "model", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the average edispl of the cars of model volvo?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "edispl", | |
| "of", | |
| "the", | |
| "cars", | |
| "of", | |
| "model", | |
| "volvo", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"volvo\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "T2.edispl", | |
| ")", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "WHERE", | |
| "T1.Model", | |
| "=", | |
| "'volvo", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "edispl", | |
| ")", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t1", | |
| ".", | |
| "model", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the average edispl for all volvos?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "edispl", | |
| "for", | |
| "all", | |
| "volvos", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"volvo\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "Accelerate", | |
| ")", | |
| ",", | |
| "Cylinders", | |
| "FROM", | |
| "CARS_DATA", | |
| "GROUP", | |
| "BY", | |
| "Cylinders", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "accelerate", | |
| ")", | |
| ",", | |
| "cylinders", | |
| "from", | |
| "cars_data", | |
| "group", | |
| "by", | |
| "cylinders" | |
| ], | |
| "question": "What is the maximum accelerate for different number of cylinders?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "maximum", | |
| "accelerate", | |
| "for", | |
| "different", | |
| "number", | |
| "of", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "Accelerate", | |
| ")", | |
| ",", | |
| "Cylinders", | |
| "FROM", | |
| "CARS_DATA", | |
| "GROUP", | |
| "BY", | |
| "Cylinders", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "accelerate", | |
| ")", | |
| ",", | |
| "cylinders", | |
| "from", | |
| "cars_data", | |
| "group", | |
| "by", | |
| "cylinders" | |
| ], | |
| "question": "What is the maximum accelerate for all the different cylinders?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "maximum", | |
| "accelerate", | |
| "for", | |
| "all", | |
| "the", | |
| "different", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "Model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "GROUP", | |
| "BY", | |
| "Model", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "model", | |
| "from", | |
| "car_names", | |
| "group", | |
| "by", | |
| "model", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Which model has the most version(make) of cars?", | |
| "question_toks": [ | |
| "Which", | |
| "model", | |
| "has", | |
| "the", | |
| "most", | |
| "version", | |
| "(", | |
| "make", | |
| ")", | |
| "of", | |
| "cars", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "Model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "GROUP", | |
| "BY", | |
| "Model", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "model", | |
| "from", | |
| "car_names", | |
| "group", | |
| "by", | |
| "model", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "What model has the most different versions?", | |
| "question_toks": [ | |
| "What", | |
| "model", | |
| "has", | |
| "the", | |
| "most", | |
| "different", | |
| "versions", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "Cylinders", | |
| ">", | |
| "4", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| ">", | |
| "value" | |
| ], | |
| "question": "How many cars have more than 4 cylinders?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "cars", | |
| "have", | |
| "more", | |
| "than", | |
| "4", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 4, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "Cylinders", | |
| ">", | |
| "4", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| ">", | |
| "value" | |
| ], | |
| "question": "What is the number of cars with more than 4 cylinders?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "cars", | |
| "with", | |
| "more", | |
| "than", | |
| "4", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 4, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "1980", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "how many cars were produced in 1980?", | |
| "question_toks": [ | |
| "how", | |
| "many", | |
| "cars", | |
| "were", | |
| "produced", | |
| "in", | |
| "1980", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1980, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "YEAR", | |
| "=", | |
| "1980", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "In 1980, how many cars were made?", | |
| "question_toks": [ | |
| "In", | |
| "1980", | |
| ",", | |
| "how", | |
| "many", | |
| "cars", | |
| "were", | |
| "made", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1980, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "WHERE", | |
| "T1.FullName", | |
| "=", | |
| "'American", | |
| "Motor", | |
| "Company", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "where", | |
| "t1", | |
| ".", | |
| "fullname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "How many car models were produced by the maker with full name American Motor Company?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "car", | |
| "models", | |
| "were", | |
| "produced", | |
| "by", | |
| "the", | |
| "maker", | |
| "with", | |
| "full", | |
| "name", | |
| "American", | |
| "Motor", | |
| "Company", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"American Motor Company\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "WHERE", | |
| "T1.FullName", | |
| "=", | |
| "'American", | |
| "Motor", | |
| "Company", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "where", | |
| "t1", | |
| ".", | |
| "fullname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What is the number of car models created by the car maker American Motor Company?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "car", | |
| "models", | |
| "created", | |
| "by", | |
| "the", | |
| "car", | |
| "maker", | |
| "American", | |
| "Motor", | |
| "Company", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"American Motor Company\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FullName", | |
| ",", | |
| "T1.Id", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "GROUP", | |
| "BY", | |
| "T1.Id", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "3", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fullname", | |
| ",", | |
| "t1", | |
| ".", | |
| "id", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "id", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Which makers designed more than 3 car models? List full name and the id.", | |
| "question_toks": [ | |
| "Which", | |
| "makers", | |
| "designed", | |
| "more", | |
| "than", | |
| "3", | |
| "car", | |
| "models", | |
| "?", | |
| "List", | |
| "full", | |
| "name", | |
| "and", | |
| "the", | |
| "id", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FullName", | |
| ",", | |
| "T1.Id", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "GROUP", | |
| "BY", | |
| "T1.Id", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "3", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fullname", | |
| ",", | |
| "t1", | |
| ".", | |
| "id", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "id", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value" | |
| ], | |
| "question": "What are the names and ids of all makers with more than 3 models?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "and", | |
| "ids", | |
| "of", | |
| "all", | |
| "makers", | |
| "with", | |
| "more", | |
| "than", | |
| "3", | |
| "models", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T2.Model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Model", | |
| "=", | |
| "T2.Model", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.Maker", | |
| "=", | |
| "T3.Id", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T4", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T4.Id", | |
| "WHERE", | |
| "T3.FullName", | |
| "=", | |
| "'General", | |
| "Motors", | |
| "'", | |
| "OR", | |
| "T4.weight", | |
| ">", | |
| "3500", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t2", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "model", | |
| "=", | |
| "t2", | |
| ".", | |
| "model", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "maker", | |
| "=", | |
| "t3", | |
| ".", | |
| "id", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t4", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t4", | |
| ".", | |
| "id", | |
| "where", | |
| "t3", | |
| ".", | |
| "fullname", | |
| "=", | |
| "value", | |
| "or", | |
| "t4", | |
| ".", | |
| "weight", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", | |
| "question_toks": [ | |
| "Which", | |
| "distinctive", | |
| "models", | |
| "are", | |
| "produced", | |
| "by", | |
| "maker", | |
| "with", | |
| "the", | |
| "full", | |
| "name", | |
| "General", | |
| "Motors", | |
| "or", | |
| "weighing", | |
| "more", | |
| "than", | |
| "3500", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"General Motors\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| 3500, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T2.Model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Model", | |
| "=", | |
| "T2.Model", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.Maker", | |
| "=", | |
| "T3.Id", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T4", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T4.Id", | |
| "WHERE", | |
| "T3.FullName", | |
| "=", | |
| "'General", | |
| "Motors", | |
| "'", | |
| "OR", | |
| "T4.weight", | |
| ">", | |
| "3500", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t2", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "model", | |
| "=", | |
| "t2", | |
| ".", | |
| "model", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "maker", | |
| "=", | |
| "t3", | |
| ".", | |
| "id", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t4", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t4", | |
| ".", | |
| "id", | |
| "where", | |
| "t3", | |
| ".", | |
| "fullname", | |
| "=", | |
| "value", | |
| "or", | |
| "t4", | |
| ".", | |
| "weight", | |
| ">", | |
| "value" | |
| ], | |
| "question": "What are the different models created by either the car maker General Motors or weighed more than 3500?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "different", | |
| "models", | |
| "created", | |
| "by", | |
| "either", | |
| "the", | |
| "car", | |
| "maker", | |
| "General", | |
| "Motors", | |
| "or", | |
| "weighed", | |
| "more", | |
| "than", | |
| "3500", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"General Motors\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| 3500, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select distinct year from cars_data where weight between 3000 and 4000;", | |
| "query_toks": [ | |
| "select", | |
| "distinct", | |
| "year", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "weight", | |
| "between", | |
| "3000", | |
| "and", | |
| "4000", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "year", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "weight", | |
| "between", | |
| "value", | |
| "and", | |
| "value" | |
| ], | |
| "question": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?", | |
| "question_toks": [ | |
| "In", | |
| "which", | |
| "years", | |
| "cars", | |
| "were", | |
| "produced", | |
| "weighing", | |
| "no", | |
| "less", | |
| "than", | |
| "3000", | |
| "and", | |
| "no", | |
| "more", | |
| "than", | |
| "4000", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| 3000, | |
| 4000 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select distinct year from cars_data where weight between 3000 and 4000;", | |
| "query_toks": [ | |
| "select", | |
| "distinct", | |
| "year", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "weight", | |
| "between", | |
| "3000", | |
| "and", | |
| "4000", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "year", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "weight", | |
| "between", | |
| "value", | |
| "and", | |
| "value" | |
| ], | |
| "question": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "different", | |
| "years", | |
| "in", | |
| "which", | |
| "there", | |
| "were", | |
| "cars", | |
| "produced", | |
| "that", | |
| "weighed", | |
| "less", | |
| "than", | |
| "4000", | |
| "and", | |
| "also", | |
| "cars", | |
| "that", | |
| "weighted", | |
| "more", | |
| "than", | |
| "3000", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| 3000, | |
| 4000 | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.horsepower", | |
| "FROM", | |
| "CARS_DATA", | |
| "AS", | |
| "T1", | |
| "ORDER", | |
| "BY", | |
| "T1.accelerate", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "horsepower", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "accelerate", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "What is the horsepower of the car with the largest accelerate?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "horsepower", | |
| "of", | |
| "the", | |
| "car", | |
| "with", | |
| "the", | |
| "largest", | |
| "accelerate", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.horsepower", | |
| "FROM", | |
| "CARS_DATA", | |
| "AS", | |
| "T1", | |
| "ORDER", | |
| "BY", | |
| "T1.accelerate", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "horsepower", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "accelerate", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "What is the horsepower of the car with the greatest accelerate?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "horsepower", | |
| "of", | |
| "the", | |
| "car", | |
| "with", | |
| "the", | |
| "greatest", | |
| "accelerate", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.cylinders", | |
| "FROM", | |
| "CARS_DATA", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.MakeId", | |
| "WHERE", | |
| "T2.Model", | |
| "=", | |
| "'volvo", | |
| "'", | |
| "ORDER", | |
| "BY", | |
| "T1.accelerate", | |
| "ASC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "cylinders", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "where", | |
| "t2", | |
| ".", | |
| "model", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "accelerate", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "For model volvo, how many cylinders does the car with the least accelerate have?", | |
| "question_toks": [ | |
| "For", | |
| "model", | |
| "volvo", | |
| ",", | |
| "how", | |
| "many", | |
| "cylinders", | |
| "does", | |
| "the", | |
| "car", | |
| "with", | |
| "the", | |
| "least", | |
| "accelerate", | |
| "have", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"volvo\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.cylinders", | |
| "FROM", | |
| "CARS_DATA", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.MakeId", | |
| "WHERE", | |
| "T2.Model", | |
| "=", | |
| "'volvo", | |
| "'", | |
| "ORDER", | |
| "BY", | |
| "T1.accelerate", | |
| "ASC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "cylinders", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "where", | |
| "t2", | |
| ".", | |
| "model", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "accelerate", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "For a volvo model, how many cylinders does the version with least accelerate have?", | |
| "question_toks": [ | |
| "For", | |
| "a", | |
| "volvo", | |
| "model", | |
| ",", | |
| "how", | |
| "many", | |
| "cylinders", | |
| "does", | |
| "the", | |
| "version", | |
| "with", | |
| "least", | |
| "accelerate", | |
| "have", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"volvo\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "Accelerate", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "Accelerate", | |
| "FROM", | |
| "CARS_DATA", | |
| "ORDER", | |
| "BY", | |
| "Horsepower", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ")", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "accelerate", | |
| ">", | |
| "(", | |
| "select", | |
| "accelerate", | |
| "from", | |
| "cars_data", | |
| "order", | |
| "by", | |
| "horsepower", | |
| "desc", | |
| "limit", | |
| "value", | |
| ")" | |
| ], | |
| "question": "How many cars have a larger accelerate than the car with the largest horsepower?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "cars", | |
| "have", | |
| "a", | |
| "larger", | |
| "accelerate", | |
| "than", | |
| "the", | |
| "car", | |
| "with", | |
| "the", | |
| "largest", | |
| "horsepower", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "Accelerate", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "Accelerate", | |
| "FROM", | |
| "CARS_DATA", | |
| "ORDER", | |
| "BY", | |
| "Horsepower", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ")", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "accelerate", | |
| ">", | |
| "(", | |
| "select", | |
| "accelerate", | |
| "from", | |
| "cars_data", | |
| "order", | |
| "by", | |
| "horsepower", | |
| "desc", | |
| "limit", | |
| "value", | |
| ")" | |
| ], | |
| "question": "What is the number of cars with a greater accelerate than the one with the most horsepower?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "cars", | |
| "with", | |
| "a", | |
| "greater", | |
| "accelerate", | |
| "than", | |
| "the", | |
| "one", | |
| "with", | |
| "the", | |
| "most", | |
| "horsepower", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", | |
| "query_toks": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1.countryid", | |
| "=", | |
| "t2.country", | |
| "group", | |
| "by", | |
| "t1.countryid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value" | |
| ], | |
| "question": "How many countries has more than 2 car makers ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "countries", | |
| "has", | |
| "more", | |
| "than", | |
| "2", | |
| "car", | |
| "makers", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", | |
| "query_toks": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1.countryid", | |
| "=", | |
| "t2.country", | |
| "group", | |
| "by", | |
| "t1.countryid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value" | |
| ], | |
| "question": "What is the number of countries with more than 2 car makers ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "countries", | |
| "with", | |
| "more", | |
| "than", | |
| "2", | |
| "car", | |
| "makers", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "Cylinders", | |
| ">", | |
| "6", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| ">", | |
| "value" | |
| ], | |
| "question": "How many cars has over 6 cylinders?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "cars", | |
| "has", | |
| "over", | |
| "6", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 6, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| "WHERE", | |
| "Cylinders", | |
| ">", | |
| "6", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| ">", | |
| "value" | |
| ], | |
| "question": "What is the number of carsw ith over 6 cylinders?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "number", | |
| "of", | |
| "carsw", | |
| "ith", | |
| "over", | |
| "6", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 6, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "WHERE", | |
| "T2.Cylinders", | |
| "=", | |
| "4", | |
| "ORDER", | |
| "BY", | |
| "T2.horsepower", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "cylinders", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "horsepower", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "For the cars with 4 cylinders, which model has the largest horsepower?", | |
| "question_toks": [ | |
| "For", | |
| "the", | |
| "cars", | |
| "with", | |
| "4", | |
| "cylinders", | |
| ",", | |
| "which", | |
| "model", | |
| "has", | |
| "the", | |
| "largest", | |
| "horsepower", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 4, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Model", | |
| "FROM", | |
| "CAR_NAMES", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MakeId", | |
| "=", | |
| "T2.Id", | |
| "WHERE", | |
| "T2.Cylinders", | |
| "=", | |
| "4", | |
| "ORDER", | |
| "BY", | |
| "T2.horsepower", | |
| "DESC", | |
| "LIMIT", | |
| "1", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "car_names", | |
| "as", | |
| "t1", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "id", | |
| "where", | |
| "t2", | |
| ".", | |
| "cylinders", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "horsepower", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "For all of the 4 cylinder cars, which model has the most horsepower?", | |
| "question_toks": [ | |
| "For", | |
| "all", | |
| "of", | |
| "the", | |
| "4", | |
| "cylinder", | |
| "cars", | |
| ",", | |
| "which", | |
| "model", | |
| "has", | |
| "the", | |
| "most", | |
| "horsepower", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 4, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.MakeId", | |
| ",", | |
| "T2.Make", | |
| "FROM", | |
| "CARS_DATA", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.MakeId", | |
| "WHERE", | |
| "T1.Horsepower", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "min", | |
| "(", | |
| "Horsepower", | |
| ")", | |
| "FROM", | |
| "CARS_DATA", | |
| ")", | |
| "AND", | |
| "T1.Cylinders", | |
| "<", | |
| "=", | |
| "3", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "makeid", | |
| ",", | |
| "t2", | |
| ".", | |
| "make", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "horsepower", | |
| ">", | |
| "(", | |
| "select", | |
| "min", | |
| "(", | |
| "horsepower", | |
| ")", | |
| "from", | |
| "cars_data", | |
| ")", | |
| "and", | |
| "t1", | |
| ".", | |
| "cylinders", | |
| "<", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", | |
| "question_toks": [ | |
| "Among", | |
| "the", | |
| "cars", | |
| "with", | |
| "more", | |
| "than", | |
| "lowest", | |
| "horsepower", | |
| ",", | |
| "which", | |
| "ones", | |
| "do", | |
| "not", | |
| "have", | |
| "more", | |
| "than", | |
| "3", | |
| "cylinders", | |
| "?", | |
| "List", | |
| "the", | |
| "car", | |
| "makeid", | |
| "and", | |
| "make", | |
| "name", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders < 4;", | |
| "query_toks": [ | |
| "select", | |
| "t2.makeid", | |
| ",", | |
| "t2.make", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1.id", | |
| "=", | |
| "t2.makeid", | |
| "where", | |
| "t1.horsepower", | |
| ">", | |
| "(", | |
| "select", | |
| "min", | |
| "(", | |
| "horsepower", | |
| ")", | |
| "from", | |
| "cars_data", | |
| ")", | |
| "and", | |
| "t1.cylinders", | |
| "<", | |
| "4", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "makeid", | |
| ",", | |
| "t2", | |
| ".", | |
| "make", | |
| "from", | |
| "cars_data", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "horsepower", | |
| ">", | |
| "(", | |
| "select", | |
| "min", | |
| "(", | |
| "horsepower", | |
| ")", | |
| "from", | |
| "cars_data", | |
| ")", | |
| "and", | |
| "t1", | |
| ".", | |
| "cylinders", | |
| "<", | |
| "value" | |
| ], | |
| "question": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?", | |
| "question_toks": [ | |
| "Among", | |
| "the", | |
| "cars", | |
| "that", | |
| "do", | |
| "not", | |
| "have", | |
| "the", | |
| "minimum", | |
| "horsepower", | |
| ",", | |
| "what", | |
| "are", | |
| "the", | |
| "make", | |
| "ids", | |
| "and", | |
| "names", | |
| "of", | |
| "all", | |
| "those", | |
| "with", | |
| "less", | |
| "than", | |
| "4", | |
| "cylinders", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 4, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", | |
| "query_toks": [ | |
| "select", | |
| "max", | |
| "(", | |
| "mpg", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "8", | |
| "or", | |
| "year", | |
| "<", | |
| "1980" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "mpg", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "value", | |
| "or", | |
| "year", | |
| "<", | |
| "value" | |
| ], | |
| "question": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "maximum", | |
| "miles", | |
| "per", | |
| "gallon", | |
| "of", | |
| "the", | |
| "car", | |
| "with", | |
| "8", | |
| "cylinders", | |
| "or", | |
| "produced", | |
| "before", | |
| "1980", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 8, | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1980, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", | |
| "query_toks": [ | |
| "select", | |
| "max", | |
| "(", | |
| "mpg", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "8", | |
| "or", | |
| "year", | |
| "<", | |
| "1980" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "mpg", | |
| ")", | |
| "from", | |
| "cars_data", | |
| "where", | |
| "cylinders", | |
| "=", | |
| "value", | |
| "or", | |
| "year", | |
| "<", | |
| "value" | |
| ], | |
| "question": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "maximum", | |
| "mpg", | |
| "of", | |
| "the", | |
| "cars", | |
| "that", | |
| "had", | |
| "8", | |
| "cylinders", | |
| "or", | |
| "that", | |
| "were", | |
| "produced", | |
| "before", | |
| "1980", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| 8, | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ], | |
| 1980, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.model", | |
| "FROM", | |
| "MODEL_LIST", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Model", | |
| "=", | |
| "T2.Model", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.MakeId", | |
| "=", | |
| "T3.Id", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T4", | |
| "ON", | |
| "T1.Maker", | |
| "=", | |
| "T4.Id", | |
| "WHERE", | |
| "T3.weight", | |
| "<", | |
| "3500", | |
| "AND", | |
| "T4.FullName", | |
| "!", | |
| "=", | |
| "'Ford", | |
| "Motor", | |
| "Company", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "model_list", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "model", | |
| "=", | |
| "t2", | |
| ".", | |
| "model", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t3", | |
| ".", | |
| "id", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t4", | |
| "on", | |
| "t1", | |
| ".", | |
| "maker", | |
| "=", | |
| "t4", | |
| ".", | |
| "id", | |
| "where", | |
| "t3", | |
| ".", | |
| "weight", | |
| "<", | |
| "value", | |
| "and", | |
| "t4", | |
| ".", | |
| "fullname", | |
| "!", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", | |
| "question_toks": [ | |
| "Which", | |
| "models", | |
| "are", | |
| "lighter", | |
| "than", | |
| "3500", | |
| "but", | |
| "not", | |
| "built", | |
| "by", | |
| "the", | |
| "'Ford", | |
| "Motor", | |
| "Company", | |
| "'", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| 3500, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 7, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Ford Motor Company\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.model", | |
| "FROM", | |
| "MODEL_LIST", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Model", | |
| "=", | |
| "T2.Model", | |
| "JOIN", | |
| "CARS_DATA", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.MakeId", | |
| "=", | |
| "T3.Id", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T4", | |
| "ON", | |
| "T1.Maker", | |
| "=", | |
| "T4.Id", | |
| "WHERE", | |
| "T3.weight", | |
| "<", | |
| "3500", | |
| "AND", | |
| "T4.FullName", | |
| "!", | |
| "=", | |
| "'Ford", | |
| "Motor", | |
| "Company", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "model", | |
| "from", | |
| "model_list", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "model", | |
| "=", | |
| "t2", | |
| ".", | |
| "model", | |
| "join", | |
| "cars_data", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "makeid", | |
| "=", | |
| "t3", | |
| ".", | |
| "id", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t4", | |
| "on", | |
| "t1", | |
| ".", | |
| "maker", | |
| "=", | |
| "t4", | |
| ".", | |
| "id", | |
| "where", | |
| "t3", | |
| ".", | |
| "weight", | |
| "<", | |
| "value", | |
| "and", | |
| "t4", | |
| ".", | |
| "fullname", | |
| "!", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "different", | |
| "models", | |
| "wthat", | |
| "are", | |
| "lighter", | |
| "than", | |
| "3500", | |
| "but", | |
| "were", | |
| "not", | |
| "built", | |
| "by", | |
| "the", | |
| "Ford", | |
| "Motor", | |
| "Company", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| 3500, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 7, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Ford Motor Company\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", | |
| "query_toks": [ | |
| "SELECT", | |
| "CountryName", | |
| "FROM", | |
| "countries", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.CountryName", | |
| "FROM", | |
| "countries", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.countryId", | |
| "=", | |
| "T2.Country", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country" | |
| ], | |
| "question": "What are the name of the countries where there is not a single car maker?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "countries", | |
| "where", | |
| "there", | |
| "is", | |
| "not", | |
| "a", | |
| "single", | |
| "car", | |
| "maker", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", | |
| "query_toks": [ | |
| "SELECT", | |
| "CountryName", | |
| "FROM", | |
| "countries", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.CountryName", | |
| "FROM", | |
| "countries", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.countryId", | |
| "=", | |
| "T2.Country", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country" | |
| ], | |
| "question": "What are the names of the countries with no car makers?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "the", | |
| "countries", | |
| "with", | |
| "no", | |
| "car", | |
| "makers", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3;", | |
| "query_toks": [ | |
| "select", | |
| "t1.id", | |
| ",", | |
| "t1.maker", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1.id", | |
| "=", | |
| "t2.maker", | |
| "group", | |
| "by", | |
| "t1.id", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">=", | |
| "2", | |
| "intersect", | |
| "select", | |
| "t1.id", | |
| ",", | |
| "t1.maker", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1.id", | |
| "=", | |
| "t2.maker", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2.model", | |
| "=", | |
| "t3.model", | |
| "group", | |
| "by", | |
| "t1.id", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "3", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "id", | |
| ",", | |
| "t1", | |
| ".", | |
| "maker", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "id", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "id", | |
| ",", | |
| "t1", | |
| ".", | |
| "maker", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "model", | |
| "=", | |
| "t3", | |
| ".", | |
| "model", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "id", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", | |
| "question_toks": [ | |
| "Which", | |
| "are", | |
| "the", | |
| "car", | |
| "makers", | |
| "which", | |
| "produce", | |
| "at", | |
| "least", | |
| "2", | |
| "models", | |
| "and", | |
| "more", | |
| "than", | |
| "3", | |
| "car", | |
| "makers", | |
| "?", | |
| "List", | |
| "the", | |
| "id", | |
| "and", | |
| "the", | |
| "maker", | |
| "." | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING count(*) > 3;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Id", | |
| ",", | |
| "T1.Maker", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "GROUP", | |
| "BY", | |
| "T1.Id", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "2", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.Id", | |
| ",", | |
| "T1.Maker", | |
| "FROM", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Id", | |
| "=", | |
| "T2.Maker", | |
| "JOIN", | |
| "CAR_NAMES", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.model", | |
| "=", | |
| "T3.model", | |
| "GROUP", | |
| "BY", | |
| "T1.Id", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "3", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "id", | |
| ",", | |
| "t1", | |
| ".", | |
| "maker", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "id", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "id", | |
| ",", | |
| "t1", | |
| ".", | |
| "maker", | |
| "from", | |
| "car_makers", | |
| "as", | |
| "t1", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "id", | |
| "=", | |
| "t2", | |
| ".", | |
| "maker", | |
| "join", | |
| "car_names", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "model", | |
| "=", | |
| "t3", | |
| ".", | |
| "model", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "id", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value" | |
| ], | |
| "question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "ids", | |
| "and", | |
| "makers", | |
| "of", | |
| "all", | |
| "car", | |
| "makers", | |
| "that", | |
| "produce", | |
| "at", | |
| "least", | |
| "2", | |
| "models", | |
| "and", | |
| "make", | |
| "more", | |
| "than", | |
| "3", | |
| "cars", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.countryId", | |
| ",", | |
| "T1.CountryName", | |
| "FROM", | |
| "Countries", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CountryId", | |
| "=", | |
| "T2.Country", | |
| "GROUP", | |
| "BY", | |
| "T1.countryId", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "3", | |
| "UNION", | |
| "SELECT", | |
| "T1.countryId", | |
| ",", | |
| "T1.CountryName", | |
| "FROM", | |
| "Countries", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "CAR_MAKERS", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CountryId", | |
| "=", | |
| "T2.Country", | |
| "JOIN", | |
| "MODEL_LIST", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.Id", | |
| "=", | |
| "T3.Maker", | |
| "WHERE", | |
| "T3.Model", | |
| "=", | |
| "'fiat", | |
| "'", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "countryid", | |
| ",", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value", | |
| "union", | |
| "select", | |
| "t1", | |
| ".", | |
| "countryid", | |
| ",", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "id", | |
| "=", | |
| "t3", | |
| ".", | |
| "maker", | |
| "where", | |
| "t3", | |
| ".", | |
| "model", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "id", | |
| "and", | |
| "names", | |
| "of", | |
| "the", | |
| "countries", | |
| "which", | |
| "have", | |
| "more", | |
| "than", | |
| "3", | |
| "car", | |
| "makers", | |
| "or", | |
| "produce", | |
| "the", | |
| "'fiat", | |
| "'", | |
| "model", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"fiat\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "car_1", | |
| "query": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat';", | |
| "query_toks": [ | |
| "select", | |
| "t1.countryid", | |
| ",", | |
| "t1.countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1.countryid", | |
| "=", | |
| "t2.country", | |
| "group", | |
| "by", | |
| "t1.countryid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "3", | |
| "union", | |
| "select", | |
| "t1.countryid", | |
| ",", | |
| "t1.countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1.countryid", | |
| "=", | |
| "t2.country", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2.id", | |
| "=", | |
| "t3.maker", | |
| "where", | |
| "t3.model", | |
| "=", | |
| "\"fiat\"", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "countryid", | |
| ",", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value", | |
| "union", | |
| "select", | |
| "t1", | |
| ".", | |
| "countryid", | |
| ",", | |
| "t1", | |
| ".", | |
| "countryname", | |
| "from", | |
| "countries", | |
| "as", | |
| "t1", | |
| "join", | |
| "car_makers", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "countryid", | |
| "=", | |
| "t2", | |
| ".", | |
| "country", | |
| "join", | |
| "model_list", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "id", | |
| "=", | |
| "t3", | |
| ".", | |
| "maker", | |
| "where", | |
| "t3", | |
| ".", | |
| "model", | |
| "=", | |
| "value" | |
| ], | |
| "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "ids", | |
| "and", | |
| "names", | |
| "of", | |
| "all", | |
| "countries", | |
| "that", | |
| "either", | |
| "have", | |
| "more", | |
| "than", | |
| "3", | |
| "car", | |
| "makers", | |
| "or", | |
| "produce", | |
| "fiat", | |
| "model", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"fiat\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": null | |
| } | |
| } | |
| ] |