[ { "db_id": "car_1", "query": "SELECT count(*) FROM CONTINENTS;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CONTINENTS", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "continents" ], "question": "Có bao nhiêu châu lục ?", "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": "Số lượng các châu lục là bao nhiêu ?", "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": "Mỗi châu lục có bao nhiêu quốc gia ? Liệt kê id , tên châu lục và số lượng các quốc gia .", "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": "Đối với mỗi châu lục , hãy liệt kê id , tên và số lượng quốc gia thuộc về châu lục này ?", "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": "Có bao nhiêu quốc gia được liệt kê ?", "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": "Có tất cả bao nhiêu quốc gia ?", "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": "Mỗi nhà sản xuất ô tô sản xuất bao nhiêu mẫu xe ? Liệt kê tên đầy đủ , id và số lượng mẫu của mỗi nhà sản xuất .", "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": "Liệt kê tên đầy đủ , id và số lượng mẫu xe của mỗi nhà sản xuất xe hơi .", "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": "Mẫu xe nào có mã lực thấp nhất ?", "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": "Mẫu xe có mã lực thấp nhất là mẫu nào ?", "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": "Cho biết những mẫu xe có trọng lượng thấp hơn trọng lượng trung bình của tất cả các xe .", "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": "Những mẫu xe có trọng lượng thấp hơn mức trung bình là những mẫu nào ?", "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": "Tìm tên của các nhà sản xuất đã sản xuất một số xe hơi vào năm 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": "Những nhà sản xuất xe hơi khác nhau đã sản xuất một số chiếc xe vào năm 1970 có tên là gì ?", "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": "Tìm thời gian sản xuất và thương hiệu của những chiếc xe được sản xuất sớm nhất ?", "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": "Cho biết năm sản xuất của loại xe hơi được sản xuất sớm nhất cũng như là nhà sản xuất của loại xe này .", "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": "Những mẫu xe khác nhau nào được sản xuất sau năm 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": "Liệt kê các mẫu xe khác nhau được sản xuất sau năm 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": "Có bao nhiêu nhà sản xuất xe hơi ở mỗi châu lục ? Liệt kê tên châu lục và số lượng những nhà sản xuất ở châu lục đó .", "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": "Cho biết tên của các châu lục và số lượng nhà sản xuất xe hơi ở mỗi châu lục ?", "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": "Quốc gia nào có nhiều nhà sản xuất xe hơi nhất ? Liệt kê tên của quốc gia này .", "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": "Cho biết tên của đất nước có nhiều nhà sản xuất xe hơi nhất .", "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": "Có bao nhiêu mẫu xe được sản xuất bởi mỗi nhà sản xuất ? Liệt kê số lượng các mẫu xe và tên đầy đủ của từng nhà sản xuất .", "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": "Số lượng mẫu xe được sản xuất bởi mỗi nhà sản xuất là bao nhiêu , đồng thời cho biết id và tên đầy đủ của mỗi nhà sản xuất ?", "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": "Gia tốc của thương hiệu xe amc hornet sportabout ( sw ) là bao nhiêu ?", "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": "Những chiếc xe của thương hiệu xe amc hornet sportabout ( sw ) có gia tốc là bao nhiêu ?", "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": "Có bao nhiêu nhà sản xuất xe hơi ở Pháp ?", "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": "Số lượng các nhà sản xuất xe hơi ở Pháp là bao nhiêu ?", "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": "Có bao nhiêu mẫu xe được sản xuất tại Mỹ ?", "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": "Số lượng các mẫu xe được sản xuất tại Hoa Kỳ là bao nhiêu ?", "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": "Số dặm trung bình trên mỗi gallon ( mpg ) của những chiếc xe có 4 xi-lanh là bao nhiêu ?", "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": "Cho biết số dặm trung bình trên mỗi gallon của tất cả các xe có 4 xi-lanh ?", "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": "Trọng lượng của chiếc xe nhẹ nhất với 8 xi-lanh và được sản xuất vào năm 1974 là bao nhiêu ?", "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": "Chiếc xe nhẹ nhất với 8 xi-lanh và được sản xuất vào năm 1974 có trọng lượng là bao nhiêu ?", "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": "Cho biết tất cả các nhà sản xuất và các mẫu xe ?", "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": "Liệt kê các nhà sản xuất và các mẫu xe .", "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": "Những quốc gia nào có ít nhất một nhà sản xuất xe hơi là những quốc gia ? Liệt kê tên và id của những quốc gia này .", "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": "Tên và id của tất cả các quốc gia có ít nhất một nhà sản xuất xe hơi .", "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": "Số lượng xe có mã lực lớn hơn 150 là bao nhiêu ?", "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": "Đếm số lượng xe có mã lực lớn hơn 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": "Trọng lượng trung bình của những chiếc xe được sản xuất mỗi năm là bao nhiêu ?", "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": "Liệt kê năm và trọng lượng trung bình của những chiếc xe theo từng năm ?", "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": "Những quốc gia nào ở châu Âu có ít nhất 3 nhà sản xuất xe hơi ?", "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": "Tên của tất cả các nước châu Âu có ít nhất 3 nhà sản xuất .", "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": "Cho biết mã lực và thương hiệu của mẫu xe có mã lực lớn nhất và có 3 xi-lanh.", "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": "Mẫu xe nào có mã lực lớn nhất và có 3 xi-lanh ? Cho biết mã lực và thương hiệu của mẫu xe này .", "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": "Mẫu xe nào tiết kiệm xăng nhất ? Nói cách khác , đi được nhiều dặm trên mỗi gallon nhất .", "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": "Mẫu xe hơi có mpg cao nhất là mẫu xe nào ?", "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": "Mã lực trung bình của những chiếc xe được sản xuất trước năm 1980 là bao nhiêu ?", "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": "Cho biết mã lực trung bình của tất cả các xe được sản xuất trước năm 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": "Edispl trung bình của những chiếc xe có thương hiệu volvo là bao nhiêu ?", "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": "TÌm edispl trung bình cho tất cả các xe của hãng 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": "Gia tốc tối đa của mỗi loại xi lanh là bao nhiêu ?", "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": "Cho biết gia tốc tối đa của mỗi loại xi lanh ?", "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": "Mẫu xe ô tô nào có nhiều phiên bản nhất ?", "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": "Mẫu xe nào có nhiều phiên bản khác nhau nhất ?", "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": "Có bao nhiêu chiếc xe có nhiều hơn 4 xi lanh ?", "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": "Cho biết số lượng những chiếc xe có nhiều hơn 4 xi lanh .", "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": "Có bao nhiêu chiếc xe được sản xuất vào năm 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": "Năm 1980 , có bao nhiêu chiếc xe được sản xuất ?", "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": "Có bao nhiêu mẫu xe được sản xuất bởi nhà sản xuất có tên đầy đủ là 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": "Số lượng các mẫu xe hơi được tạo ra bởi nhà sản xuất xe hơi American Motor Company là bao nhiêu ?", "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": "Những nhà sản xuất nào đã thiết kế nhiều hơn 3 mẫu xe hơi ? Liệt kê tên đầy đủ và id của mỗi nhà sản xuất .", "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": "Cho biết tên và id của tất cả các nhà sản xuất có nhiều hơn 3 mẫu xe ?", "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": "Những mẫu xe khác nhau nào được sản xuất bởi nhà sản xuất có tên đầy đủ là General Motors hoặc nặng hơn 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": "Những mẫu xe khác nhau được tạo ra bởi nhà sản xuất xe hơi General Motors hoặc nặng hơn 3500 là những mẫu nào ?", "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": "Cho biết những năm mà các ô tô được sản xuất có trọng lượng không dưới 3000 và không quá 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": "Các năm khác nhau mà những chiếc xe được sản xuất có trọng lượng dưới 4000 và hơn 3000 là các năm nào ?", "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": "Mã lực của chiếc xe có gia tốc lớn nhất là bao nhiêu ?", "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": "Cho biết mã lực của chiếc xe với gia tốc lớn nhất ?", "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": "Đối với mẫu xe volvo , chiếc xe có gia tốc nhỏ nhất có bao nhiêu xi-lanh ?", "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": "Đối với các mẫu xe volvo , phiên bản xe với gia tốc thấp nhất có bao nhiêu xi-lanh ?", "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": "Có bao nhiêu chiếc xe có gia tốc lớn hơn gia tốc của chiếc xe có mã lực lớn nhất ?", "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": "Số lượng xe có gia tốc lớn hơn gia tốc của chiếc xe có mã lực lớn nhất là bao nhiêu ?", "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": "Có bao nhiêu quốc gia có nhiều hơn 2 nhà sản xuất xe hơi ?", "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": "Số lượng quốc gia có nhiều hơn 2 nhà sản xuất xe hơi là bao nhiêu ?", "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": "Có bao nhiêu chiếc xe có nhiều hơn 6 xi lanh ?", "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": "Số lượng xe ô tô có trên 6 xi lanh là bao nhiêu ?", "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": "Đối với những chiếc xe có 4 xi-lanh , mẫu xe nào có mã lực lớn nhất ?", "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": "Đối với tất cả các xe có 4 xi-lanh , mẫu xe nào có mã lực lớn nhất ?", "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": "Trong số những chiếc xe có mã lực lớn hơn mã lực tối thiểu , những chiếc xe nào không có nhiều hơn 3 xi-lanh ? Liệt kê id thương hiệu và tên thương hiệu của những chiếc xe này .", "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": "Trong số những chiếc xe có mã lực lớn hơn mã lực tối thiểu và có ít hơn 4 xi-lanh , liệt kê id thương hiệu cũng như là tên thương hiệu của những chiếc xe này .", "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": "Số dặm tối đa trên mỗi gallon của những xe có 8 xi-lanh hoặc những xe được sản xuất trước năm 1980 là bao nhiêu ?", "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": "Mpg tối đa của những chiếc xe có 8 xi-lanh hoặc được sản xuất trước năm 1980 là bao nhiêu ?", "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": "Những mẫu xe nào nhẹ hơn 3500 nhưng không được chế tạo bởi ' Công ty Ford ' ?", "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": "Cho biết các mẫu xe nhẹ hơn 3500 nhưng không được ' Công ty Ford ' chế tạo .", "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": "Những quốc gia nào không có các nhà sản xuất xe hơi ?", "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": "Cho biết tên của các quốc gia không có nhà sản xuất xe hơi .", "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": "Những nhà sản xuất xe hơi nào đã sản xuất ít nhất 2 mẫu xe và nhiều hơn 3 thương hiệu xe ? Liệt kê id và tên của nhà sản xuất này .", "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": "Cho biết id và tên của tất cả các nhà sản xuất xe hơi đã sản xuất ít nhất 2 mẫu xe và chế tạo ra nhiều hơn 3 chiếc xe .", "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": "Những quốc gia nào có nhiều hơn 3 nhà sản xuất ô tô hoặc sản xuất mẫu xe ' fiat ' ? Cho biết tên và id của những quốc gia này .", "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": "Cho biết id và tên của tất cả các quốc gia có nhiều hơn 3 nhà sản xuất xe hơi hoặc sản xuất mẫu xe ' fiat ' .", "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 } } ]