[ { "db_id": "car_1", "query": "SELECT count(*) FROM CONTINENTS;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CONTINENTS", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "continents" ], "question_spider": "How many continents are there?", "question": "有多少大洲?", "question_cspider": "有多少大洲?", "bleu_from_cspider_question": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=6, ref_len=6)", "question_toks": [ "有", "多", "少", "大", "洲", "?" ], "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_spider": "What is the number of continents?", "question": "大洲的数量是多少?", "question_cspider": "大洲的数量是多少?", "bleu_from_cspider_question": "BLEU = 36.65, 100.0/80.0/50.0/33.3 (BP=0.607, ratio=0.667, hyp_len=6, ref_len=9)", "question_toks": [ "大", "洲", "是", "多", "少", "?" ], "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_spider": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "question": "每个洲有多少个国家?列出大洲ID、大洲名称和国家数目。", "question_cspider": "每个洲有多少个国家?列出大洲ID、大洲名称和国家数目。", "bleu_from_cspider_question": "BLEU = 60.64, 77.4/63.3/55.2/50.0 (BP=1.000, ratio=1.148, hyp_len=31, ref_len=27)", "question_toks": [ "每", "个", "大", "陆", "有", "多", "少", "个", "国", "家", "?", "列", "出", "大", "洲", "I", "D", ",", "大", "洲", "名", "称", "和", "国", "家", "/", "地", "区", "数", "量", "。" ], "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_spider": "For each continent, list its id, name, and how many countries it has?", "question": "对于每个大洲,列出它的ID、名字和它有多少个国家?", "question_cspider": "对于每个大洲,列出它的ID、名字和它有多少个国家?", "bleu_from_cspider_question": "BLEU = 43.08, 78.3/54.5/38.1/30.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", "question_toks": [ "为", "每", "个", "大", "洲", "列", "出", "其", "I", "D", ",", "名", "称", "以", "及", "它", "有", "多", "少", "个", "国", "家", "?" ], "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_spider": "How many countries are listed?", "question": "列出了多少国家?", "question_cspider": "列出了多少国家?", "bleu_from_cspider_question": "BLEU = 0.00, 75.0/57.1/33.3/0.0 (BP=1.000, ratio=1.000, hyp_len=8, ref_len=8)", "question_toks": [ "列", "出", "了", "几", "个", "国", "家", "?" ], "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_spider": "How many countries exist?", "question": "有多少国家存在?", "question_cspider": "有多少国家存在?", "bleu_from_cspider_question": "BLEU = 0.00, 87.5/42.9/0.0/0.0 (BP=1.000, ratio=1.000, hyp_len=8, ref_len=8)", "question_toks": [ "存", "在", "多", "少", "个", "国", "家", "?" ], "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_spider": "How many models does each car maker produce? List maker full name, id and the number.", "question": "每个汽车制造商生产多少种型号的汽车?列出制造商全称,ID和号码。", "question_cspider": "每个汽车制造商生产多少种型号的汽车?列出制造商姓名,ID和号码。", "bleu_from_cspider_question": "BLEU = 60.08, 93.1/71.4/59.3/50.0 (BP=0.902, ratio=0.906, hyp_len=29, ref_len=32)", "question_toks": [ "每", "个", "汽", "车", "制", "造", "商", "生", "产", "多", "少", "型", "号", "?", "列", "出", "制", "造", "商", "的", "全", "名", ",", "I", "D", "和", "编", "号", "。" ], "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_spider": "What is the full name of each car maker, along with its id and how many models it produces?", "question": "每个汽车制造商的全称,ID以及生产多少种型号的汽车?", "question_cspider": "每个汽车制造商的全名,ID以及生产多少种型号的汽车?", "bleu_from_cspider_question": "BLEU = 38.69, 65.5/42.9/29.6/26.9 (BP=1.000, ratio=1.115, hyp_len=29, ref_len=26)", "question_toks": [ "每", "个", "汽", "车", "制", "造", "商", "的", "全", "名", "是", "什", "么", ",", "以", "及", "它", "的", "编", "号", "和", "生", "产", "的", "型", "号", "数", "量", "?" ], "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_spider": "Which model of the car has the minimum horsepower?", "question": "哪个车型的马力最小?", "question_cspider": "哪个车型的马力最小?", "bleu_from_cspider_question": "BLEU = 78.25, 90.0/77.8/75.0/71.4 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", "question_toks": [ "哪", "种", "车", "型", "的", "马", "力", "最", "小", "?" ], "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_spider": "What is the model of the car with the smallest amount of horsepower?", "question": "最小马力的汽车的型号是什么?", "question_cspider": "最小马力的汽车的型号是什么?", "bleu_from_cspider_question": "BLEU = 0.00, 100.0/58.3/18.2/0.0 (BP=0.926, ratio=0.929, hyp_len=13, ref_len=14)", "question_toks": [ "马", "力", "最", "小", "的", "汽", "车", "是", "什", "么", "型", "号", "?" ], "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_spider": "Find the model of the car whose weight is below the average weight.", "question": "找出重量低于平均重量的汽车的型号。", "question_cspider": "找出重量低于平均重量的汽车的型号。", "bleu_from_cspider_question": "BLEU = 88.44, 94.1/87.5/86.7/85.7 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", "question_toks": [ "查", "找", "重", "量", "低", "于", "平", "均", "重", "量", "的", "汽", "车", "的", "型", "号", "。" ], "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_spider": "What is the model for the car with a weight smaller than the average?", "question": "重量小于平均值的汽车的型号是什么?", "question_cspider": "重量小于平均值的汽车的型号是什么?", "bleu_from_cspider_question": "BLEU = 77.78, 88.9/82.4/75.0/66.7 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", "question_toks": [ "重", "量", "小", "于", "平", "均", "重", "量", "的", "汽", "车", "的", "型", "号", "是", "什", "么", "?" ], "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_spider": "Find the name of the makers that produced some cars in the year of 1970?", "question": "找出“1970”年生产汽车的制造商的缩写。", "question_cspider": "找出“1970”年生产汽车的制造商的名字。", "bleu_from_cspider_question": "BLEU = 46.51, 70.8/56.5/40.9/28.6 (BP=1.000, ratio=1.143, hyp_len=24, ref_len=21)", "question_toks": [ "找", "出", "在", "1", "9", "7", "0", "年", "生", "产", "过", "一", "些", "汽", "车", "的", "制", "造", "商", "的", "名", "称", "吗", "?" ], "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_spider": "What is the name of the different car makers who produced a car in 1970?", "question": "“1970”年生产过汽车的不同汽车制造商的缩写是什么?", "question_cspider": "“1970”年生产过汽车的不同汽车制造商的名字是什么?", "bleu_from_cspider_question": "BLEU = 75.43, 100.0/91.3/81.8/71.4 (BP=0.882, ratio=0.889, hyp_len=24, ref_len=27)", "question_toks": [ "1", "9", "7", "0", "年", "生", "产", "汽", "车", "的", "不", "同", "汽", "车", "制", "造", "商", "的", "名", "字", "是", "什", "么", "?" ], "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_spider": "Find the make and production time of the cars that were produced in the earliest year?", "question": "找出最早生产汽车的品牌和生产时间?", "question_cspider": "找出最早一年生产的汽车的制造和生产时间?", "bleu_from_cspider_question": "BLEU = 62.44, 85.0/68.4/55.6/47.1 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", "question_toks": [ "找", "到", "最", "早", "生", "产", "的", "汽", "车", "的", "制", "造", "时", "间", "和", "生", "产", "时", "间", "?" ], "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_spider": "What is the maker of the carr produced in the earliest year and what year was it?", "question": "最早生产汽车的品牌是什么,在哪一年?", "question_cspider": "最早生产汽车的制造商是什么,在哪一年?", "bleu_from_cspider_question": "BLEU = 0.00, 90.9/40.0/11.1/0.0 (BP=0.483, ratio=0.579, hyp_len=11, ref_len=19)", "question_toks": [ "最", "早", "的", "生", "产", "年", "份", "是", "什", "么", "?" ], "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_spider": "Which distinct car models are the produced after 1980?", "question": "“1980”年后生产出哪些不同车的型号?", "question_cspider": "“1980”年后生产出哪些不同车型?", "bleu_from_cspider_question": "BLEU = 39.04, 75.0/52.6/33.3/17.6 (BP=1.000, ratio=1.250, hyp_len=20, ref_len=16)", "question_toks": [ "1", "9", "8", "0", "年", "之", "后", "生", "产", "了", "哪", "些", "不", "同", "的", "汽", "车", "型", "号", "?" ], "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.0, 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_spider": "What are the different models for the cards produced after 1980?", "question": "哪些不同的车型在“1980”年后被生产出来?", "question_cspider": "哪些不同的车型在“1980”年后被生产出来?", "bleu_from_cspider_question": "BLEU = 41.01, 83.3/52.9/37.5/26.7 (BP=0.895, ratio=0.900, hyp_len=18, ref_len=20)", "question_toks": [ "1", "9", "8", "0", "年", "后", "生", "产", "的", "卡", "有", "哪", "些", "不", "同", "型", "号", "?" ], "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.0, 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_spider": "How many car makers are there in each continents? List the continent name and the count.", "question": "每个大洲有多少汽车制造商?列出大洲名称和数量。", "question_cspider": "每个大洲有多少汽车制造商?列出大洲名称和数量。", "bleu_from_cspider_question": "BLEU = 64.33, 87.5/69.6/59.1/47.6 (BP=1.000, ratio=1.043, hyp_len=24, ref_len=23)", "question_toks": [ "每", "个", "大", "洲", "有", "多", "少", "家", "汽", "车", "制", "造", "商", "?", "列", "出", "大", "陆", "名", "称", "和", "计", "数", "。" ], "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_spider": "What is the name of each continent and how many car makers are there in each one?", "question": "每个大洲的名称是什么?每个大洲有多少汽车制造商?", "question_cspider": "每个大洲的名称是什么?每个大洲有多少汽车制造商?", "bleu_from_cspider_question": "BLEU = 65.37, 88.0/75.0/60.9/45.5 (BP=1.000, ratio=1.042, hyp_len=25, ref_len=24)", "question_toks": [ "每", "个", "大", "陆", "的", "名", "称", "是", "什", "么", "?", "每", "个", "大", "陆", "有", "多", "少", "家", "汽", "车", "制", "造", "商", "?" ], "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_spider": "Which of the countries has the most car makers? List the country name.", "question": "哪个国家拥有最多的汽车制造商?列出国家名称。", "question_cspider": "哪个国家拥有最多的汽车制造商?列出国家名称。", "bleu_from_cspider_question": "BLEU = 63.50, 87.0/72.7/57.1/45.0 (BP=1.000, ratio=1.045, hyp_len=23, ref_len=22)", "question_toks": [ "哪", "个", "国", "家", "/", "地", "区", "的", "汽", "车", "制", "造", "商", "最", "多", "?", "列", "出", "国", "家", "名", "称", "。" ], "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_spider": "What is the name of the country with the most car makers?", "question": "汽车制造商最多的国家叫什么名字?", "question_cspider": "汽车制造商最多的国家叫什么名字?", "bleu_from_cspider_question": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", "question_toks": [ "汽", "车", "制", "造", "商", "最", "多", "的", "国", "家", "叫", "什", "么", "名", "字", "?" ], "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_spider": "How many car models are produced by each maker ? Only list the count and the maker full name .", "question": "每个制造商生产多少种车型?列出数量和制造商的全称。", "question_cspider": "每个制造商生产多少种车型?列出数量和制造商的全名。", "bleu_from_cspider_question": "BLEU = 48.39, 81.5/57.7/40.0/29.2 (BP=1.000, ratio=1.080, hyp_len=27, ref_len=25)", "question_toks": [ "每", "个", "制", "造", "商", "生", "产", "多", "少", "辆", "汽", "车", "模", "型", "?", "只", "列", "出", "计", "数", "和", "制", "造", "商", "全", "名", "。" ], "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_spider": "What is the number of car models that are produced by each maker and what is the id and full name of each maker?", "question": "每个制造商生产的车型数量是多少?每个制造商的ID和全称是什么?", "question_cspider": "每个制造商生产的车型数量是多少?每个制造商的ID和全名是什么?", "bleu_from_cspider_question": "BLEU = 74.17, 90.3/80.0/69.0/60.7 (BP=1.000, ratio=1.000, hyp_len=31, ref_len=31)", "question_toks": [ "每", "个", "制", "造", "商", "生", "产", "的", "汽", "车", "型", "号", "是", "多", "少", ",", "每", "个", "制", "造", "商", "的", "I", "D", "和", "全", "名", "是", "什", "么", "?" ], "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_spider": "What is the accelerate of the car make amc hornet sportabout (sw)?", "question": "“amc hornet sportabout (sw)”的加速度是多少?", "question_cspider": "“amc hornet sportabout (sw)”的加速度是多少?", "bleu_from_cspider_question": "BLEU = 0.00, 55.6/25.0/14.3/0.0 (BP=0.641, ratio=0.692, hyp_len=9, ref_len=13)", "question_toks": [ "汽", "车", "的", "加", "速", "是", "什", "么", "?" ], "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_spider": "How much does the car accelerate that makes amc hornet sportabout (sw)?", "question": "“amc hornet sportabout (sw)”的加速度有多大?", "question_cspider": "“amc hornet sportabout (sw)”的加速度有多大?", "bleu_from_cspider_question": "BLEU = 0.00, 12.1/3.1/0.0/0.0 (BP=1.000, ratio=2.538, hyp_len=33, ref_len=13)", "question_toks": [ "汽", "车", "加", "速", "了", "多", "少", ",", "使", "a", "m", "c", " ", "h", "o", "r", "n", "e", "t", " ", "s", "p", "o", "r", "t", "a", "b", "o", "u", "t", "(", "s", "w", ")", "?" ], "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_spider": "How many car makers are there in france?", "question": "“France”有多少汽车制造商?", "question_cspider": "France有多少汽车制造商?", "bleu_from_cspider_question": "BLEU = 58.77, 81.8/70.0/55.6/37.5 (BP=1.000, ratio=1.000, hyp_len=11, ref_len=11)", "question_toks": [ "法", "国", "有", "几", "家", "汽", "车", "制", "造", "商", "?" ], "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_spider": "What is the number of makers of care in France?", "question": "“France”的汽车制造商有多少?", "question_cspider": "France的汽车制造商有多少?", "bleu_from_cspider_question": "BLEU = 30.66, 58.3/45.5/30.0/11.1 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", "question_toks": [ "法", "国", "的", "护", "理", "生", "产", "者", "有", "多", "少", "?" ], "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_spider": "How many car models are produced in the usa?", "question": "“USA”生产了多少款车?", "question_cspider": "usa生产了多少款车?", "bleu_from_cspider_question": "BLEU = 63.16, 81.8/70.0/55.6/50.0 (BP=1.000, ratio=1.100, hyp_len=11, ref_len=10)", "question_toks": [ "美", "国", "生", "产", "了", "多", "少", "辆", "汽", "车", "?" ], "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_spider": "What is the count of the car models produced in the United States?", "question": "在“USA”生产的车型有多少?", "question_cspider": "在usa生产的车型有多少?", "bleu_from_cspider_question": "BLEU = 57.31, 85.7/69.2/50.0/36.4 (BP=1.000, ratio=1.167, hyp_len=14, ref_len=12)", "question_toks": [ "在", "美", "国", "生", "产", "的", "汽", "车", "型", "号", "有", "多", "少", "?" ], "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_spider": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?", "question": "4缸汽车的平均mpg是多少?", "question_cspider": "4缸汽车每加仑汽油能行驶的平均英里数是多少?", "bleu_from_cspider_question": "BLEU = 48.79, 77.3/61.9/45.0/26.3 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", "question_toks": [ "4", "缸", "汽", "车", "的", "平", "均", "每", "加", "仑", "(", "m", "p", "g", ")", "英", "里", "数", "是", "多", "少", "?" ], "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.0, 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_spider": "What is the average miles per gallon of all the cards with 4 cylinders?", "question": "所有4缸汽车的平均mpg是多少?", "question_cspider": "所有4缸汽车每加仑汽油能行驶的平均英里数是多少?", "bleu_from_cspider_question": "BLEU = 38.18, 69.6/54.5/33.3/20.0 (BP=0.957, ratio=0.958, hyp_len=23, ref_len=24)", "question_toks": [ "所", "有", "带", "有", "4", "个", "气", "瓶", "的", "卡", "的", "平", "均", "每", "加", "仑", "英", "里", "数", "是", "多", "少", "?" ], "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.0, 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_spider": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", "question": "在“1974”年的“8”缸汽车的最小重量是多少?", "question_cspider": "在“1974”年的“8”缸汽车的最小重量是多少?", "bleu_from_cspider_question": "BLEU = 81.37, 90.5/85.0/78.9/72.2 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", "question_toks": [ "1", "9", "7", "4", "年", "生", "产", "的", "8", "缸", "汽", "车", "的", "最", "小", "重", "量", "是", "多", "少", "?" ], "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.0, null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], 1974.0, 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_spider": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?", "question": "“1974”年所生产的“8”缸汽车的最小重量是多少?", "question_cspider": "“1974”年所生产的“8”缸汽车的最小重量是多少?", "bleu_from_cspider_question": "BLEU = 87.47, 100.0/95.0/89.5/83.3 (BP=0.953, ratio=0.955, hyp_len=21, ref_len=22)", "question_toks": [ "1", "9", "7", "4", "年", "生", "产", "的", "8", "缸", "汽", "车", "的", "最", "小", "重", "量", "是", "多", "少", "?" ], "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.0, null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], 1974.0, 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_spider": "What are all the makers and models?", "question": "所有的制造商缩写和汽车型号是什么?", "question_cspider": "所有的制造商和汽车型号是什么?", "bleu_from_cspider_question": "BLEU = 72.98, 100.0/91.7/81.8/70.0 (BP=0.857, ratio=0.867, hyp_len=13, ref_len=15)", "question_toks": [ "所", "有", "的", "制", "造", "商", "和", "型", "号", "是", "什", "么", "?" ], "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_spider": "What are the makers and models?", "question": "制造商缩写和汽车型号是什么?", "question_cspider": "制造商和汽车型号是什么?", "bleu_from_cspider_question": "BLEU = 47.34, 88.9/75.0/57.1/50.0 (BP=0.717, ratio=0.750, hyp_len=9, ref_len=12)", "question_toks": [ "厂", "商", "和", "型", "号", "是", "什", "么", "?" ], "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_spider": "What are the countries having at least one car maker? List name and id.", "question": "哪些国家至少拥有一家汽车制造商?列出这些国家的名称和ID。", "question_cspider": "哪些国家至少拥有一家汽车制造商?列出名称和ID。", "bleu_from_cspider_question": "BLEU = 34.05, 68.0/41.7/26.1/18.2 (BP=1.000, ratio=1.042, hyp_len=25, ref_len=24)", "question_toks": [ "有", "至", "少", "一", "家", "汽", "车", "制", "造", "商", "的", "国", "家", "/", "地", "区", "?", "清", "单", "名", "称", "和", "编", "号", "。" ], "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.0, 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_spider": "What are the names and ids of all countries with at least one car maker?", "question": "拥有至少一家汽车制造商的所有国家的名称和ID是什么?", "question_cspider": "拥有至少一家汽车制造商的所有国家的名称和ID是什么?", "bleu_from_cspider_question": "BLEU = 83.31, 89.7/85.7/81.5/76.9 (BP=1.000, ratio=1.115, hyp_len=29, ref_len=26)", "question_toks": [ "拥", "有", "至", "少", "一", "家", "汽", "车", "制", "造", "商", "的", "所", "有", "国", "家", "/", "地", "区", "的", "名", "称", "和", "I", "D", "是", "什", "么", "?" ], "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.0, 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_spider": "What is the number of the cars with horsepower more than 150?", "question": "马力超过150的汽车的数量是多少?", "question_cspider": "马力超过150的汽车的数量是多少?", "bleu_from_cspider_question": "BLEU = 63.16, 92.9/84.6/75.0/63.6 (BP=0.807, ratio=0.824, hyp_len=14, ref_len=17)", "question_toks": [ "马", "力", "超", "过", "1", "5", "0", "的", "汽", "车", "有", "多", "少", "?" ], "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.0, 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_spider": "What is the number of cars with a horsepower greater than 150?", "question": "有多少汽车的马力大于150?", "question_cspider": "有多少汽车的马力大于150?", "bleu_from_cspider_question": "BLEU = 59.56, 100.0/69.2/50.0/36.4 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", "question_toks": [ "马", "力", "大", "于", "1", "5", "0", "的", "汽", "车", "有", "多", "少", "?" ], "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.0, 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_spider": "What is the average weight of cars each year?", "question": "每年汽车的平均重量是多少?", "question_cspider": "每年汽车的平均重量是多少?", "bleu_from_cspider_question": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", "question_toks": [ "每", "年", "汽", "车", "的", "平", "均", "重", "量", "是", "多", "少", "?" ], "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_spider": "What is the average weight and year for each year?", "question": "每年的平均重量和年份是多少?", "question_cspider": "每年的平均重量和年份是多少?", "bleu_from_cspider_question": "BLEU = 49.48, 85.7/61.5/41.7/27.3 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", "question_toks": [ "每", "年", "的", "平", "均", "体", "重", "和", "年", "数", "是", "多", "少", "?" ], "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_spider": "Which countries in europe have at least 3 car manufacturers?", "question": "有哪些在“Europe”的国家至少有3家汽车制造商?", "question_cspider": "europe哪些国家至少有3家汽车制造商?", "bleu_from_cspider_question": "BLEU = 57.31, 83.3/64.7/50.0/40.0 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", "question_toks": [ "欧", "洲", "的", "哪", "个", "国", "家", "至", "少", "有", "3", "个", "汽", "车", "制", "造", "商", "?" ], "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.0, 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_spider": "What are the names of all European countries with at least 3 manufacturers?", "question": "拥有至少3家制造商的所有“Europe”国家的名称是什么?", "question_cspider": "拥有至少3家制造商的所有europe国家的名称是什么?", "bleu_from_cspider_question": "BLEU = 75.22, 91.3/81.8/71.4/60.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)", "question_toks": [ "拥", "有", "至", "少", "3", "个", "制", "造", "商", "的", "所", "有", "欧", "洲", "国", "家", "的", "名", "字", "是", "什", "么", "?" ], "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.0, 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_spider": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "question": "3缸的汽车型号的最大的马力和牌子是什么?", "question_cspider": "3缸的汽车型号的最大的马力和牌子是什么?", "bleu_from_cspider_question": "BLEU = 0.00, 66.7/29.4/6.2/0.0 (BP=0.895, ratio=0.900, hyp_len=18, ref_len=20)", "question_toks": [ "3", "缸", "汽", "车", "模", "型", "的", "最", "大", "功", "率", "和", "型", "号", "是", "多", "少", "?" ], "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.0, 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_spider": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", "question": "3缸车型的最大马力是多少?是什么牌子的?", "question_cspider": "3缸车型的最大马力是多少?是什么牌子的?", "bleu_from_cspider_question": "BLEU = 55.80, 81.0/65.0/47.4/38.9 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", "question_toks": [ "3", "缸", "模", "型", "的", "最", "大", "马", "力", "是", "多", "少", "?", "它", "是", "什", "么", "制", "成", "的", "?" ], "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.0, 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_spider": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "question": "哪种型号的车最省油?也就是说,它的mpg最大。", "question_cspider": "哪种型号的车最省油?也就是说,每加仑汽油能行驶的英里数最大。", "bleu_from_cspider_question": "BLEU = 43.71, 83.3/55.2/35.7/22.2 (BP=1.000, ratio=1.000, hyp_len=30, ref_len=30)", "question_toks": [ "哪", "种", "型", "号", "可", "节", "省", "最", "多", "的", "汽", "油", "?", "也", "就", "是", "说", ",", "具", "有", "每", "加", "仑", "最", "大", "的", "英", "里", "数", "。" ], "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_spider": "What is the car model with the highest mpg ?", "question": "最高MPG的汽车型号是什么?", "question_cspider": "最高MPG的汽车型号是什么?", "bleu_from_cspider_question": "BLEU = 75.58, 100.0/76.9/66.7/63.6 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", "question_toks": [ "什", "么", "是", "最", "高", "m", "p", "g", "的", "汽", "车", "型", "号", "?" ], "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_spider": "What is the average horsepower of the cars before 1980?", "question": "汽车在“1980”年之前的平均马力是多少?", "question_cspider": "汽车在“1980”年之前的平均马力是多少?", "bleu_from_cspider_question": "BLEU = 66.26, 94.4/76.5/62.5/53.3 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", "question_toks": [ "1", "9", "8", "0", "年", "以", "前", "汽", "车", "的", "平", "均", "马", "力", "是", "多", "少", "?" ], "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.0, 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_spider": "What is the average horsepower for all cars produced before 1980 ?", "question": "在1980之前生产的所有品牌汽车的平均马力是多少?", "question_cspider": "在1980之前生产的所有品牌汽车的平均马力是多少?", "bleu_from_cspider_question": "BLEU = 73.32, 95.7/86.4/76.2/65.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", "question_toks": [ "1", "9", "8", "0", "年", "之", "前", "生", "产", "的", "所", "有", "汽", "车", "的", "平", "均", "马", "力", "是", "多", "少", "?" ], "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.0, 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_spider": "What is the average edispl of the cars of model volvo?", "question": "“volvo”汽车的平均EDISPL是多少?", "question_cspider": "“volvo”汽车的平均EDISL是多少?", "bleu_from_cspider_question": "BLEU = 55.79, 68.4/61.1/52.9/43.8 (BP=1.000, ratio=1.056, hyp_len=19, ref_len=18)", "question_toks": [ "沃", "尔", "沃", "模", "型", "车", "的", "平", "均", "e", "d", "i", "s", "p", "l", "是", "多", "少", "?" ], "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_spider": "What is the average edispl for all volvos?", "question": "所有“volvo”汽车的平均EDISPL是多少?", "question_cspider": "所有“volvo”汽车的平均EDISCL是多少?", "bleu_from_cspider_question": "BLEU = 47.63, 66.7/55.0/42.1/33.3 (BP=1.000, ratio=1.000, hyp_len=21, ref_len=21)", "question_toks": [ "所", "有", "v", "o", "l", "v", "o", "s", "的", "平", "均", "e", "d", "i", "s", "p", "l", "是", "多", "少", "?" ], "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_spider": "What is the maximum accelerate for different number of cylinders?", "question": "对于不同数量的气缸的车,最大加速度是多少?", "question_cspider": "对于不同数量的气缸的车,最大加速度是多少?", "bleu_from_cspider_question": "BLEU = 50.50, 84.2/66.7/47.1/37.5 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", "question_toks": [ "不", "同", "数", "量", "的", "汽", "缸", "的", "最", "大", "加", "速", "度", "是", "多", "​", "​", "少", "?" ], "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_spider": "What is the maximum accelerate for all the different cylinders?", "question": "不同气缸的车的最大加速度是多少?", "question_cspider": "不同气缸的车的最大加速度是多少?", "bleu_from_cspider_question": "BLEU = 61.61, 77.8/70.6/56.2/46.7 (BP=1.000, ratio=1.125, hyp_len=18, ref_len=16)", "question_toks": [ "所", "有", "不", "同", "气", "缸", "的", "最", "大", "加", "速", "度", "是", "多", "​", "​", "少", "?" ], "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_spider": "Which model has the most version(make) of cars?", "question": "哪种型号的汽车品牌最多?", "question_cspider": "哪种车型的汽车版本最多?", "bleu_from_cspider_question": "BLEU = 43.53, 84.6/58.3/36.4/20.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", "question_toks": [ "哪", "种", "型", "号", "的", "汽", "车", "的", "版", "本", "最", "多", "?" ], "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_spider": "What model has the most different versions?", "question": "什么型号的汽车有最多不同的版本?", "question_cspider": "什么型号的汽车有最多不同的版本?", "bleu_from_cspider_question": "BLEU = 0.00, 75.0/36.4/20.0/0.0 (BP=0.717, ratio=0.750, hyp_len=12, ref_len=16)", "question_toks": [ "哪", "种", "型", "号", "的", "版", "本", "最", "不", "相", "同", "?" ], "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_spider": "How many cars have more than 4 cylinders?", "question": "有多少辆车有4个以上的气缸?", "question_cspider": "有多少辆车有4个以上的气缸?", "bleu_from_cspider_question": "BLEU = 28.11, 71.4/38.5/25.0/9.1 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", "question_toks": [ "有", "多", "少", "辆", "汽", "车", "的", "气", "缸", "数", "超", "过", "4", "?" ], "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.0, 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_spider": "What is the number of cars with more than 4 cylinders?", "question": "4缸以上的汽车数量是多少?", "question_cspider": "4缸以上的汽车数量是多少?", "bleu_from_cspider_question": "BLEU = 57.96, 73.3/57.1/53.8/50.0 (BP=1.000, ratio=1.154, hyp_len=15, ref_len=13)", "question_toks": [ "气", "缸", "数", "大", "于", "4", "的", "汽", "车", "数", "量", "是", "多", "少", "?" ], "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.0, 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_spider": "how many cars were produced in 1980?", "question": "“1980”年生产了多少辆车?", "question_cspider": "“1980”年生产了多少辆车?", "bleu_from_cspider_question": "BLEU = 80.91, 92.9/84.6/75.0/72.7 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", "question_toks": [ "1", "9", "8", "0", "年", "生", "产", "了", "多", "少", "辆", "汽", "车", "?" ], "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.0, 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_spider": "In 1980, how many cars were made?", "question": "在“1980”年,多少辆车生产出来了?", "question_cspider": "在“1980”年,多少辆车生产出来了?", "bleu_from_cspider_question": "BLEU = 45.93, 81.2/53.3/42.9/30.8 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", "question_toks": [ "在", "1", "9", "8", "0", "年", ",", "制", "造", "了", "多", "少", "辆", "汽", "车", "?" ], "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.0, 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_spider": "How many car models were produced by the maker with full name American Motor Company?", "question": "全名为“American Motor Company”的制造商生产了多少种车型?", "question_cspider": "全名为“American Motor Company”的制造商生产了多少种车型?", "bleu_from_cspider_question": "BLEU = 26.89, 38.9/31.4/23.5/18.2 (BP=1.000, ratio=1.800, hyp_len=36, ref_len=20)", "question_toks": [ "该", "制", "造", "商", "以", "全", "名", "A", "m", "e", "r", "i", "c", "a", "n", " ", "M", "o", "t", "o", "r", " ", "C", "o", "m", "p", "a", "n", "y", "生", "产", "了", "多", "少", "种", "车", "型", "?" ], "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_spider": "What is the number of car models created by the car maker American Motor Company?", "question": "名为“American Motor Company”的汽车制造商生产的不同汽车型号是多少?", "question_cspider": "名为“American Motor Company”的汽车制造商生产的不同汽车型号是多少?", "bleu_from_cspider_question": "BLEU = 11.02, 26.2/14.6/7.5/5.1 (BP=1.000, ratio=1.680, hyp_len=42, ref_len=25)", "question_toks": [ "汽", "车", "制", "造", "商", "美", "国", "汽", "车", "公", "司", "(", "A", "m", "e", "r", "i", "c", "a", "n", " ", "M", "o", "t", "o", "r", " ", "C", "o", "m", "p", "a", "n", "y", ")", "创", "造", "了", "多", "少", "款", "汽", "车", "?" ], "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_spider": "Which makers designed more than 3 car models? List full name and the id.", "question": "哪些制造商设计了超过3种车型?列出全名和ID。", "question_cspider": "哪些制造商设计了超过3种车型?列出全名和ID。", "bleu_from_cspider_question": "BLEU = 63.94, 80.8/68.0/58.3/52.2 (BP=1.000, ratio=1.130, hyp_len=26, ref_len=23)", "question_toks": [ "哪", "些", "制", "造", "商", "设", "计", "了", "3", "种", "以", "上", "的", "汽", "车", "模", "型", "?", "列", "出", "全", "名", "和", "I", "D", "。" ], "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.0, 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_spider": "What are the names and ids of all makers with more than 3 models?", "question": "生产超过3种型号汽车的所有制造商的名称和ID是什么?", "question_cspider": "生产超过3种型号汽车的所有制造商的名称和ID是什么?", "bleu_from_cspider_question": "BLEU = 64.57, 83.3/73.9/63.6/61.9 (BP=0.920, ratio=0.923, hyp_len=24, ref_len=26)", "question_toks": [ "拥", "有", "3", "种", "以", "上", "型", "号", "的", "所", "有", "制", "造", "商", "的", "名", "称", "和", "I", "D", "是", "什", "么", "?" ], "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.0, 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_spider": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", "question": "哪些车型是“General Motors”公司生产的,或者重量超过3500?", "question_cspider": "哪些车型是“General Motors”公司生产的,或者重量超过3500?", "bleu_from_cspider_question": "BLEU = 33.21, 62.1/39.3/25.9/19.2 (BP=1.000, ratio=1.115, hyp_len=29, ref_len=26)", "question_toks": [ "制", "造", "商", "生", "产", "的", "全", "名", "通", "用", "汽", "车", "或", "重", "量", "超", "过", "3", "5", "0", "0", "的", "哪", "些", "独", "特", "车", "型", "?" ], "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.0, 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_spider": "What are the different models created by either the car maker General Motors or weighed more than 3500?", "question": "“General Motors”公司生产或重量超过3500的不同车型有哪些?", "question_cspider": "“General Motors”公司生产或重量超过3500的不同车型有哪些?", "bleu_from_cspider_question": "BLEU = 39.84, 65.5/42.9/33.3/26.9 (BP=1.000, ratio=1.115, hyp_len=29, ref_len=26)", "question_toks": [ "汽", "车", "制", "造", "商", "通", "用", "汽", "车", "或", "重", "量", "超", "过", "3", "5", "0", "0", "的", "汽", "车", "有", "哪", "些", "不", "同", "型", "号", "?" ], "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.0, 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_spider": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?", "question": "哪一年生产的汽车重量不小于3000,也不超过4000?", "question_cspider": "哪一年生产的汽车重量不小于3000,也不超过4000?", "bleu_from_cspider_question": "BLEU = 63.87, 82.8/67.9/59.3/50.0 (BP=1.000, ratio=1.074, hyp_len=29, ref_len=27)", "question_toks": [ "在", "哪", "些", "年", "份", "生", "产", "的", "汽", "车", "的", "重", "量", "不", "小", "于", "3", "0", "0", "0", "且", "不", "超", "过", "4", "0", "0", "0", "?" ], "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.0, 4000.0 ] ], "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_spider": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?", "question": "有哪些年份既生产了重量小于4000的汽车,又生产了重量大于3000的汽车?", "question_cspider": "有哪些年份既生产了重量小于4000的汽车,又生产了重量大于3000的汽车?", "bleu_from_cspider_question": "BLEU = 58.80, 90.3/76.7/65.5/57.1 (BP=0.824, ratio=0.838, hyp_len=31, ref_len=37)", "question_toks": [ "重", "量", "小", "于", "4", "0", "0", "0", "的", "汽", "车", "和", "重", "量", "大", "于", "3", "0", "0", "0", "的", "汽", "车", "有", "哪", "些", "不", "同", "年", "份", "?" ], "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.0, 4000.0 ] ], "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_spider": "What is the horsepower of the car with the largest accelerate?", "question": "最大加速度的汽车的马力是多少?", "question_cspider": "最大加速度的汽车的马力是多少?", "bleu_from_cspider_question": "BLEU = 72.07, 100.0/84.6/66.7/63.6 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", "question_toks": [ "加", "速", "最", "大", "的", "汽", "车", "的", "马", "力", "是", "多", "少", "?" ], "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_spider": "What is the horsepower of the car with the greatest accelerate?", "question": "加速度最大的汽车的马力是多少?", "question_cspider": "加速度最大的汽车的马力是多少?", "bleu_from_cspider_question": "BLEU = 82.93, 100.0/92.3/83.3/81.8 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", "question_toks": [ "加", "速", "最", "大", "的", "汽", "车", "的", "马", "力", "是", "多", "少", "?" ], "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_spider": "For model volvo, how many cylinders does the car with the least accelerate have?", "question": "对于“volvo”车型来说,最小加速度的汽车有多少个气缸?", "question_cspider": "对于“volvo”车型来说,最小加速度的汽车有多少个气缸?", "bleu_from_cspider_question": "BLEU = 45.66, 82.6/59.1/42.9/35.0 (BP=0.878, ratio=0.885, hyp_len=23, ref_len=26)", "question_toks": [ "对", "于", "沃", "尔", "沃", "模", "型", ",", "加", "速", "度", "最", "小", "的", "汽", "车", "有", "多", "少", "个", "气", "缸", "?" ], "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_spider": "For a volvo model, how many cylinders does the version with least accelerate have?", "question": "加速度最小的“volvo”车型有多少个汽缸?", "question_cspider": "加速度最小的“volvo”车型有多少个汽缸?", "bleu_from_cspider_question": "BLEU = 18.49, 57.1/35.0/10.5/5.6 (BP=1.000, ratio=1.105, hyp_len=21, ref_len=19)", "question_toks": [ "对", "于", "沃", "尔", "沃", "车", "型", ",", "最", "小", "加", "速", "版", "本", "有", "多", "少", "个", "气", "缸", "?" ], "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_spider": "How many cars have a larger accelerate than the car with the largest horsepower?", "question": "有多少车比最大马力的汽车有更大的加速度?", "question_cspider": "有多少车比最大马力的汽车有更大的加速度?", "bleu_from_cspider_question": "BLEU = 45.07, 83.3/52.9/43.8/33.3 (BP=0.895, ratio=0.900, hyp_len=18, ref_len=20)", "question_toks": [ "有", "几", "辆", "汽", "车", "的", "加", "速", "比", "最", "大", "马", "力", "的", "汽", "车", "大", "?" ], "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_spider": "What is the number of cars with a greater accelerate than the one with the most horsepower?", "question": "加速度比马力最大的汽车更大的汽车有多少辆?", "question_cspider": "加速度比马力最大的汽车更大的汽车有多少辆?", "bleu_from_cspider_question": "BLEU = 35.92, 100.0/64.3/38.5/33.3 (BP=0.670, ratio=0.714, hyp_len=15, ref_len=21)", "question_toks": [ "加", "速", "比", "最", "大", "马", "力", "大", "的", "汽", "车", "有", "多", "少", "?" ], "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_spider": "How many countries has more than 2 car makers ?", "question": "有多少国家拥有超过2家汽车制造商?", "question_cspider": "有多少国家拥有超过2家汽车制造商?", "bleu_from_cspider_question": "BLEU = 44.22, 72.2/52.9/37.5/26.7 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", "question_toks": [ "多", "少", "个", "国", "家", "拥", "有", "两", "家", "以", "上", "的", "汽", "车", "制", "造", "商", "?" ], "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.0, 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_spider": "What is the number of countries with more than 2 car makers ?", "question": "拥有超过2家汽车制造商的国家有多少?", "question_cspider": "拥有超过2家汽车制造商的国家有多少?", "bleu_from_cspider_question": "BLEU = 60.61, 93.8/80.0/64.3/46.2 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", "question_toks": [ "汽", "车", "制", "造", "商", "超", "过", "2", "个", "的", "国", "家", "有", "多", "少", "?" ], "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.0, 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_spider": "How many cars has over 6 cylinders?", "question": "有多少辆车超过6个汽缸?", "question_cspider": "有多少辆车超过6个汽缸?", "bleu_from_cspider_question": "BLEU = 0.00, 72.7/20.0/11.1/0.0 (BP=0.913, ratio=0.917, hyp_len=11, ref_len=12)", "question_toks": [ "多", "少", "辆", "汽", "车", "的", "6", "缸", "以", "上", "?" ], "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.0, 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_spider": "What is the number of carsw ith over 6 cylinders?", "question": "超过6个气缸的汽车的数量是多少?", "question_cspider": "超过6个气缸的汽车的数量是多少?", "bleu_from_cspider_question": "BLEU = 81.97, 100.0/92.9/84.6/75.0 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", "question_toks": [ "超", "过", "6", "个", "气", "缸", "的", "汽", "车", "数", "量", "是", "多", "少", "?" ], "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.0, 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_spider": "For the cars with 4 cylinders, which model has the largest horsepower?", "question": "对于有4个汽缸的汽车,哪个型号的车的马力最大?", "question_cspider": "对于有4个汽缸的汽车,哪个型号的车的马力最大?", "bleu_from_cspider_question": "BLEU = 38.08, 94.1/68.8/46.7/28.6 (BP=0.703, ratio=0.739, hyp_len=17, ref_len=23)", "question_toks": [ "对", "于", "4", "缸", "汽", "车", ",", "哪", "种", "型", "号", "的", "马", "力", "最", "大", "?" ], "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.0, 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_spider": "For all of the 4 cylinder cars, which model has the most horsepower?", "question": "哪种型号的四缸汽车的马力最大?", "question_cspider": "哪种型号的四缸汽车的马力最大?", "bleu_from_cspider_question": "BLEU = 49.80, 68.4/61.1/47.1/31.2 (BP=1.000, ratio=1.267, hyp_len=19, ref_len=15)", "question_toks": [ "对", "于", "所", "有", "4", "缸", "汽", "车", ",", "哪", "种", "型", "号", "的", "马", "力", "最", "大", "?" ], "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.0, 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_spider": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question": "在高于最低马力的车中,哪些没有超过3个汽缸?列出汽车制造商的ID和名称。", "question_cspider": "在高于最低马力的车中,哪些没有超过3个汽缸?列出汽车制造商的ID和名称。", "bleu_from_cspider_question": "BLEU = 32.75, 77.1/44.1/24.2/15.6 (BP=0.972, ratio=0.972, hyp_len=35, ref_len=36)", "question_toks": [ "在", "马", "力", "最", "低", "的", "汽", "车", "中", ",", "哪", "些", "汽", "缸", "不", "超", "过", "3", "个", "?", "列", "出", "汽", "车", "的", "m", "a", "k", "e", "i", "d", "并", "命", "名", "。" ], "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.0, 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_spider": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?", "question": "在不是最小马力的汽车中,那些少于4个汽缸的汽车制造商的ID和名称是什么?", "question_cspider": "在不是最小马力的汽车中,那些少于4个汽缸的汽车制造商的ID和名称是什么?", "bleu_from_cspider_question": "BLEU = 56.21, 87.9/68.8/54.8/43.3 (BP=0.913, ratio=0.917, hyp_len=33, ref_len=36)", "question_toks": [ "在", "没", "有", "最", "小", "马", "力", "的", "汽", "车", "中", ",", "所", "有", "少", "于", "4", "缸", "的", "汽", "车", "的", "制", "造", "I", "D", "和", "名", "称", "是", "什", "么", "?" ], "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.0, 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_spider": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?", "question": "“8”缸或“1980”年前生产的汽车每加仑汽油的最大里程是多少?", "question_cspider": "“8”缸或“1980”年前生产的汽车每加仑汽油的最大里程是多少?", "bleu_from_cspider_question": "BLEU = 56.73, 92.3/72.0/54.2/39.1 (BP=0.926, ratio=0.929, hyp_len=26, ref_len=28)", "question_toks": [ "1", "9", "8", "0", "年", "前", "生", "产", "的", "8", "缸", "汽", "车", "每", "加", "仑", "的", "最", "大", "英", "里", "数", "是", "多", "少", "?" ], "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.0, null ], "or", [ false, 4, [ 0, [ 0, 23, false ], null ], 1980.0, 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_spider": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?", "question": "在“1980”年之前生产或“8”缸的汽车最大MPG是多少?", "question_cspider": "在“1980”年之前生产或“8”缸的汽车最大MPG是多少?", "bleu_from_cspider_question": "BLEU = 57.87, 91.7/69.6/54.5/38.1 (BP=0.959, ratio=0.960, hyp_len=24, ref_len=25)", "question_toks": [ "八", "缸", "或", "1", "9", "8", "0", "年", "前", "生", "产", "的", "汽", "车", "的", "最", "大", "m", "p", "g", "是", "多", "少", "?" ], "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.0, null ], "or", [ false, 4, [ 0, [ 0, 23, false ], null ], 1980.0, 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_spider": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", "question": "哪些型号的车比3500轻并且不是“Ford Motor Company”制造?", "question_cspider": "哪些型号的车比3500轻并且不是“Ford Motor Company”制造?", "bleu_from_cspider_question": "BLEU = 31.25, 73.1/40.0/25.0/13.0 (BP=1.000, ratio=1.130, hyp_len=26, ref_len=23)", "question_toks": [ "哪", "些", "车", "型", "比", "3", "5", "0", "0", "轻", ",", "但", "不", "是", "“", "福", "特", "汽", "车", "公", "司", "”", "制", "造", "的", "?" ], "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.0, 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_spider": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?", "question": "不是“Ford Motor Company”制造的车中,哪些型号的车比3500轻?", "question_cspider": "不是“Ford Motor Company”制造的车中,哪些型号的车比3500轻?", "bleu_from_cspider_question": "BLEU = 32.73, 66.7/39.1/27.3/19.0 (BP=0.959, ratio=0.960, hyp_len=24, ref_len=25)", "question_toks": [ "有", "哪", "些", "比", "3", "5", "0", "0", "轻", "但", "福", "特", "汽", "车", "公", "司", "没", "有", "制", "造", "的", "车", "型", "?" ], "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.0, 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_spider": "What are the name of the countries where there is not a single car maker?", "question": "没有一个汽车制造商的国家的名字是什么?", "question_cspider": "没有一个汽车制造商的国家的名字是什么?", "bleu_from_cspider_question": "BLEU = 50.91, 88.9/64.7/43.8/33.3 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", "question_toks": [ "没", "有", "一", "家", "汽", "车", "制", "造", "商", "的", "国", "家", "叫", "什", "么", "名", "字", "?" ], "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_spider": "What are the names of the countries with no car makers?", "question": "没有汽车制造商的国家的名字是什么?", "question_cspider": "没有汽车制造商的国家的名字是什么?", "bleu_from_cspider_question": "BLEU = 63.71, 93.8/73.3/57.1/53.8 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", "question_toks": [ "没", "有", "汽", "车", "制", "造", "商", "的", "国", "家", "叫", "什", "么", "名", "字", "?" ], "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_spider": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "question": "哪家汽车制造商生产至少2种型号的汽车和3种以上的汽车品牌?列出ID和制造商。", "question_cspider": "哪家汽车制造商生产至少2种型号的汽车和3种以上的汽车品牌?列出ID和制造商。", "bleu_from_cspider_question": "BLEU = 52.81, 77.1/58.8/51.5/46.9 (BP=0.918, ratio=0.921, hyp_len=35, ref_len=38)", "question_toks": [ "哪", "些", "汽", "车", "制", "造", "商", "生", "产", "至", "少", "2", "种", "车", "型", "且", "超", "过", "3", "个", "汽", "车", "制", "造", "商", "?", "列", "出", "I", "D", "和", "制", "造", "商", "。" ], "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.0, 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.0, 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_spider": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", "question": "所有生产至少2种车型、生产超过3种汽车品牌的汽车制造商的ID和制造商是什么?", "question_cspider": "所有生产至少2种车型、生产超过3种汽车品牌的汽车制造商的ID和制造商是什么?", "bleu_from_cspider_question": "BLEU = 65.85, 88.9/74.3/61.8/57.6 (BP=0.946, ratio=0.947, hyp_len=36, ref_len=38)", "question_toks": [ "所", "有", "生", "产", "至", "少", "2", "种", "模", "型", "且", "生", "产", "3", "种", "以", "上", "汽", "车", "的", "汽", "车", "制", "造", "商", "的", "I", "D", "和", "制", "造", "商", "是", "什", "么", "?" ], "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.0, 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.0, 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_spider": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question": "拥有3家以上汽车制造商或生产“fiat model”车型的国家的ID和名称是什么?", "question_cspider": "拥有3家以General Motors车制造商或生产“fiat model”车型的国家的ID和名称是什么?", "bleu_from_cspider_question": "BLEU = 66.44, 81.1/72.2/62.9/52.9 (BP=1.000, ratio=1.121, hyp_len=37, ref_len=33)", "question_toks": [ "拥", "有", "3", "个", "以", "上", "汽", "车", "制", "造", "商", "或", "生", "产", "“", "菲", "亚", "特", "”", "车", "型", "的", "国", "家", "/", "地", "区", "的", "I", "D", "和", "名", "称", "是", "什", "么", "?" ], "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.0, 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_spider": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "question": "哪些国家有3种以上汽车制造商或生产“fiat model”,它们的ID和名称是什么?", "question_cspider": "哪些国家有3种以General Motors车制造商或生产“fiat model”,它们的ID和名称是什么?", "bleu_from_cspider_question": "BLEU = 52.51, 66.7/57.1/47.1/42.4 (BP=1.000, ratio=1.059, hyp_len=36, ref_len=34)", "question_toks": [ "拥", "有", "3", "个", "以", "上", "汽", "车", "制", "造", "商", "或", "生", "产", "法", "定", "车", "型", "的", "所", "有", "国", "家", "/", "地", "区", "的", "I", "D", "和", "名", "称", "是", "什", "么", "?" ], "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.0, 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 } } ]