diff --git "a/dataset/multispider/with_original_value/dev_zh.json" "b/dataset/multispider/with_original_value/dev_zh.json" new file mode 100644--- /dev/null +++ "b/dataset/multispider/with_original_value/dev_zh.json" @@ -0,0 +1,130845 @@ +[ + { + "db_id": "concert_singer", + "query": "SELECT count(*) FROM singer", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "singer" + ], + "question_spider": "How many singers do we have?", + "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=8, ref_len=8)", + "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": "concert_singer", + "query": "SELECT count(*) FROM singer", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "singer" + ], + "question_spider": "What is the total number of singers?", + "question": "歌手的总数是多少?", + "question_cspider": "歌手的总数是多少?", + "bleu_from_cspider_question": "BLEU = 67.53, 100.0/85.7/66.7/60.0 (BP=0.882, ratio=0.889, hyp_len=8, ref_len=9)", + "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": "concert_singer", + "query": "SELECT name , country , age FROM singer ORDER BY age DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "country", + ",", + "age", + "FROM", + "singer", + "ORDER", + "BY", + "age", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "country", + ",", + "age", + "from", + "singer", + "order", + "by", + "age", + "desc" + ], + "question_spider": "Show name, country, age for all singers ordered by age from the oldest to the youngest.", + "question": "按歌手年龄从最大到最小,显示每个歌手的姓名、国家、年龄。", + "question_cspider": "按歌手年龄从最大到最小,显示每个歌手的姓名、国家、年龄。", + "bleu_from_cspider_question": "BLEU = 23.92, 74.1/38.5/16.0/8.3 (BP=0.964, ratio=0.964, hyp_len=27, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , country , age FROM singer ORDER BY age DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "country", + ",", + "age", + "FROM", + "singer", + "ORDER", + "BY", + "age", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "country", + ",", + "age", + "from", + "singer", + "order", + "by", + "age", + "desc" + ], + "question_spider": "What are the names, countries, and ages for every singer in descending order of age?", + "question": "按年龄降序,每个歌手的名字、国家、年龄是什么?", + "question_cspider": "按年龄降序,每个歌手的名字、国家、年龄是什么?", + "bleu_from_cspider_question": "BLEU = 37.32, 81.0/50.0/31.6/22.2 (BP=0.909, ratio=0.913, hyp_len=21, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + ",", + "min", + "(", + "age", + ")", + ",", + "max", + "(", + "age", + ")", + "FROM", + "singer", + "WHERE", + "country", + "=", + "'France", + "'" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + ",", + "min", + "(", + "age", + ")", + ",", + "max", + "(", + "age", + ")", + "from", + "singer", + "where", + "country", + "=", + "value" + ], + "question_spider": "What is the average, minimum, and maximum age of all singers from France?", + "question": "法国所有歌手的平均年龄、最小年龄和最大年龄是多少?", + "question_cspider": "法国所有歌手的平均年龄、最小年龄和最大年龄是多少?", + "bleu_from_cspider_question": "BLEU = 56.08, 78.6/63.0/50.0/40.0 (BP=1.000, ratio=1.120, hyp_len=28, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"France\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + ",", + "min", + "(", + "age", + ")", + ",", + "max", + "(", + "age", + ")", + "FROM", + "singer", + "WHERE", + "country", + "=", + "'France", + "'" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + ",", + "min", + "(", + "age", + ")", + ",", + "max", + "(", + "age", + ")", + "from", + "singer", + "where", + "country", + "=", + "value" + ], + "question_spider": "What is the average, minimum, and maximum age for all French singers?", + "question": "所有法国歌手的平均年龄、最小年龄和最大年龄是多少?", + "question_cspider": "所有法国歌手的平均年龄、最小年龄和最大年龄是多少?", + "bleu_from_cspider_question": "BLEU = 69.61, 88.0/75.0/65.2/54.5 (BP=1.000, ratio=1.000, hyp_len=25, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"France\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", + "query_toks": [ + "SELECT", + "song_name", + ",", + "song_release_year", + "FROM", + "singer", + "ORDER", + "BY", + "age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "song_name", + ",", + "song_release_year", + "from", + "singer", + "order", + "by", + "age", + "limit", + "value" + ], + "question_spider": "Show the name and the release year of the song by the youngest singer.", + "question": "显示最年轻歌手的歌曲名和歌曲发行年份。", + "question_cspider": "显示最年轻歌手的歌曲的名字和发行年份。", + "bleu_from_cspider_question": "BLEU = 70.38, 100.0/93.8/73.3/57.1 (BP=0.889, ratio=0.895, hyp_len=17, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", + "query_toks": [ + "SELECT", + "song_name", + ",", + "song_release_year", + "FROM", + "singer", + "ORDER", + "BY", + "age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "song_name", + ",", + "song_release_year", + "from", + "singer", + "order", + "by", + "age", + "limit", + "value" + ], + "question_spider": "What are the names and release years for all the songs of the youngest singer?", + "question": "最年轻歌手的所有歌曲的名字和发行年份是什么?", + "question_cspider": "最年轻歌手的所有歌曲的名字和发行年是多少?", + "bleu_from_cspider_question": "BLEU = 61.66, 87.0/72.7/57.1/40.0 (BP=1.000, ratio=1.095, hyp_len=23, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT DISTINCT country FROM singer WHERE age > 20", + "query_toks": [ + "SELECT", + "DISTINCT", + "country", + "FROM", + "singer", + "WHERE", + "age", + ">", + "20" + ], + "query_toks_no_value": [ + "select", + "distinct", + "country", + "from", + "singer", + "where", + "age", + ">", + "value" + ], + "question_spider": "What are all distinct countries where singers above age 20 are from?", + "question": "20岁以上的歌手来自哪些不同国家?", + "question_cspider": "20岁以上的歌手来自哪些不同国家?", + "bleu_from_cspider_question": "BLEU = 59.24, 70.8/60.9/54.5/52.4 (BP=1.000, ratio=1.412, hyp_len=24, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 20.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT DISTINCT country FROM singer WHERE age > 20", + "query_toks": [ + "SELECT", + "DISTINCT", + "country", + "FROM", + "singer", + "WHERE", + "age", + ">", + "20" + ], + "query_toks_no_value": [ + "select", + "distinct", + "country", + "from", + "singer", + "where", + "age", + ">", + "value" + ], + "question_spider": "What are the different countries with singers above age 20?", + "question": "哪些国家有20岁以上的歌手?", + "question_cspider": "哪些国家有20岁以上的歌手?", + "bleu_from_cspider_question": "BLEU = 42.46, 70.0/47.4/33.3/29.4 (BP=1.000, ratio=1.429, hyp_len=20, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 20.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT country , count(*) FROM singer GROUP BY country", + "query_toks": [ + "SELECT", + "country", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "country" + ], + "query_toks_no_value": [ + "select", + "country", + ",", + "count", + "(", + "*", + ")", + "from", + "singer", + "group", + "by", + "country" + ], + "question_spider": "Show all countries and the number of singers in each country.", + "question": "显示所有不同国家和每个国家的歌手数量。", + "question_cspider": "显示所有不同国家和每个国家的歌手数量。", + "bleu_from_cspider_question": "BLEU = 26.97, 62.5/39.1/22.7/9.5 (BP=1.000, ratio=1.263, hyp_len=24, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT country , count(*) FROM singer GROUP BY country", + "query_toks": [ + "SELECT", + "country", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "country" + ], + "query_toks_no_value": [ + "select", + "country", + ",", + "count", + "(", + "*", + ")", + "from", + "singer", + "group", + "by", + "country" + ], + "question_spider": "How many singers are from each country?", + "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=10, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", + "query_toks": [ + "SELECT", + "song_name", + "FROM", + "singer", + "WHERE", + "age", + ">", + "(", + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "singer", + ")" + ], + "query_toks_no_value": [ + "select", + "song_name", + "from", + "singer", + "where", + "age", + ">", + "(", + "select", + "avg", + "(", + "age", + ")", + "from", + "singer", + ")" + ], + "question_spider": "List all song names by singers above the average age.", + "question": "列出高于平均年龄的歌手的所有歌名。", + "question_cspider": "列出高于平均年龄的歌手的所有歌名。", + "bleu_from_cspider_question": "BLEU = 53.63, 71.4/55.0/47.4/44.4 (BP=1.000, ratio=1.235, hyp_len=21, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + 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": "concert_singer", + "query": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", + "query_toks": [ + "SELECT", + "song_name", + "FROM", + "singer", + "WHERE", + "age", + ">", + "(", + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "singer", + ")" + ], + "query_toks_no_value": [ + "select", + "song_name", + "from", + "singer", + "where", + "age", + ">", + "(", + "select", + "avg", + "(", + "age", + ")", + "from", + "singer", + ")" + ], + "question_spider": "What are all the song names by singers who are older than average?", + "question": "年龄高于平均年龄的歌手的所有歌名有哪些?", + "question_cspider": "年龄高于平均年龄的歌手的所有歌名有哪些?", + "bleu_from_cspider_question": "BLEU = 26.38, 58.8/43.8/26.7/14.3 (BP=0.838, ratio=0.850, hyp_len=17, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + 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": "concert_singer", + "query": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", + "query_toks": [ + "SELECT", + "LOCATION", + ",", + "name", + "FROM", + "stadium", + "WHERE", + "capacity", + "BETWEEN", + "5000", + "AND", + "10000" + ], + "query_toks_no_value": [ + "select", + "location", + ",", + "name", + "from", + "stadium", + "where", + "capacity", + "between", + "value", + "and", + "value" + ], + "question_spider": "Show location and name for all stadiums with a capacity between 5000 and 10000.", + "question": "显示容量在5000到10000之间的所有体育场馆的位置和名称。", + "question_cspider": "显示容量在5000到10000之间的所有体育场馆的位置和名称。", + "bleu_from_cspider_question": "BLEU = 91.39, 100.0/96.6/92.9/88.9 (BP=0.967, ratio=0.968, hyp_len=30, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 5000.0, + 10000.0 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", + "query_toks": [ + "SELECT", + "LOCATION", + ",", + "name", + "FROM", + "stadium", + "WHERE", + "capacity", + "BETWEEN", + "5000", + "AND", + "10000" + ], + "query_toks_no_value": [ + "select", + "location", + ",", + "name", + "from", + "stadium", + "where", + "capacity", + "between", + "value", + "and", + "value" + ], + "question_spider": "What are the locations and names of all stations with capacity between 5000 and 10000?", + "question": "容量在5000到10000之间的所有体育场的位置和名称是什么?", + "question_cspider": "容量在5000到10000之间的所有体育场的位置和名称是什么?", + "bleu_from_cspider_question": "BLEU = 84.57, 93.3/89.7/85.7/81.5 (BP=0.967, ratio=0.968, hyp_len=30, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 5000.0, + 10000.0 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select max(capacity), average from stadium", + "query_toks": [ + "select", + "max", + "(", + "capacity", + ")", + ",", + "average", + "from", + "stadium" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "capacity", + ")", + ",", + "average", + "from", + "stadium" + ], + "question_spider": "What is the maximum capacity and the average of all stadiums ?", + "question": "所有体育场的平均容量和最大容量是多少?", + "question_cspider": "所有体育场的平均容量和最大容量是多少?", + "bleu_from_cspider_question": "BLEU = 76.35, 100.0/88.9/76.5/50.0 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select avg(capacity) , max(capacity) from stadium", + "query_toks": [ + "select", + "avg", + "(", + "capacity", + ")", + ",", + "max", + "(", + "capacity", + ")", + "from", + "stadium" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "capacity", + ")", + ",", + "max", + "(", + "capacity", + ")", + "from", + "stadium" + ], + "question_spider": "What is the average and maximum capacities for all stadiums ?", + "question": "所有体育场的平均容量和最大容量是多少?", + "question_cspider": "所有体育场的平均容量和最大容量是多少?", + "bleu_from_cspider_question": "BLEU = 69.13, 94.4/82.4/68.8/53.3 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", + "query_toks": [ + "SELECT", + "name", + ",", + "capacity", + "FROM", + "stadium", + "ORDER", + "BY", + "average", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "capacity", + "from", + "stadium", + "order", + "by", + "average", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name and capacity for the stadium with highest average attendance?", + "question": "平均到场率最高的体育场名称和容量是多少?", + "question_cspider": "平均到场率最高的体育场名称和容量是多少?", + "bleu_from_cspider_question": "BLEU = 68.92, 85.7/75.0/63.2/55.6 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", + "query_toks": [ + "SELECT", + "name", + ",", + "capacity", + "FROM", + "stadium", + "ORDER", + "BY", + "average", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "capacity", + "from", + "stadium", + "order", + "by", + "average", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name and capacity for the stadium with the highest average attendance?", + "question": "平均到场率最高的体育场的名称是什么,有多少容量?", + "question_cspider": "平均到场率最高的体育场的名称是什么,有多少容量?", + "bleu_from_cspider_question": "BLEU = 46.70, 85.7/60.0/42.1/38.9 (BP=0.867, ratio=0.875, hyp_len=21, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "concert", + "WHERE", + "YEAR", + "=", + "2014", + "OR", + "YEAR", + "=", + "2015" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "year", + "=", + "value", + "or", + "year", + "=", + "value" + ], + "question_spider": "How many concerts are there in year 2014 or 2015?", + "question": "2014或2015年有多少演唱会?", + "question_cspider": "2014或2015年有多少演唱会?", + "bleu_from_cspider_question": "BLEU = 65.16, 76.5/68.8/60.0/57.1 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2015.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "concert", + "WHERE", + "YEAR", + "=", + "2014", + "OR", + "YEAR", + "=", + "2015" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "year", + "=", + "value", + "or", + "year", + "=", + "value" + ], + "question_spider": "How many concerts occurred in 2014 or 2015?", + "question": "有多少演唱会在2014或2015年?", + "question_cspider": "有多少演唱会在2014或2015年?", + "bleu_from_cspider_question": "BLEU = 38.09, 66.7/45.0/31.6/22.2 (BP=1.000, ratio=1.167, hyp_len=21, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2015.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "GROUP", + "BY", + "T1.stadium_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "group", + "by", + "t1", + ".", + "stadium_id" + ], + "question_spider": "Show the stadium name and the number of concerts in each stadium.", + "question": "显示体育场的名称和每个体育场举办音乐会的数量。", + "question_cspider": "显示体育场的名称和每个体育场举办音乐会的数量。", + "bleu_from_cspider_question": "BLEU = 57.65, 95.0/73.7/61.1/47.1 (BP=0.861, ratio=0.870, hyp_len=20, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "GROUP", + "BY", + "T1.stadium_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "group", + "by", + "t1", + ".", + "stadium_id" + ], + "question_spider": "For each stadium, how many concerts play 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=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "T2.capacity", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.year", + ">", + "=", + "2014", + "GROUP", + "BY", + "T2.stadium_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "capacity", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + ">", + "=", + "value", + "group", + "by", + "t2", + ".", + "stadium_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", + "question": "在2014年或之后举办最多场���乐会的体育场的名称和容量。", + "question_cspider": "在2014年或之后举办的音乐会最多的体育场的名称和容量。", + "bleu_from_cspider_question": "BLEU = 42.83, 71.0/50.0/37.9/25.0 (BP=1.000, ratio=1.107, hyp_len=31, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 5, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014.0, + null + ] + ], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1", + "query_toks": [ + "select", + "t2.name", + ",", + "t2.capacity", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1.stadium_id", + "=", + "t2.stadium_id", + "where", + "t1.year", + ">", + "2013", + "group", + "by", + "t2.stadium_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "capacity", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + ">", + "value", + "group", + "by", + "t2", + ".", + "stadium_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name and capacity of the stadium with the most concerts after 2013 ?", + "question": "在2013年以后举办音乐会最多的体育场名称和容量是多少?", + "question_cspider": "在2013年以后音乐会最多的体育场名称和容量是多少?", + "bleu_from_cspider_question": "BLEU = 56.63, 85.7/66.7/50.0/36.0 (BP=1.000, ratio=1.077, hyp_len=28, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2013.0, + null + ] + ], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "YEAR", + "FROM", + "concert", + "GROUP", + "BY", + "YEAR", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "year", + "from", + "concert", + "group", + "by", + "year", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which year has most number of concerts?", + "question": "哪一年音乐会最多?", + "question_cspider": "哪一年音乐会最多?", + "bleu_from_cspider_question": "BLEU = 53.11, 75.0/63.6/50.0/33.3 (BP=1.000, ratio=1.333, hyp_len=12, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "YEAR", + "FROM", + "concert", + "GROUP", + "BY", + "YEAR", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "year", + "from", + "concert", + "group", + "by", + "year", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the year that had the most concerts?", + "question": "音乐会最多的是哪一年?", + "question_cspider": "音乐会最多的是哪一年?", + "bleu_from_cspider_question": "BLEU = 67.03, 84.6/75.0/63.6/50.0 (BP=1.000, ratio=1.182, hyp_len=13, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "stadium", + "WHERE", + "stadium_id", + "NOT", + "IN", + "(", + "SELECT", + "stadium_id", + "FROM", + "concert", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "stadium", + "where", + "stadium_id", + "not", + "in", + "(", + "select", + "stadium_id", + "from", + "concert", + ")" + ], + "question_spider": "Show the stadium names without any concert.", + "question": "没举办过音乐会的体育场的名称。", + "question_cspider": "没有音乐会的体育场的名称。", + "bleu_from_cspider_question": "BLEU = 23.97, 60.0/42.1/22.2/5.9 (BP=1.000, ratio=1.538, hyp_len=20, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + 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": "concert_singer", + "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "stadium", + "WHERE", + "stadium_id", + "NOT", + "IN", + "(", + "SELECT", + "stadium_id", + "FROM", + "concert", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "stadium", + "where", + "stadium_id", + "not", + "in", + "(", + "select", + "stadium_id", + "from", + "concert", + ")" + ], + "question_spider": "What are the names of the stadiums without any concerts?", + "question": "没有音乐会的体育场名称是什么?", + "question_cspider": "没有音乐会的体育场名称是什么?", + "bleu_from_cspider_question": "BLEU = 78.28, 88.2/81.2/73.3/71.4 (BP=1.000, ratio=1.133, hyp_len=17, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + 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": "concert_singer", + "query": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30", + "query_toks": [ + "SELECT", + "country", + "FROM", + "singer", + "WHERE", + "age", + ">", + "40", + "INTERSECT", + "SELECT", + "country", + "FROM", + "singer", + "WHERE", + "age", + "<", + "30" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "singer", + "where", + "age", + ">", + "value", + "intersect", + "select", + "country", + "from", + "singer", + "where", + "age", + "<", + "value" + ], + "question_spider": "Show countries where a singer above age 40 and a singer below 30 are from.", + "question": "显示40岁以上和30岁以下的歌手所来自的国家。", + "question_cspider": "显示40岁以上和30岁以下的歌手所来自的国家。", + "bleu_from_cspider_question": "BLEU = 42.55, 80.8/56.0/33.3/21.7 (BP=1.000, ratio=1.130, hyp_len=26, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 40.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 30.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", + "query_toks": [ + "SELECT", + "name", + "FROM", + "stadium", + "EXCEPT", + "SELECT", + "T2.name", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.year", + "=", + "2014" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "stadium", + "except", + "select", + "t2", + ".", + "name", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value" + ], + "question_spider": "Show names for all stadiums except for stadiums having a concert in year 2014.", + "question": "显示除了2014年有举办音乐会的场馆外的所有体育场的名称。", + "question_cspider": "显示除了2014年有音乐会的场馆外的所有体育场的名称。", + "bleu_from_cspider_question": "BLEU = 48.04, 79.3/53.6/40.7/30.8 (BP=1.000, ratio=1.074, hyp_len=29, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", + "query_toks": [ + "SELECT", + "name", + "FROM", + "stadium", + "EXCEPT", + "SELECT", + "T2.name", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.year", + "=", + "2014" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "stadium", + "except", + "select", + "t2", + ".", + "name", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value" + ], + "question_spider": "What are the names of all stadiums that did not have a concert in 2014?", + "question": "2014年没有举办音乐会的所有体育场名称是什么?", + "question_cspider": "2014年没有举办音乐会的所有体育场名称是什么?", + "bleu_from_cspider_question": "BLEU = 63.40, 77.8/69.2/60.0/50.0 (BP=1.000, ratio=1.125, hyp_len=27, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.concert_name , T2.theme , count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id", + "query_toks": [ + "SELECT", + "T2.concert_name", + ",", + "T2.theme", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "concert", + "AS", + "T2", + "ON", + "T1.concert_id", + "=", + "T2.concert_id", + "GROUP", + "BY", + "T2.concert_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "concert_name", + ",", + "t2", + ".", + "theme", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "concert", + "as", + "t2", + "on", + "t1", + ".", + "concert_id", + "=", + "t2", + ".", + "concert_id", + "group", + "by", + "t2", + ".", + "concert_id" + ], + "question_spider": "Show the name and theme for all concerts and the number of singers in each concert.", + "question": "显示所有音乐会的名称和主题以及每场音乐会的歌手人数。", + "question_cspider": "显示所有音乐会的名称和主题以及每场音乐会的歌手人数。", + "bleu_from_cspider_question": "BLEU = 79.38, 92.6/84.6/76.0/66.7 (BP=1.000, ratio=1.038, hyp_len=27, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select t2.concert_name , t2.theme , count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id", + "query_toks": [ + "select", + "t2.concert_name", + ",", + "t2.theme", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "concert", + "as", + "t2", + "on", + "t1.concert_id", + "=", + "t2.concert_id", + "group", + "by", + "t2.concert_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "concert_name", + ",", + "t2", + ".", + "theme", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "concert", + "as", + "t2", + "on", + "t1", + ".", + "concert_id", + "=", + "t2", + ".", + "concert_id", + "group", + "by", + "t2", + ".", + "concert_id" + ], + "question_spider": "What are the names , themes , and number of singers for every concert ?", + "question": "每场演唱会的名称、主题和歌手数量是多少?", + "question_cspider": "每场演唱会的名称、主题和歌手数量是多少?", + "bleu_from_cspider_question": "BLEU = 45.37, 80.0/57.9/38.9/23.5 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "singer", + "AS", + "T2", + "ON", + "T1.singer_id", + "=", + "T2.singer_id", + "GROUP", + "BY", + "T2.singer_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "singer", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t2", + ".", + "singer_id" + ], + "question_spider": "List singer names and number of concerts for each singer.", + "question": "列出歌手的名字和每个歌手的演唱会的次数。", + "question_cspider": "列出歌手的名字和每个歌手的演唱会的次数。", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "singer", + "AS", + "T2", + "ON", + "T1.singer_id", + "=", + "T2.singer_id", + "GROUP", + "BY", + "T2.singer_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "singer", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t2", + ".", + "singer_id" + ], + "question_spider": "What are the names of the singers and number of concerts for each person?", + "question": "每个歌手的名字和演唱会的数量是多少?", + "question_cspider": "每个歌手的名字和演唱会的数量是多少?", + "bleu_from_cspider_question": "BLEU = 41.95, 84.2/55.6/35.3/18.8 (BP=1.000, ratio=1.056, hyp_len=19, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "singer", + "AS", + "T2", + "ON", + "T1.singer_id", + "=", + "T2.singer_id", + "JOIN", + "concert", + "AS", + "T3", + "ON", + "T1.concert_id", + "=", + "T3.concert_id", + "WHERE", + "T3.year", + "=", + "2014" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "singer", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "join", + "concert", + "as", + "t3", + "on", + "t1", + ".", + "concert_id", + "=", + "t3", + ".", + "concert_id", + "where", + "t3", + ".", + "year", + "=", + "value" + ], + "question_spider": "List all singer names in concerts in year 2014.", + "question": "列出2014年音乐会上所有歌手的名字。", + "question_cspider": "列出2014年音乐会上所有歌手的名字。", + "bleu_from_cspider_question": "BLEU = 47.47, 78.9/50.0/41.2/31.2 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "singer", + "AS", + "T2", + "ON", + "T1.singer_id", + "=", + "T2.singer_id", + "JOIN", + "concert", + "AS", + "T3", + "ON", + "T1.concert_id", + "=", + "T3.concert_id", + "WHERE", + "T3.year", + "=", + "2014" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "singer", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "join", + "concert", + "as", + "t3", + "on", + "t1", + ".", + "concert_id", + "=", + "t3", + ".", + "concert_id", + "where", + "t3", + ".", + "year", + "=", + "value" + ], + "question_spider": "What are the names of the singers who performed in a concert in 2014?", + "question": "2014年在演唱会上演唱的歌手的名字是什么?", + "question_cspider": "2014年在演唱会上演唱的歌手的名字是什么?", + "bleu_from_cspider_question": "BLEU = 30.49, 94.1/62.5/33.3/14.3 (BP=0.745, ratio=0.773, hyp_len=17, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", + "query_toks": [ + "SELECT", + "name", + ",", + "country", + "FROM", + "singer", + "WHERE", + "song_name", + "LIKE", + "'", + "%", + "Hey", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "country", + "from", + "singer", + "where", + "song_name", + "like", + "value" + ], + "question_spider": "what is the name and nation of the singer who have a song having 'Hey' in its name?", + "question": "歌名含有“你”的歌的歌手的名字和国籍是什么?", + "question_cspider": "有首歌名含有“你”的歌手的名字和国籍是什么?", + "bleu_from_cspider_question": "BLEU = 24.13, 52.2/22.7/19.0/15.0 (BP=1.000, ratio=1.045, hyp_len=23, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"%Hey%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", + "query_toks": [ + "SELECT", + "name", + ",", + "country", + "FROM", + "singer", + "WHERE", + "song_name", + "LIKE", + "'", + "%", + "Hey", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "country", + "from", + "singer", + "where", + "song_name", + "like", + "value" + ], + "question_spider": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?", + "question": "歌名中有“你”这个词的所有歌手的姓名和原籍国是什么?", + "question_cspider": "歌名中有“你”这个词的所有歌手的姓名和原籍国是什么?", + "bleu_from_cspider_question": "BLEU = 16.13, 57.1/35.0/15.8/5.6 (BP=0.788, ratio=0.808, hyp_len=21, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"%Hey%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "T2.location", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.Year", + "=", + "2014", + "INTERSECT", + "SELECT", + "T2.name", + ",", + "T2.location", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.Year", + "=", + "2015" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "location", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value", + "intersect", + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "location", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value" + ], + "question_spider": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", + "question": "找出同时在2014年和2015年举办音乐会的场馆的名称和地点。", + "question_cspider": "找出同时在2014年和2015年举办音乐会的场馆的名称和地点。", + "bleu_from_cspider_question": "BLEU = 48.52, 71.9/51.6/43.3/34.5 (BP=1.000, ratio=1.032, hyp_len=32, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2015.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "T2.location", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.Year", + "=", + "2014", + "INTERSECT", + "SELECT", + "T2.name", + ",", + "T2.location", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.Year", + "=", + "2015" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "location", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value", + "intersect", + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "location", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value" + ], + "question_spider": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", + "question": "在2014年和2015年同时举办音乐会的场馆名称和地点有哪些?", + "question_cspider": "在2014年和2015年同时举办音乐会的场馆名称和地点有哪些?", + "bleu_from_cspider_question": "BLEU = 54.48, 77.4/60.0/48.3/39.3 (BP=1.000, ratio=1.000, hyp_len=31, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2015.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "stadium_id", + "=", + "(", + "select", + "stadium_id", + "from", + "stadium", + "order", + "by", + "capacity", + "desc", + "limit", + "1", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "stadium_id", + "=", + "(", + "select", + "stadium_id", + "from", + "stadium", + "order", + "by", + "capacity", + "desc", + "limit", + "value", + ")" + ], + "question_spider": "Find the number of concerts happened in the stadium with the highest capacity .", + "question": "最大容量的体育场举办的音乐会数量。", + "question_cspider": "找出有着最大容量的体育场举办的音乐会数量。", + "bleu_from_cspider_question": "BLEU = 22.63, 94.1/50.0/20.0/7.1 (BP=0.790, ratio=0.810, hyp_len=17, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "stadium_id", + "=", + "(", + "select", + "stadium_id", + "from", + "stadium", + "order", + "by", + "capacity", + "desc", + "limit", + "1", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "stadium_id", + "=", + "(", + "select", + "stadium_id", + "from", + "stadium", + "order", + "by", + "capacity", + "desc", + "limit", + "value", + ")" + ], + "question_spider": "What are the number of concerts that occurred in the stadium with the largest capacity ?", + "question": "在容量最大的体育场里有多少场音乐会?", + "question_cspider": "在容量最大的体育场里有多少场音乐会?", + "bleu_from_cspider_question": "BLEU = 47.98, 80.0/57.9/38.9/29.4 (BP=1.000, ratio=1.111, hyp_len=20, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM pets WHERE weight > 10", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "pets", + "WHERE", + "weight", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "pets", + "where", + "weight", + ">", + "value" + ], + "question_spider": "Find the number of pets whose weight is heavier than 10.", + "question": "找出体重大于10的宠物的数量。", + "question_cspider": "找出体重大于10的宠物的数量。", + "bleu_from_cspider_question": "BLEU = 37.26, 78.6/53.8/33.3/18.2 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + 10.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM pets WHERE weight > 10", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "pets", + "WHERE", + "weight", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "pets", + "where", + "weight", + ">", + "value" + ], + "question_spider": "How many pets have a greater weight than 10?", + "question": "有多少宠物的体重比10大?", + "question_cspider": "有多少宠物的体重比10大?", + "bleu_from_cspider_question": "BLEU = 40.90, 85.7/53.8/33.3/18.2 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + 10.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", + "query_toks": [ + "SELECT", + "weight", + "FROM", + "pets", + "ORDER", + "BY", + "pet_age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "weight", + "from", + "pets", + "order", + "by", + "pet_age", + "limit", + "value" + ], + "question_spider": "Find the weight of the youngest dog.", + "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=11, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", + "query_toks": [ + "SELECT", + "weight", + "FROM", + "pets", + "ORDER", + "BY", + "pet_age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "weight", + "from", + "pets", + "order", + "by", + "pet_age", + "limit", + "value" + ], + "question_spider": "How much does the youngest dog weigh?", + "question": "年龄最小的狗有多重?", + "question_cspider": "最年轻的狗有多重?", + "bleu_from_cspider_question": "BLEU = 0.00, 75.0/14.3/0.0/0.0 (BP=0.882, ratio=0.889, hyp_len=8, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT max(weight) , petType FROM pets GROUP BY petType", + "query_toks": [ + "SELECT", + "max", + "(", + "weight", + ")", + ",", + "petType", + "FROM", + "pets", + "GROUP", + "BY", + "petType" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "weight", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question_spider": "Find the maximum weight for each type of pet. List the maximum weight and pet type.", + "question": "找出每种宠物的最大重量。列出最大重量和宠物类型。", + "question_cspider": "找出每种宠物的最大重量。列出最大重量和宠物类型。", + "bleu_from_cspider_question": "BLEU = 92.11, 95.8/91.3/90.9/90.5 (BP=1.000, ratio=1.000, hyp_len=24, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT max(weight) , petType FROM pets GROUP BY petType", + "query_toks": [ + "SELECT", + "max", + "(", + "weight", + ")", + ",", + "petType", + "FROM", + "pets", + "GROUP", + "BY", + "petType" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "weight", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question_spider": "List the maximum weight and type for each type of pet.", + "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=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "WHERE", + "T1.age", + ">", + "20" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "where", + "t1", + ".", + "age", + ">", + "value" + ], + "question_spider": "Find number of pets owned by students who are older than 20.", + "question": "找出20岁以上学生拥有的宠物数量。", + "question_cspider": "找出20岁以上学生拥有的宠物数量。", + "bleu_from_cspider_question": "BLEU = 65.31, 88.2/68.8/60.0/50.0 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 20.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "WHERE", + "T1.age", + ">", + "20" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "where", + "t1", + ".", + "age", + ">", + "value" + ], + "question_spider": "How many pets are owned by students that have an age greater than 20?", + "question": "年龄大于20岁的学生拥有多少宠物?", + "question_cspider": "年龄大于20岁的学生拥有多少宠物?", + "bleu_from_cspider_question": "BLEU = 83.94, 94.4/88.2/81.2/73.3 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 20.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T2.petid", + "=", + "T3.petid", + "WHERE", + "T1.sex", + "=", + "'F", + "'", + "AND", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t2", + ".", + "petid", + "=", + "t3", + ".", + "petid", + "where", + "t1", + ".", + "sex", + "=", + "value", + "and", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "Find the number of dog pets that are raised by female students (with sex F).", + "question": "找出由女学生(性别为“女”)养的宠物狗的数量。", + "question_cspider": "找出由女学生(性别为“女”)养的宠物狗的数量。", + "bleu_from_cspider_question": "BLEU = 42.61, 85.7/55.0/36.8/27.8 (BP=0.909, ratio=0.913, hyp_len=21, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"F\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T2.petid", + "=", + "T3.petid", + "WHERE", + "T1.sex", + "=", + "'F", + "'", + "AND", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t2", + ".", + "petid", + "=", + "t3", + ".", + "petid", + "where", + "t1", + ".", + "sex", + "=", + "value", + "and", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "How many dog pets are raised by female students?", + "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=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"F\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(DISTINCT pettype) FROM pets", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "pettype", + ")", + "FROM", + "pets" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "pettype", + ")", + "from", + "pets" + ], + "question_spider": "Find the number of distinct type of pets.", + "question": "找出不同类型宠物的数量。", + "question_cspider": "找出不同类型宠物的数量。", + "bleu_from_cspider_question": "BLEU = 59.23, 84.6/66.7/54.5/40.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 12, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(DISTINCT pettype) FROM pets", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "pettype", + ")", + "FROM", + "pets" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "pettype", + ")", + "from", + "pets" + ], + "question_spider": "How many different types of pet 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=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 12, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Fname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + "OR", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "or", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "Find the first name of students who have cat or dog pet.", + "question": "查找有猫狗宠物的学生的名字。", + "question_cspider": "查找有猫狗宠物的学生的名字。", + "bleu_from_cspider_question": "BLEU = 80.03, 93.3/85.7/76.9/66.7 (BP=1.000, ratio=1.071, hyp_len=15, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Fname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + "OR", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "or", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "What are the first names of every student who has a cat or dog as a pet?", + "question": "每个猫狗双全的学生叫什么名字?", + "question_cspider": "每一个养猫或狗的学生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 64.87, 80.0/68.4/61.1/52.9 (BP=1.000, ratio=1.176, hyp_len=20, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog'", + "query_toks": [ + "select", + "t1.fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1.stuid", + "=", + "t2.stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3.petid", + "=", + "t2.petid", + "where", + "t3.pettype", + "=", + "\"cat\"", + "intersect", + "select", + "t1.fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1.stuid", + "=", + "t2.stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3.petid", + "=", + "t2.petid", + "where", + "t3.pettype", + "=", + "\"dog\"" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "Find the first name of students who have both cat and dog pets .", + "question": "找出既有猫又有狗的学生的名字。", + "question_cspider": "找出既有猫又有狗的学生的名字。", + "bleu_from_cspider_question": "BLEU = 38.05, 61.1/41.2/31.2/26.7 (BP=1.000, ratio=1.200, hyp_len=18, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "T1.Fname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + "INTERSECT", + "SELECT", + "T1.Fname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "What are the students' first names who have both cats and dogs as pets?", + "question": "有猫又有狗的学生名字是什么?", + "question_cspider": "有猫又有狗的学生名字是什么?", + "bleu_from_cspider_question": "BLEU = 47.98, 70.0/57.9/44.4/29.4 (BP=1.000, ratio=1.429, hyp_len=20, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "query_toks": [ + "SELECT", + "major", + ",", + "age", + "FROM", + "student", + "WHERE", + "stuid", + "NOT", + "IN", + "(", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "major", + ",", + "age", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + ")" + ], + "question_spider": "Find the major and age of students who do not have a cat pet.", + "question": "找到没有宠物猫的学生的专业和年龄。", + "question_cspider": "找到没有宠物猫的学生的专业和年龄。", + "bleu_from_cspider_question": "BLEU = 64.45, 94.1/68.8/53.3/50.0 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "query_toks": [ + "SELECT", + "major", + ",", + "age", + "FROM", + "student", + "WHERE", + "stuid", + "NOT", + "IN", + "(", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "major", + ",", + "age", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + ")" + ], + "question_spider": "What major is every student who does not own a cat as a pet, and also how old are they?", + "question": "每个不养猫的学生都学什么专业?他们多大了?", + "question_cspider": "每个不养猫的学生都学什么专业?他们多大了?", + "bleu_from_cspider_question": "BLEU = 49.63, 70.8/56.5/45.5/33.3 (BP=1.000, ratio=1.143, hyp_len=24, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", + "query_toks": [ + "SELECT", + "stuid", + "FROM", + "student", + "EXCEPT", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'" + ], + "query_toks_no_value": [ + "select", + "stuid", + "from", + "student", + "except", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "Find the id of students who do not have a cat pet.", + "question": "找到没有宠物猫的学生的ID。", + "question_cspider": "找到没有宠物猫的学生的ID。", + "bleu_from_cspider_question": "BLEU = 24.07, 73.3/35.7/15.4/8.3 (BP=1.000, ratio=1.071, hyp_len=15, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "pets_1", + "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", + "query_toks": [ + "SELECT", + "stuid", + "FROM", + "student", + "EXCEPT", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'" + ], + "query_toks_no_value": [ + "select", + "stuid", + "from", + "student", + "except", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "What are the ids of the students who do not own cats as pets?", + "question": "那些没有猫的学生的ID是什么?", + "question_cspider": "那些没有猫的学生的ID是什么?", + "bleu_from_cspider_question": "BLEU = 27.85, 52.6/38.9/23.5/12.5 (BP=1.000, ratio=1.267, hyp_len=19, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "query_toks": [ + "SELECT", + "T1.fname", + ",", + "T1.age", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'dog", + "'", + "AND", + "T1.stuid", + "NOT", + "IN", + "(", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "age", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "and", + "t1", + ".", + "stuid", + "not", + "in", + "(", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + ")" + ], + "question_spider": "Find the first name and age of students who have a dog but do not have a cat as a pet.", + "question": "找出有狗但没有猫的学生的名字和年龄。", + "question_cspider": "找出有狗但没有猫的学生的名字和年龄。", + "bleu_from_cspider_question": "BLEU = 63.51, 77.3/66.7/60.0/52.6 (BP=1.000, ratio=1.222, hyp_len=22, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ], + "and", + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "query_toks": [ + "SELECT", + "T1.fname", + ",", + "T1.age", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'dog", + "'", + "AND", + "T1.stuid", + "NOT", + "IN", + "(", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "age", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "and", + "t1", + ".", + "stuid", + "not", + "in", + "(", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + ")" + ], + "question_spider": "What is the first name of every student who has a dog but does not have a cat?", + "question": "养狗但没有养猫的学生的名字是什么?", + "question_cspider": "养狗但没有养猫的学生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 71.60, 83.3/76.5/68.8/60.0 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ], + "and", + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1", + "query_toks": [ + "SELECT", + "pettype", + ",", + "weight", + "FROM", + "pets", + "ORDER", + "BY", + "pet_age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "pettype", + ",", + "weight", + "from", + "pets", + "order", + "by", + "pet_age", + "limit", + "value" + ], + "question_spider": "Find the type and weight of the youngest pet.", + "question": "找出年龄最小的宠物的类型和体重。", + "question_cspider": "找出最年轻的宠物的类型和体重。", + "bleu_from_cspider_question": "BLEU = 86.66, 93.3/85.7/84.6/83.3 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1", + "query_toks": [ + "SELECT", + "pettype", + ",", + "weight", + "FROM", + "pets", + "ORDER", + "BY", + "pet_age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "pettype", + ",", + "weight", + "from", + "pets", + "order", + "by", + "pet_age", + "limit", + "value" + ], + "question_spider": "What type of pet is the youngest animal, and how much does it weigh?", + "question": "年龄最小的宠物是什么类型的,它的重量是多少?", + "question_cspider": "最年轻的宠物是什么类型的,它的重量是多少?", + "bleu_from_cspider_question": "BLEU = 33.55, 75.0/52.6/33.3/11.8 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT petid , weight FROM pets WHERE pet_age > 1", + "query_toks": [ + "SELECT", + "petid", + ",", + "weight", + "FROM", + "pets", + "WHERE", + "pet_age", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "petid", + ",", + "weight", + "from", + "pets", + "where", + "pet_age", + ">", + "value" + ], + "question_spider": "Find the id and weight of all pets whose age is older than 1.", + "question": "找出所有年龄大于1岁的宠物的ID和体重。", + "question_cspider": "找出所有年龄大于1岁的宠物的ID和体重。", + "bleu_from_cspider_question": "BLEU = 76.15, 94.7/83.3/76.5/68.8 (BP=0.949, ratio=0.950, hyp_len=19, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT petid , weight FROM pets WHERE pet_age > 1", + "query_toks": [ + "SELECT", + "petid", + ",", + "weight", + "FROM", + "pets", + "WHERE", + "pet_age", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "petid", + ",", + "weight", + "from", + "pets", + "where", + "pet_age", + ">", + "value" + ], + "question_spider": "What is the id and weight of every pet who is older than 1?", + "question": "每一个1岁以上的宠物的ID和体重是多少?", + "question_cspider": "每一个1岁以上的宠物的ID和体重是多少?", + "bleu_from_cspider_question": "BLEU = 65.08, 84.2/72.2/64.7/56.2 (BP=0.949, ratio=0.950, hyp_len=19, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype", + "query_toks": [ + "SELECT", + "avg", + "(", + "pet_age", + ")", + ",", + "max", + "(", + "pet_age", + ")", + ",", + "pettype", + "FROM", + "pets", + "GROUP", + "BY", + "pettype" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "pet_age", + ")", + ",", + "max", + "(", + "pet_age", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question_spider": "Find the average and maximum age for each type of pet.", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype", + "query_toks": [ + "SELECT", + "avg", + "(", + "pet_age", + ")", + ",", + "max", + "(", + "pet_age", + ")", + ",", + "pettype", + "FROM", + "pets", + "GROUP", + "BY", + "pettype" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "pet_age", + ")", + ",", + "max", + "(", + "pet_age", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question_spider": "What is the average and maximum age for each pet type?", + "question": "每种宠物的平均年龄和最大年龄是多少?", + "question_cspider": "每种宠物的平均年龄和最大年龄是多少?", + "bleu_from_cspider_question": "BLEU = 83.94, 94.4/88.2/81.2/73.3 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype", + "query_toks": [ + "SELECT", + "avg", + "(", + "weight", + ")", + ",", + "pettype", + "FROM", + "pets", + "GROUP", + "BY", + "pettype" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "weight", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question_spider": "Find the average weight for each pet type.", + "question": "找到每种宠物类型的平均体重。", + "question_cspider": "找到每种宠物类型的平均体重。", + "bleu_from_cspider_question": "BLEU = 70.63, 100.0/90.9/80.0/66.7 (BP=0.846, ratio=0.857, hyp_len=12, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype", + "query_toks": [ + "SELECT", + "avg", + "(", + "weight", + ")", + ",", + "pettype", + "FROM", + "pets", + "GROUP", + "BY", + "pettype" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "weight", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question_spider": "What is the average weight for each type of pet?", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.fname", + ",", + "T1.age", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "age", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid" + ], + "question_spider": "Find the first name and age of students who have a pet.", + "question": "找出有宠物的学生的名字和年龄。", + "question_cspider": "找出有宠物的学生的名字和年龄。", + "bleu_from_cspider_question": "BLEU = 86.66, 93.3/85.7/84.6/83.3 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.fname", + ",", + "T1.age", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "age", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid" + ], + "question_spider": "What are the different first names and ages of the students who do have pets?", + "question": "有宠物的学生有哪些不同的名字和年龄?", + "question_cspider": "有宠物的学生有哪些不同的名字和年龄?", + "bleu_from_cspider_question": "BLEU = 47.63, 66.7/52.9/43.8/33.3 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", + "query_toks": [ + "SELECT", + "T2.petid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "WHERE", + "T1.Lname", + "=", + "'Smith", + "'" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "petid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "where", + "t1", + ".", + "lname", + "=", + "value" + ], + "question_spider": "Find the id of the pet owned by student whose last name is ‘Smith’.", + "question": "找到琳姓学生宠物的ID。", + "question_cspider": "找出有宠物而且姓为“琳”的学生的ID。", + "bleu_from_cspider_question": "BLEU = 24.77, 62.5/34.8/18.2/9.5 (BP=1.000, ratio=1.263, hyp_len=24, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Smith\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", + "query_toks": [ + "SELECT", + "T2.petid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "WHERE", + "T1.Lname", + "=", + "'Smith", + "'" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "petid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "where", + "t1", + ".", + "lname", + "=", + "value" + ], + "question_spider": "What is the id of the pet owned by the student whose last name is 'Smith'?", + "question": "姓琳的学生的宠物的ID是什么?", + "question_cspider": "那个姓“琳”而且有宠物的学生的ID是什么?", + "bleu_from_cspider_question": "BLEU = 20.94, 65.0/36.8/16.7/5.9 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Smith\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "GROUP", + "BY", + "T1.stuid" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "group", + "by", + "t1", + ".", + "stuid" + ], + "question_spider": "Find the number of pets for each student who has any pet and student id.", + "question": "找出每个有宠物的学生的ID和宠物数量。", + "question_cspider": "找出每个有宠物的学生的ID和宠物数量。", + "bleu_from_cspider_question": "BLEU = 40.20, 78.9/50.0/35.3/18.8 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "select count(*) , t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t1.stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1.stuid", + "=", + "t2.stuid", + "group", + "by", + "t1.stuid" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "group", + "by", + "t1", + ".", + "stuid" + ], + "question_spider": "For students who have pets , how many pets does each student have ? list their ids instead of names .", + "question": "对于有宠物的学生,每个学生有多少宠物?", + "question_cspider": "对于有宠物的学生,每个学生有多少宠物?", + "bleu_from_cspider_question": "BLEU = 45.34, 53.1/48.4/43.3/37.9 (BP=1.000, ratio=1.684, hyp_len=32, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "T1.fname", + ",", + "T1.sex", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "GROUP", + "BY", + "T1.stuid", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "sex", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "group", + "by", + "t1", + ".", + "stuid", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Find the first name and gender of student who have more than one pet.", + "question": "找出拥有不止一只宠物的学生的名字和性别。", + "question_cspider": "找出拥有不止一只宠物的学生的名字和性别。", + "bleu_from_cspider_question": "BLEU = 58.83, 82.4/68.8/66.7/64.3 (BP=0.838, ratio=0.850, hyp_len=17, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "T1.fname", + ",", + "T1.sex", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "GROUP", + "BY", + "T1.stuid", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "sex", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "group", + "by", + "t1", + ".", + "stuid", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "What is the first name and gender of the all the students who have more than one pet?", + "question": "所有拥有多只宠物的学生的名和性别是什么?", + "question_cspider": "所有拥有多只宠物的学生的名和性别是什么?", + "bleu_from_cspider_question": "BLEU = 50.99, 82.6/63.6/42.9/30.0 (BP=1.000, ratio=1.150, hyp_len=23, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", + "query_toks": [ + "SELECT", + "T1.lname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pet_age", + "=", + "3", + "AND", + "T3.pettype", + "=", + "'cat", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "lname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pet_age", + "=", + "value", + "and", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "Find the last name of the student who has a cat that is age 3.", + "question": "找出有一只3岁猫的学生的姓氏。", + "question_cspider": "找出有一只3岁猫的学生的姓氏。", + "bleu_from_cspider_question": "BLEU = 65.95, 85.7/69.2/66.7/63.6 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 3.0, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", + "query_toks": [ + "SELECT", + "T1.lname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pet_age", + "=", + "3", + "AND", + "T3.pettype", + "=", + "'cat", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "lname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pet_age", + "=", + "value", + "and", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question_spider": "What is the last name of the student who has a cat that is 3 years old?", + "question": "有一只3岁猫的学生的姓氏是什么?", + "question_cspider": "有一只3岁猫的学生的姓氏是什么?", + "bleu_from_cspider_question": "BLEU = 64.32, 92.9/76.9/66.7/63.6 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 3.0, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", + "query_toks": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "stuid", + "from", + "has_pet", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "stuid", + "from", + "has_pet", + ")" + ], + "question_spider": "Find the average age of students who do not have any pet .", + "question": "找出没有宠物的学生的平均年龄。", + "question_cspider": "找出没有宠物的学生的平均年龄。", + "bleu_from_cspider_question": "BLEU = 92.54, 93.3/92.9/92.3/91.7 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + 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": "pets_1", + "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", + "query_toks": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "stuid", + "from", + "has_pet", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "stuid", + "from", + "has_pet", + ")" + ], + "question_spider": "What is the average age for all students who do not own any pets ?", + "question": "所有没有宠物的学生平均年龄是多少?", + "question_cspider": "所有没有宠物的学生平均年龄是多少?", + "bleu_from_cspider_question": "BLEU = 62.69, 83.3/70.6/56.2/46.7 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + 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 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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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": "“科迈罗”的加速度是多少?", + "question_cspider": "“科迈罗”的加速度是多少?", + "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)", + "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": "“科迈罗”的加速度有多大?", + "question_cspider": "“科迈罗”的加速度有多大?", + "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)", + "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": "法国有多少汽车制造商?", + "question_cspider": "法国有多少汽车制造商?", + "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)", + "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": "法国的汽车制造商有多少?", + "question_cspider": "法国的汽车制造商有多少?", + "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)", + "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": "美国生产了多少款车?", + "question_cspider": "美国生产了多少款车?", + "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)", + "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": "在美国生产的车型有多少?", + "question_cspider": "在美国生产的车型有多少?", + "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)", + "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缸汽车每加仑汽油能行驶的平均英里数是多少?", + "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)", + "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缸汽车每加仑汽油能行驶的平均英里数是多少?", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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": "欧洲哪些国家至少有3家汽车制造商?", + "question_cspider": "欧洲哪些国家至少有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)", + "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家制造商的所有欧洲国家的名称是什么?", + "question_cspider": "拥有至少3家制造商的所有欧洲国家的名称是什么?", + "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)", + "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)", + "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)", + "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": "哪种型号的车最省油?也就是说,每加仑汽油能行驶的英里数最大。", + "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)", + "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)", + "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)", + "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)", + "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": "“吉利”汽车的平均EDISL是多少?", + "question_cspider": "“吉利”汽车的平均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)", + "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": "所有“吉利”汽车的平均EDISCL是多少?", + "question_cspider": "所有“吉利”汽车的平均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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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": "全名为“一汽”的制造商生产了多少种车型?", + "question_cspider": "全名为“一汽”的制造商生产了多少种车型?", + "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)", + "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": "一汽生产了多少种车型?", + "question_cspider": "名为“一汽”的汽车制造商生产的不同汽车型号是多少?", + "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)", + "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)", + "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)", + "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": "哪些车型是“上汽”公司生产的,且3500?", + "question_cspider": "哪些车型是“上汽”公司生产的,或者重量超过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)", + "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": "“上汽”公司生产或重量超过3500的不同车型有哪些?", + "question_cspider": "“上汽”公司生产或重量超过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)", + "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)", + "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)", + "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)", + "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)", + "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": "吉利生产的最小加速度的车型有多少个气缸?", + "question_cspider": "对于“吉利”车型来说,最小加速度的汽车有多少个气缸?", + "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)", + "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": "加速度最小的“吉利”车型有多少个汽缸?", + "question_cspider": "加速度最小的“吉利”车型有多少个汽缸?", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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)", + "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和名称。SELECT", + "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)", + "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)", + "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": "1980年前生产的8缸车每加仑汽油的最大里程是多少?", + "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)", + "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)", + "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轻并且不是“广汽”制造?", + "question_cspider": "哪些型号的车比3500轻并且不是“广汽”制造?", + "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)", + "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": "不是“广汽”制造的车中,哪些型号的车比3500轻?", + "question_cspider": "不是“广汽”制造的车中,哪些型号的车比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)", + "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)", + "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)", + "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)", + "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)", + "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家以上汽车制造商或生产“荣威”车型的国家的ID和名称是什么?", + "question_cspider": "拥有3家以上汽车制造商或生产“荣威”车型的国家的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)", + "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种以上汽车制造商或生产“荣威”,它们的ID和名称是什么?", + "question_cspider": "哪些国家有3种以上汽车制造商或生产“荣威”,它们的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)", + "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": "flight_2", + "query": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "Country", + "FROM", + "AIRLINES", + "WHERE", + "Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "airlines", + "where", + "airline", + "=", + "value" + ], + "question_spider": "Which country does Airline \"JetBlue Airways\" belong to?", + "question": "“深圳航空公司”航空公司属于哪个国家?", + "question_cspider": "“深圳航空公司”航空公司属于哪个国家?", + "bleu_from_cspider_question": "BLEU = 41.81, 48.1/42.3/40.0/37.5 (BP=1.000, ratio=1.421, hyp_len=27, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "Country", + "FROM", + "AIRLINES", + "WHERE", + "Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "airlines", + "where", + "airline", + "=", + "value" + ], + "question_spider": "What country is Jetblue Airways affiliated with?", + "question": "“深圳航空公司”航空公司隶属于哪个国家?", + "question_cspider": "“深圳航空公司”航空公司隶属于哪个国家?", + "bleu_from_cspider_question": "BLEU = 31.28, 36.4/33.3/30.0/26.3 (BP=1.000, ratio=1.100, hyp_len=22, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "Abbreviation", + "FROM", + "AIRLINES", + "WHERE", + "Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "abbreviation", + "from", + "airlines", + "where", + "airline", + "=", + "value" + ], + "question_spider": "What is the abbreviation of Airline \"JetBlue Airways\"?", + "question": "航空公司“深圳航空公司”的缩写是什么?", + "question_cspider": "航空公司“深圳航空公司”的缩写是什么?", + "bleu_from_cspider_question": "BLEU = 38.24, 48.1/42.3/36.0/29.2 (BP=1.000, ratio=1.421, hyp_len=27, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "Abbreviation", + "FROM", + "AIRLINES", + "WHERE", + "Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "abbreviation", + "from", + "airlines", + "where", + "airline", + "=", + "value" + ], + "question_spider": "Which abbreviation corresponds to Jetblue Airways?", + "question": "哪一个缩写对应于“深圳航空公司”航空公司?", + "question_cspider": "哪一个缩写对应于“深圳航空公司”航空公司?", + "bleu_from_cspider_question": "BLEU = 17.31, 81.8/50.0/33.3/25.0 (BP=0.403, ratio=0.524, hyp_len=11, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", + "query_toks": [ + "SELECT", + "Airline", + ",", + "Abbreviation", + "FROM", + "AIRLINES", + "WHERE", + "Country", + "=", + "``", + "USA", + "''" + ], + "query_toks_no_value": [ + "select", + "airline", + ",", + "abbreviation", + "from", + "airlines", + "where", + "country", + "=", + "value" + ], + "question_spider": "List all airline names and their abbreviations in \"USA\".", + "question": "列出所有“美国”的航空公司的名字和缩写。", + "question_cspider": "列出所有“美国”的航空公司的名字和缩写。", + "bleu_from_cspider_question": "BLEU = 40.05, 76.2/55.0/36.8/16.7 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + 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": "flight_2", + "query": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", + "query_toks": [ + "SELECT", + "Airline", + ",", + "Abbreviation", + "FROM", + "AIRLINES", + "WHERE", + "Country", + "=", + "``", + "USA", + "''" + ], + "query_toks_no_value": [ + "select", + "airline", + ",", + "abbreviation", + "from", + "airlines", + "where", + "country", + "=", + "value" + ], + "question_spider": "What are the airline names and abbreviations for airlines in the USA?", + "question": "美国所有航空公司的航空公司名称和缩写是什么?", + "question_cspider": "美国所有航空公司的航空公司名称和缩写是什么?", + "bleu_from_cspider_question": "BLEU = 62.34, 100.0/93.3/85.7/84.6 (BP=0.687, ratio=0.727, hyp_len=16, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + 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": "flight_2", + "query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", + "query_toks": [ + "SELECT", + "AirportCode", + ",", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "city", + "=", + "``", + "Anthony", + "''" + ], + "query_toks_no_value": [ + "select", + "airportcode", + ",", + "airportname", + "from", + "airports", + "where", + "city", + "=", + "value" + ], + "question_spider": "List the airport code and name in the city of Anthony.", + "question": "列出“拉萨”市的机场代码和名称。", + "question_cspider": "列出“拉萨”市的机场代码和名称。", + "bleu_from_cspider_question": "BLEU = 62.96, 80.0/71.4/61.5/58.3 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Anthony\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", + "query_toks": [ + "SELECT", + "AirportCode", + ",", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "city", + "=", + "``", + "Anthony", + "''" + ], + "query_toks_no_value": [ + "select", + "airportcode", + ",", + "airportname", + "from", + "airports", + "where", + "city", + "=", + "value" + ], + "question_spider": "Give the airport code and airport name corresonding to the city Anthony.", + "question": "给出与城市“拉萨”对应的机场代码和机场名称。", + "question_cspider": "给出与城市“拉萨”对应的机场代码和机场名称。", + "bleu_from_cspider_question": "BLEU = 62.55, 72.7/66.7/60.0/52.6 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Anthony\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines" + ], + "question_spider": "How many airlines do we have?", + "question": "我们有多少家航空公司?", + "question_cspider": "我们有多少家航空公司?", + "bleu_from_cspider_question": "BLEU = 59.54, 90.0/77.8/62.5/42.9 (BP=0.905, ratio=0.909, hyp_len=10, ref_len=11)", + "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": "flight_2", + "query": "SELECT count(*) FROM AIRLINES", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines" + ], + "question_spider": "What is the total number of airlines?", + "question": "航空公司的总数是多少?", + "question_cspider": "航空公司的总数是多少?", + "bleu_from_cspider_question": "BLEU = 71.09, 100.0/88.9/75.0/57.1 (BP=0.905, ratio=0.909, hyp_len=10, ref_len=11)", + "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": "flight_2", + "query": "SELECT count(*) FROM AIRPORTS", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRPORTS" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airports" + ], + "question_spider": "How many airports do we have?", + "question": "我们有多少个机场?", + "question_cspider": "我们有多少个机场?", + "bleu_from_cspider_question": "BLEU = 44.12, 87.5/71.4/50.0/20.0 (BP=0.882, ratio=0.889, hyp_len=8, ref_len=9)", + "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": "flight_2", + "query": "SELECT count(*) FROM AIRPORTS", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRPORTS" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airports" + ], + "question_spider": "Return the number of airports.", + "question": "返回机场的数量。", + "question_cspider": "返回机场的数量。", + "bleu_from_cspider_question": "BLEU = 51.54, 100.0/83.3/60.0/25.0 (BP=0.867, ratio=0.875, hyp_len=7, ref_len=8)", + "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": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights" + ], + "question_spider": "How many flights do we have?", + "question": "我们有多少次航班?", + "question_cspider": "我们有多少次航班?", + "bleu_from_cspider_question": "BLEU = 0.00, 75.0/57.1/33.3/0.0 (BP=0.882, ratio=0.889, hyp_len=8, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights" + ], + "question_spider": "Return the number of flights.", + "question": "返回航班次的数量。", + "question_cspider": "返回航班次的数量。", + "bleu_from_cspider_question": "BLEU = 34.11, 100.0/60.0/50.0/33.3 (BP=0.607, ratio=0.667, hyp_len=6, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", + "query_toks": [ + "SELECT", + "Airline", + "FROM", + "AIRLINES", + "WHERE", + "Abbreviation", + "=", + "``", + "UAL", + "''" + ], + "query_toks_no_value": [ + "select", + "airline", + "from", + "airlines", + "where", + "abbreviation", + "=", + "value" + ], + "question_spider": "Which airline has abbreviation 'UAL'?", + "question": "哪家航空公司的缩写是“UAL”?", + "question_cspider": "哪家航空公司的缩写是“UAL”?", + "bleu_from_cspider_question": "BLEU = 68.65, 87.5/73.3/64.3/53.8 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + "\"UAL\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", + "query_toks": [ + "SELECT", + "Airline", + "FROM", + "AIRLINES", + "WHERE", + "Abbreviation", + "=", + "``", + "UAL", + "''" + ], + "query_toks_no_value": [ + "select", + "airline", + "from", + "airlines", + "where", + "abbreviation", + "=", + "value" + ], + "question_spider": "Give the airline with abbreviation 'UAL'.", + "question": "给出缩写为“UAL”的航空公司。", + "question_cspider": "给出缩写为“UAL”的航空公司。", + "bleu_from_cspider_question": "BLEU = 43.70, 86.7/57.1/38.5/25.0 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + "\"UAL\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "WHERE", + "Country", + "=", + "``", + "USA", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "where", + "country", + "=", + "value" + ], + "question_spider": "How many airlines are from USA?", + "question": "有多少航空公司来自美国?", + "question_cspider": "有多少航空公司来自美国?", + "bleu_from_cspider_question": "BLEU = 27.48, 80.0/44.4/25.0/14.3 (BP=0.819, ratio=0.833, hyp_len=10, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "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": "flight_2", + "query": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "WHERE", + "Country", + "=", + "``", + "USA", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "where", + "country", + "=", + "value" + ], + "question_spider": "Return the number of airlines in the USA.", + "question": "返回美国航空公司的数量。", + "question_cspider": "返回美国航空公司的数量。", + "bleu_from_cspider_question": "BLEU = 53.32, 100.0/72.7/50.0/22.2 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "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": "flight_2", + "query": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", + "query_toks": [ + "SELECT", + "City", + ",", + "Country", + "FROM", + "AIRPORTS", + "WHERE", + "AirportName", + "=", + "``", + "Alton", + "''" + ], + "query_toks_no_value": [ + "select", + "city", + ",", + "country", + "from", + "airports", + "where", + "airportname", + "=", + "value" + ], + "question_spider": "Which city and country is the Alton airport at?", + "question": "“东方”机场在哪个城市和哪个国家?", + "question_cspider": "“东方”机场在哪个城市和哪个国家?", + "bleu_from_cspider_question": "BLEU = 46.37, 64.7/50.0/40.0/35.7 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"Alton\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", + "query_toks": [ + "SELECT", + "City", + ",", + "Country", + "FROM", + "AIRPORTS", + "WHERE", + "AirportName", + "=", + "``", + "Alton", + "''" + ], + "query_toks_no_value": [ + "select", + "city", + ",", + "country", + "from", + "airports", + "where", + "airportname", + "=", + "value" + ], + "question_spider": "Give the city and country for the Alton airport.", + "question": "给出“东方”机场所属的城市和国家。", + "question_cspider": "给出“东方”机场所属的城市和国家。", + "bleu_from_cspider_question": "BLEU = 31.76, 57.1/46.2/33.3/27.3 (BP=0.807, ratio=0.824, hyp_len=14, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"Alton\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "AirportCode", + "=", + "``", + "AKO", + "''" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "airportcode", + "=", + "value" + ], + "question_spider": "What is the airport name for airport 'AKO'?", + "question": "“AKO”机场的名称是什么?", + "question_cspider": "“AKO”机场的名称是什么?", + "bleu_from_cspider_question": "BLEU = 57.87, 87.5/66.7/50.0/38.5 (BP=1.000, ratio=1.143, hyp_len=16, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + "\"AKO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "AirportCode", + "=", + "``", + "AKO", + "''" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "airportcode", + "=", + "value" + ], + "question_spider": "Return the name of the airport with code 'AKO'.", + "question": "返回代号为“AKO”的机场名称。", + "question_cspider": "返回代号为“AKO”的机场名称。", + "bleu_from_cspider_question": "BLEU = 81.54, 93.8/86.7/78.6/69.2 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + "\"AKO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "city", + "=", + "value" + ], + "question_spider": "What are airport names at City 'Aberdeen'?", + "question": "“哈尔滨”市的机场名称是什么?", + "question_cspider": "“哈尔滨”市的机场名称是什么?", + "bleu_from_cspider_question": "BLEU = 63.12, 76.9/75.0/72.7/70.0 (BP=0.857, ratio=0.867, hyp_len=13, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "city", + "=", + "value" + ], + "question_spider": "What are the names of airports in Aberdeen?", + "question": "在“哈尔滨”的机场名称是什么?", + "question_cspider": "在“哈尔滨”的机场名称是什么?", + "bleu_from_cspider_question": "BLEU = 0.00, 58.3/27.3/10.0/0.0 (BP=0.779, ratio=0.800, hyp_len=12, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "WHERE", + "SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "where", + "sourceairport", + "=", + "value" + ], + "question_spider": "How many flights depart from 'APG'?", + "question": "有多少航班从“长沙”出发?", + "question_cspider": "有多少航班从“长沙”出发?", + "bleu_from_cspider_question": "BLEU = 46.05, 64.3/46.2/41.7/36.4 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "WHERE", + "SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "where", + "sourceairport", + "=", + "value" + ], + "question_spider": "Count the number of flights departing from 'APG'.", + "question": "统计从“长沙”起飞的航班数。", + "question_cspider": "统计从“长沙”起飞的航班数。", + "bleu_from_cspider_question": "BLEU = 43.33, 68.8/46.7/35.7/30.8 (BP=1.000, ratio=1.143, hyp_len=16, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "WHERE", + "DestAirport", + "=", + "``", + "ATO", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "where", + "destairport", + "=", + "value" + ], + "question_spider": "How many flights have destination ATO?", + "question": "目的地是“天津”有多少航班?", + "question_cspider": "目的地是“天津”有多少航班?", + "bleu_from_cspider_question": "BLEU = 44.95, 75.0/63.6/50.0/33.3 (BP=0.846, ratio=0.857, hyp_len=12, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"ATO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "WHERE", + "DestAirport", + "=", + "``", + "ATO", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "where", + "destairport", + "=", + "value" + ], + "question_spider": "Count the number of flights into ATO.", + "question": "统计到达“天津”的航班数。", + "question_cspider": "统计到达“天津”的航班数。", + "bleu_from_cspider_question": "BLEU = 30.53, 50.0/36.4/30.0/22.2 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"ATO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.SourceAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "sourceairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "How many flights depart from City Aberdeen?", + "question": "从“哈尔滨”市起飞的有多少班次?", + "question_cspider": "从“哈尔滨”市起飞的有多少班次?", + "bleu_from_cspider_question": "BLEU = 17.13, 63.6/30.0/22.2/12.5 (BP=0.635, ratio=0.688, hyp_len=11, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.SourceAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "sourceairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "Return the number of flights departing from Aberdeen.", + "question": "返回从“哈尔滨”起飞的航班数。", + "question_cspider": "返回从“哈尔滨”起飞的航班数。", + "bleu_from_cspider_question": "BLEU = 49.59, 76.9/66.7/54.5/40.0 (BP=0.857, ratio=0.867, hyp_len=13, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "How many flights arriving in Aberdeen city?", + "question": "到“哈尔滨”市有多少班次?", + "question_cspider": "到“哈尔滨”市有多少班次?", + "bleu_from_cspider_question": "BLEU = 0.00, 58.3/18.2/10.0/0.0 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "Return the number of flights arriving in Aberdeen.", + "question": "返回抵达“哈尔滨”市的航班数量。", + "question_cspider": "返回抵达“哈尔滨”市的航班数量。", + "bleu_from_cspider_question": "BLEU = 19.41, 66.7/36.4/20.0/11.1 (BP=0.717, ratio=0.750, hyp_len=12, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "JOIN", + "AIRPORTS", + "AS", + "T3", + "ON", + "T1.SourceAirport", + "=", + "T3.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Ashley", + "''", + "AND", + "T3.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "join", + "airports", + "as", + "t3", + "on", + "t1", + ".", + "sourceairport", + "=", + "t3", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value", + "and", + "t3", + ".", + "city", + "=", + "value" + ], + "question_spider": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", + "question": "有多少航班从“哈尔滨”起飞,到达“西安”?", + "question_cspider": "有多少航班从“哈尔滨”起飞,到达“西安”?", + "bleu_from_cspider_question": "BLEU = 21.80, 34.8/22.7/19.0/15.0 (BP=1.000, ratio=1.095, hyp_len=23, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Ashley\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "JOIN", + "AIRPORTS", + "AS", + "T3", + "ON", + "T1.SourceAirport", + "=", + "T3.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Ashley", + "''", + "AND", + "T3.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "join", + "airports", + "as", + "t3", + "on", + "t1", + ".", + "sourceairport", + "=", + "t3", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value", + "and", + "t3", + ".", + "city", + "=", + "value" + ], + "question_spider": "How many flights fly from Aberdeen to Ashley?", + "question": "从“哈尔滨”飞往“西安”有多少班机?", + "question_cspider": "从“哈尔滨”飞往“西安”有多少班机?", + "bleu_from_cspider_question": "BLEU = 0.00, 53.3/21.4/7.7/0.0 (BP=0.819, ratio=0.833, hyp_len=15, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Ashley\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRLINES", + "AS", + "T2", + "ON", + "T1.Airline", + "=", + "T2.uid", + "WHERE", + "T2.Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airlines", + "as", + "t2", + "on", + "t1", + ".", + "airline", + "=", + "t2", + ".", + "uid", + "where", + "t2", + ".", + "airline", + "=", + "value" + ], + "question_spider": "How many flights does airline 'JetBlue Airways' have?", + "question": "深圳航空公司有多少航班?", + "question_cspider": "“深圳航空公司”航空公司有多少航班?", + "bleu_from_cspider_question": "BLEU = 44.90, 63.2/50.0/41.2/31.2 (BP=1.000, ratio=1.056, hyp_len=19, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRLINES", + "AS", + "T2", + "ON", + "T1.Airline", + "=", + "T2.uid", + "WHERE", + "T2.Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airlines", + "as", + "t2", + "on", + "t1", + ".", + "airline", + "=", + "t2", + ".", + "uid", + "where", + "t2", + ".", + "airline", + "=", + "value" + ], + "question_spider": "Give the number of Jetblue Airways flights.", + "question": "给出深圳航空公司航班的数量。", + "question_cspider": "给出“深圳航空公司”航空公司航班的数量。", + "bleu_from_cspider_question": "BLEU = 0.00, 83.3/45.5/10.0/0.0 (BP=0.513, ratio=0.600, hyp_len=12, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T2.Airline", + "=", + "T1.uid", + "WHERE", + "T1.Airline", + "=", + "``", + "United", + "Airlines", + "''", + "AND", + "T2.DestAirport", + "=", + "``", + "ASY", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t2", + ".", + "airline", + "=", + "t1", + ".", + "uid", + "where", + "t1", + ".", + "airline", + "=", + "value", + "and", + "t2", + ".", + "destairport", + "=", + "value" + ], + "question_spider": "How many 'United Airlines' flights go to Airport 'ASY'?", + "question": "有多少南航的航班飞往虹桥?", + "question_cspider": "有多少“南方航空”航空公司的航班飞往“虹桥”?", + "bleu_from_cspider_question": "BLEU = 33.09, 66.7/50.0/31.6/16.7 (BP=0.909, ratio=0.913, hyp_len=21, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"ASY\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T2.Airline", + "=", + "T1.uid", + "WHERE", + "T1.Airline", + "=", + "``", + "United", + "Airlines", + "''", + "AND", + "T2.DestAirport", + "=", + "``", + "ASY", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t2", + ".", + "airline", + "=", + "t1", + ".", + "uid", + "where", + "t1", + ".", + "airline", + "=", + "value", + "and", + "t2", + ".", + "destairport", + "=", + "value" + ], + "question_spider": "Count the number of United Airlines flights arriving in ASY Airport.", + "question": "统计南航抵达虹桥机场的航班数量。", + "question_cspider": "统计“南方航空”航空公司航班抵达“虹桥”机场的数量。", + "bleu_from_cspider_question": "BLEU = 15.98, 60.0/36.8/16.7/5.9 (BP=0.741, ratio=0.769, hyp_len=20, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"ASY\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T2.Airline", + "=", + "T1.uid", + "WHERE", + "T1.Airline", + "=", + "``", + "United", + "Airlines", + "''", + "AND", + "T2.SourceAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t2", + ".", + "airline", + "=", + "t1", + ".", + "uid", + "where", + "t1", + ".", + "airline", + "=", + "value", + "and", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question_spider": "How many 'United Airlines' flights depart from Airport 'AHD'?", + "question": "有多少南航的航班从浦东机场起飞?", + "question_cspider": "有多少“南方航空”航班从“浦东”机场起飞?", + "bleu_from_cspider_question": "BLEU = 44.03, 68.2/52.4/40.0/26.3 (BP=1.000, ratio=1.048, hyp_len=22, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T2.Airline", + "=", + "T1.uid", + "WHERE", + "T1.Airline", + "=", + "``", + "United", + "Airlines", + "''", + "AND", + "T2.SourceAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t2", + ".", + "airline", + "=", + "t1", + ".", + "uid", + "where", + "t1", + ".", + "airline", + "=", + "value", + "and", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question_spider": "Return the number of United Airlines flights leaving from AHD Airport.", + "question": "返回从浦东机场起飞的南航航班的数量。", + "question_cspider": "返回从“浦东”机场起飞的“南方航空”航空公司航班的数量。", + "bleu_from_cspider_question": "BLEU = 34.46, 76.2/60.0/42.1/27.8 (BP=0.717, ratio=0.750, hyp_len=21, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "JOIN", + "AIRLINES", + "AS", + "T3", + "ON", + "T3.uid", + "=", + "T1.Airline", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''", + "AND", + "T3.Airline", + "=", + "``", + "United", + "Airlines", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "join", + "airlines", + "as", + "t3", + "on", + "t3", + ".", + "uid", + "=", + "t1", + ".", + "airline", + "where", + "t2", + ".", + "city", + "=", + "value", + "and", + "t3", + ".", + "airline", + "=", + "value" + ], + "question_spider": "How many United Airlines flights go to City 'Aberdeen'?", + "question": "有多少南航的航班飞往哈尔滨?", + "question_cspider": "有多少“南方航空”航空公司的航班飞往“哈尔滨”?", + "bleu_from_cspider_question": "BLEU = 15.37, 62.5/40.0/21.4/7.7 (BP=0.607, ratio=0.667, hyp_len=16, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "JOIN", + "AIRLINES", + "AS", + "T3", + "ON", + "T3.uid", + "=", + "T1.Airline", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''", + "AND", + "T3.Airline", + "=", + "``", + "United", + "Airlines", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "join", + "airlines", + "as", + "t3", + "on", + "t3", + ".", + "uid", + "=", + "t1", + ".", + "airline", + "where", + "t2", + ".", + "city", + "=", + "value", + "and", + "t3", + ".", + "airline", + "=", + "value" + ], + "question_spider": "Count the number of United Airlines flights that arrive in Aberdeen.", + "question": "统计到达哈尔滨的南航的航班的数量。", + "question_cspider": "统计到达“哈尔滨”的“南方航空”航空公司航班的数量。", + "bleu_from_cspider_question": "BLEU = 21.95, 66.7/41.2/25.0/20.0 (BP=0.641, ratio=0.692, hyp_len=18, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.City", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "GROUP", + "BY", + "T1.City", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "city", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "group", + "by", + "t1", + ".", + "city", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which city has most number of arriving flights?", + "question": "哪个城市有最多的抵达航班?", + "question_cspider": "哪个城市有最多的抵达航班?", + "bleu_from_cspider_question": "BLEU = 33.06, 91.7/54.5/30.0/11.1 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.City", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "GROUP", + "BY", + "T1.City", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "city", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "group", + "by", + "t1", + ".", + "city", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which city has the most frequent destination airport?", + "question": "哪个城市有最频繁的目的地机场?", + "question_cspider": "哪个城市有最频繁的目的地机场?", + "bleu_from_cspider_question": "BLEU = 59.18, 100.0/76.9/58.3/36.4 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.City", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.City", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "city", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "city", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which city has most number of departing flights?", + "question": "哪个城市出发的航班最多?", + "question_cspider": "哪个城市离开的航班最多?", + "bleu_from_cspider_question": "BLEU = 54.52, 83.3/63.6/50.0/33.3 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 12, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.City", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.City", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "city", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "city", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which city is the most frequent source airport?", + "question": "哪个城市的机场中起飞航班是最频繁的?", + "question_cspider": "哪个城市的机场中起飞航班是最频繁的?", + "bleu_from_cspider_question": "BLEU = 21.28, 83.3/54.5/30.0/11.1 (BP=0.607, ratio=0.667, hyp_len=12, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 12, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.AirportCode", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "OR", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.AirportCode", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airportcode", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "or", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "airportcode", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the code of airport that has the highest number of flights?", + "question": "最多航班数的机场代码是多少?", + "question_cspider": "最多航班数的机场代码是多少?", + "bleu_from_cspider_question": "BLEU = 45.79, 80.0/57.1/38.5/25.0 (BP=1.000, ratio=1.071, hyp_len=15, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.AirportCode", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "OR", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.AirportCode", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airportcode", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "or", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "airportcode", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the airport code of the airport with the most flights?", + "question": "航班数量最多的机场的代码是多少?", + "question_cspider": "航班数量最多的机场的代码是多少?", + "bleu_from_cspider_question": "BLEU = 42.61, 75.0/53.3/35.7/23.1 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1", + "query_toks": [ + "SELECT", + "T1.AirportCode", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "OR", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.AirportCode", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airportcode", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "or", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "airportcode", + "order", + "by", + "count", + "(", + "*", + ")", + "limit", + "value" + ], + "question_spider": "What is the code of airport that has fewest number of flights?", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1", + "query_toks": [ + "SELECT", + "T1.AirportCode", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "OR", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.AirportCode", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airportcode", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "or", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "airportcode", + "order", + "by", + "count", + "(", + "*", + ")", + "limit", + "value" + ], + "question_spider": "Give the code of the airport with the least flights.", + "question": "给出最少的航班数的机场代码。", + "question_cspider": "给出最少的航班数的机场代码。", + "bleu_from_cspider_question": "BLEU = 57.85, 100.0/81.8/60.0/44.4 (BP=0.846, ratio=0.857, hyp_len=12, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which airline has most number of flights?", + "question": "哪家航空公司的航班最多?", + "question_cspider": "哪家航空公司的航班最多?", + "bleu_from_cspider_question": "BLEU = 54.45, 78.6/61.5/50.0/36.4 (BP=1.000, ratio=1.167, hyp_len=14, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What airline serves the most flights?", + "question": "哪家航空公司提供最多的航班?", + "question_cspider": "哪家航空公司提供最多的航班?", + "bleu_from_cspider_question": "BLEU = 85.55, 92.9/84.6/83.3/81.8 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Abbreviation", + ",", + "T1.Country", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "abbreviation", + ",", + "t1", + ".", + "country", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "order", + "by", + "count", + "(", + "*", + ")", + "limit", + "value" + ], + "question_spider": "Find the abbreviation and country of the airline that has fewest number of flights?", + "question": "找到航班最少的航空公司的缩写和国家。", + "question_cspider": "找到航班最少的航空公司的缩写和国家。", + "bleu_from_cspider_question": "BLEU = 57.28, 69.6/59.1/52.4/50.0 (BP=1.000, ratio=1.278, hyp_len=23, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Abbreviation", + ",", + "T1.Country", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "abbreviation", + ",", + "t1", + ".", + "country", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "order", + "by", + "count", + "(", + "*", + ")", + "limit", + "value" + ], + "question_spider": "What is the abbreviation of the airilne has the fewest flights and what country is it in?", + "question": "航班最少的航空公司的缩写是什么?它在哪个国家?", + "question_cspider": "航班最少的航空公司的缩写是什么?它在哪个国家?", + "bleu_from_cspider_question": "BLEU = 84.57, 88.5/84.0/83.3/82.6 (BP=1.000, ratio=1.130, hyp_len=26, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question_spider": "What are airlines that have some flight departing from airport 'AHD'?", + "question": "哪些航空公司有从“浦东”机场出发的航班?", + "question_cspider": "哪些航空公司有从“浦东”机场出发的航班?", + "bleu_from_cspider_question": "BLEU = 34.19, 72.7/47.6/25.0/15.8 (BP=1.000, ratio=1.100, hyp_len=22, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question_spider": "Which airlines have a flight with source airport AHD?", + "question": "从“浦东”机场出发的航班的航空公司有哪些?", + "question_cspider": "从“浦东”机场出发的航班的航空公司有哪些?", + "bleu_from_cspider_question": "BLEU = 18.07, 76.5/37.5/13.3/7.1 (BP=0.790, ratio=0.810, hyp_len=17, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.DestAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "destairport", + "=", + "value" + ], + "question_spider": "What are airlines that have flights arriving at airport 'AHD'?", + "question": "哪些航空公司有到达“浦东”机场的航班?", + "question_cspider": "哪些航空公司有到达“浦东”机场的航班?", + "bleu_from_cspider_question": "BLEU = 28.69, 73.7/50.0/29.4/6.2 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.DestAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "destairport", + "=", + "value" + ], + "question_spider": "Which airlines have a flight with destination airport AHD?", + "question": "哪些航空公司有目的机场是“浦东”的航班?", + "question_cspider": "哪些航空公司有目的机场是“浦东”的航班?", + "bleu_from_cspider_question": "BLEU = 56.06, 78.9/66.7/52.9/43.8 (BP=0.949, ratio=0.950, hyp_len=19, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "APG", + "''", + "INTERSECT", + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "CVO", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question_spider": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", + "question": "找出有从长沙白云机场出发的航班的所有航空公司。", + "question_cspider": "找出有从“长沙”和“白云”机场出发的航班的所有航空公司。", + "bleu_from_cspider_question": "BLEU = 39.73, 66.7/44.8/32.1/25.9 (BP=1.000, ratio=1.071, hyp_len=30, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"CVO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "APG", + "''", + "INTERSECT", + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "CVO", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question_spider": "Which airlines have departing flights from both APG and CVO airports?", + "question": "哪些航空公司有从“长沙”和“白云”机场起飞的航班?", + "question_cspider": "哪些航空公司有从“长沙”和“白云”机场起飞的航班?", + "bleu_from_cspider_question": "BLEU = 55.50, 73.9/63.6/57.1/50.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"CVO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "CVO", + "''", + "EXCEPT", + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value", + "except", + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question_spider": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", + "question": "找出有从“白云”机场出发,但不从“长沙”机场出发的航班的所有航空公司。", + "question_cspider": "找出有从“白云”机场出发,但不从“长沙”机场出发的航班的所有航空公司。", + "bleu_from_cspider_question": "BLEU = 19.74, 62.1/39.3/18.5/7.7 (BP=0.813, ratio=0.829, hyp_len=29, ref_len=35)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"CVO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "CVO", + "''", + "EXCEPT", + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value", + "except", + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question_spider": "Which airlines have departures from CVO but not from APG airports?", + "question": "哪些航空公司有航班从“白云”起飞,而不是从“长沙”机场起飞?", + "question_cspider": "哪些航空公司有航班从“白云”起飞,而不是从“长沙”机场起飞?", + "bleu_from_cspider_question": "BLEU = 18.79, 50.0/26.1/18.2/14.3 (BP=0.779, ratio=0.800, hyp_len=24, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"CVO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Find all airlines that have at least 10 flights.", + "question": "找出所有至少有10个航班的航空公司。", + "question_cspider": "找出所有至少有10个航班的航空公司。", + "bleu_from_cspider_question": "BLEU = 89.16, 94.4/88.2/87.5/86.7 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 10.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Which airlines have at least 10 flights?", + "question": "哪家航空公司至少有10次航班?", + "question_cspider": "哪家航空公司至少有10次航班?", + "bleu_from_cspider_question": "BLEU = 66.06, 86.7/71.4/61.5/50.0 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 10.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "200" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "having", + "count", + "(", + "*", + ")", + "<", + "value" + ], + "question_spider": "Find all airlines that have fewer than 200 flights.", + "question": "找出所有少于200个航班的航空公司。", + "question_cspider": "找出所有少于200个航班的航空公司。", + "bleu_from_cspider_question": "BLEU = 48.01, 94.1/62.5/40.0/28.6 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 200.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "200" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "having", + "count", + "(", + "*", + ")", + "<", + "value" + ], + "question_spider": "Which airlines have less than 200 flights?", + "question": "哪些航空公司的航班少于200?", + "question_cspider": "哪些航空公司的航班少于200?", + "bleu_from_cspider_question": "BLEU = 87.62, 93.8/86.7/85.7/84.6 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 200.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRLINES", + "AS", + "T2", + "ON", + "T2.uid", + "=", + "T1.Airline", + "WHERE", + "T2.Airline", + "=", + "``", + "United", + "Airlines", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airlines", + "as", + "t2", + "on", + "t2", + ".", + "uid", + "=", + "t1", + ".", + "airline", + "where", + "t2", + ".", + "airline", + "=", + "value" + ], + "question_spider": "What are flight numbers of Airline \"United Airlines\"?", + "question": "“南方航空”航空公司的航班号是多少?", + "question_cspider": "“南方航空”航空公司的航班号是多少?", + "bleu_from_cspider_question": "BLEU = 51.92, 80.0/57.9/44.4/35.3 (BP=1.000, ratio=1.111, hyp_len=20, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRLINES", + "AS", + "T2", + "ON", + "T2.uid", + "=", + "T1.Airline", + "WHERE", + "T2.Airline", + "=", + "``", + "United", + "Airlines", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airlines", + "as", + "t2", + "on", + "t2", + ".", + "uid", + "=", + "t1", + ".", + "airline", + "where", + "t2", + ".", + "airline", + "=", + "value" + ], + "question_spider": "Which flight numbers correspond to United Airlines flights?", + "question": "哪些航班号对应南航的航班?", + "question_cspider": "哪些航班号对应“南方航空”航空公司的航班?", + "bleu_from_cspider_question": "BLEU = 23.98, 75.0/46.7/21.4/15.4 (BP=0.732, ratio=0.762, hyp_len=16, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "FlightNo", + "FROM", + "FLIGHTS", + "WHERE", + "SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "flightno", + "from", + "flights", + "where", + "sourceairport", + "=", + "value" + ], + "question_spider": "What are flight numbers of flights departing from Airport \"APG\"?", + "question": "从“长沙”机场起飞的航班的航班号是多少?", + "question_cspider": "从“长沙”机场起飞的航班的航班号是多少?", + "bleu_from_cspider_question": "BLEU = 54.50, 76.2/55.0/47.4/44.4 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "FlightNo", + "FROM", + "FLIGHTS", + "WHERE", + "SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "flightno", + "from", + "flights", + "where", + "sourceairport", + "=", + "value" + ], + "question_spider": "Give the flight numbers of flights leaving from APG.", + "question": "给出从“长沙”起飞的航班的航班号。", + "question_cspider": "给出从“长沙”起飞的航班的航班号。", + "bleu_from_cspider_question": "BLEU = 43.99, 62.5/46.7/42.9/38.5 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", + "query_toks": [ + "SELECT", + "FlightNo", + "FROM", + "FLIGHTS", + "WHERE", + "DestAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "flightno", + "from", + "flights", + "where", + "destairport", + "=", + "value" + ], + "question_spider": "What are flight numbers of flights arriving at Airport \"APG\"?", + "question": "到达“长沙”机场的航班的航班号是多少?", + "question_cspider": "到达“长沙”机场的航班的航班号是多少?", + "bleu_from_cspider_question": "BLEU = 40.44, 76.2/50.0/31.6/22.2 (BP=1.000, ratio=1.105, hyp_len=21, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", + "query_toks": [ + "SELECT", + "FlightNo", + "FROM", + "FLIGHTS", + "WHERE", + "DestAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "flightno", + "from", + "flights", + "where", + "destairport", + "=", + "value" + ], + "question_spider": "Give the flight numbers of flights landing at APG.", + "question": "给出在“长沙”降落的航班的航班号。", + "question_cspider": "给出在“长沙”降落的航班的航班号。", + "bleu_from_cspider_question": "BLEU = 46.37, 64.7/50.0/40.0/35.7 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.SourceAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "sourceairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "What are flight numbers of flights departing from City \"Aberdeen \"?", + "question": "从“哈尔滨”起飞的航班的航班号是多少?", + "question_cspider": "从“哈尔滨”起飞的航班的航班号是多少?", + "bleu_from_cspider_question": "BLEU = 55.57, 70.0/57.9/50.0/47.1 (BP=1.000, ratio=1.053, hyp_len=20, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.SourceAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "sourceairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "Give the flight numbers of flights leaving from Aberdeen.", + "question": "给出从“哈尔滨”起飞的航班的航班号。", + "question_cspider": "给出从“哈尔滨”起飞的航班的航班号。", + "bleu_from_cspider_question": "BLEU = 52.67, 68.8/60.0/57.1/53.8 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "What are flight numbers of flights arriving at City \"Aberdeen\"?", + "question": "到达“哈尔滨”市的航班的航班号是多少?", + "question_cspider": "到达“哈尔滨”市的航班的航班号是多少?", + "bleu_from_cspider_question": "BLEU = 73.32, 84.2/77.8/70.6/62.5 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "Give the flight numbers of flights arriving in Aberdeen.", + "question": "给出到达“哈尔滨”航班的航班号。", + "question_cspider": "给出到达“哈尔滨”航班的航班号。", + "bleu_from_cspider_question": "BLEU = 41.43, 60.0/50.0/38.5/33.3 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Flights", + "AS", + "T1", + "JOIN", + "Airports", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.city", + "=", + "``", + "Aberdeen", + "''", + "OR", + "T2.city", + "=", + "``", + "Abilene", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value", + "or", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "Find the number of flights landing in the city of Aberdeen or Abilene.", + "question": "找出在“哈尔滨”或“长春”降落的航班的航班号。", + "question_cspider": "找出在“哈尔滨”或“长春”降落的航班的航班号。", + "bleu_from_cspider_question": "BLEU = 17.64, 50.0/23.5/18.8/13.3 (BP=0.757, ratio=0.783, hyp_len=18, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Abilene\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Flights", + "AS", + "T1", + "JOIN", + "Airports", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.city", + "=", + "``", + "Aberdeen", + "''", + "OR", + "T2.city", + "=", + "``", + "Abilene", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value", + "or", + "t2", + ".", + "city", + "=", + "value" + ], + "question_spider": "How many flights land in Aberdeen or Abilene?", + "question": "有多少航班降落在哈尔滨或长春?", + "question_cspider": "在“哈尔滨”或“长春”有多少航班?", + "bleu_from_cspider_question": "BLEU = 23.39, 43.8/26.7/21.4/15.4 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Abilene\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "Airports", + "WHERE", + "AirportCode", + "NOT", + "IN", + "(", + "SELECT", + "SourceAirport", + "FROM", + "Flights", + "UNION", + "SELECT", + "DestAirport", + "FROM", + "Flights", + ")" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "airportcode", + "not", + "in", + "(", + "select", + "sourceairport", + "from", + "flights", + "union", + "select", + "destairport", + "from", + "flights", + ")" + ], + "question_spider": "Find the name of airports which do not have any flight in and out.", + "question": "找出没有任何起落航班的机场名称。", + "question_cspider": "找出没有任何起落航班的机场名称。", + "bleu_from_cspider_question": "BLEU = 35.40, 80.0/50.0/30.8/16.7 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "Airports", + "WHERE", + "AirportCode", + "NOT", + "IN", + "(", + "SELECT", + "SourceAirport", + "FROM", + "Flights", + "UNION", + "SELECT", + "DestAirport", + "FROM", + "Flights", + ")" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "airportcode", + "not", + "in", + "(", + "select", + "sourceairport", + "from", + "flights", + "union", + "select", + "destairport", + "from", + "flights", + ")" + ], + "question_spider": "Which airports do not have departing or arriving flights?", + "question": "哪些机场没有起飞或到达的航班?", + "question_cspider": "哪些机场没有起飞或到达的航班?", + "bleu_from_cspider_question": "BLEU = 49.66, 85.7/69.2/50.0/27.3 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) FROM employee", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "employee" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "employee" + ], + "question_spider": "How many employees are there?", + "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)", + "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": "employee_hire_evaluation", + "query": "SELECT count(*) FROM employee", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "employee" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "employee" + ], + "question_spider": "Count the number of employees", + "question": "统计员工人数。", + "question_cspider": "统计员工人数。", + "bleu_from_cspider_question": "BLEU = 45.48, 83.3/60.0/50.0/33.3 (BP=0.846, ratio=0.857, hyp_len=6, ref_len=7)", + "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": "employee_hire_evaluation", + "query": "SELECT name FROM employee ORDER BY age", + "query_toks": [ + "SELECT", + "name", + "FROM", + "employee", + "ORDER", + "BY", + "age" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "employee", + "order", + "by", + "age" + ], + "question_spider": "Sort employee names by their age in ascending order.", + "question": "按年龄升序排列员工的姓名。", + "question_cspider": "按年龄升序排列员工的姓名。", + "bleu_from_cspider_question": "BLEU = 0.00, 78.6/46.2/16.7/0.0 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM employee ORDER BY age", + "query_toks": [ + "SELECT", + "name", + "FROM", + "employee", + "ORDER", + "BY", + "age" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "employee", + "order", + "by", + "age" + ], + "question_spider": "List the names of employees and sort in ascending order of age.", + "question": "按年龄升序,列出员工姓名。", + "question_cspider": "按年龄升序,列出员工姓名。", + "bleu_from_cspider_question": "BLEU = 40.65, 76.5/50.0/33.3/21.4 (BP=1.000, ratio=1.308, hyp_len=17, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , city FROM employee GROUP BY city", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "city", + "FROM", + "employee", + "GROUP", + "BY", + "city" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "city", + "from", + "employee", + "group", + "by", + "city" + ], + "question_spider": "What is the number of employees from each city?", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , city FROM employee GROUP BY city", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "city", + "FROM", + "employee", + "GROUP", + "BY", + "city" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "city", + "from", + "employee", + "group", + "by", + "city" + ], + "question_spider": "Count the number of employees for each city.", + "question": "统计每个城市的雇员数量。", + "question_cspider": "统计每个城市的雇员数量。", + "bleu_from_cspider_question": "BLEU = 56.38, 83.3/54.5/50.0/44.4 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "city", + "FROM", + "employee", + "WHERE", + "age", + "<", + "30", + "GROUP", + "BY", + "city", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "city", + "from", + "employee", + "where", + "age", + "<", + "value", + "group", + "by", + "city", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Which cities do more than one employee under age 30 come from?", + "question": "哪些城市有多于一个不满30岁的员工?", + "question_cspider": "哪些城市30岁以下的员工多于一个人?", + "bleu_from_cspider_question": "BLEU = 34.00, 76.2/40.0/26.3/16.7 (BP=1.000, ratio=1.167, hyp_len=21, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 30.0, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "city", + "FROM", + "employee", + "WHERE", + "age", + "<", + "30", + "GROUP", + "BY", + "city", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "city", + "from", + "employee", + "where", + "age", + "<", + "value", + "group", + "by", + "city", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Find the cities that have more than one employee under age 30.", + "question": "找出那些拥有不止一个30岁以下员工的城市。", + "question_cspider": "找出那些拥有不止一个30岁以下员工的城市。", + "bleu_from_cspider_question": "BLEU = 18.98, 68.8/40.0/21.4/7.7 (BP=0.732, ratio=0.762, hyp_len=16, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 30.0, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "LOCATION", + "FROM", + "shop", + "GROUP", + "BY", + "LOCATION" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "location", + "from", + "shop", + "group", + "by", + "location" + ], + "question_spider": "Find the number of shops in each location.", + "question": "找出每个地方的商店的数量。", + "question_cspider": "找出每个地方的商店的数量。", + "bleu_from_cspider_question": "BLEU = 0.00, 75.0/45.5/20.0/0.0 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "LOCATION", + "FROM", + "shop", + "GROUP", + "BY", + "LOCATION" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "location", + "from", + "shop", + "group", + "by", + "location" + ], + "question_spider": "How many shops are there in each location?", + "question": "每个地方有多少商店?", + "question_cspider": "每个地方有多少商店?", + "bleu_from_cspider_question": "BLEU = 0.00, 70.0/44.4/25.0/0.0 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", + "query_toks": [ + "SELECT", + "manager_name", + ",", + "district", + "FROM", + "shop", + "ORDER", + "BY", + "number_products", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "manager_name", + ",", + "district", + "from", + "shop", + "order", + "by", + "number_products", + "desc", + "limit", + "value" + ], + "question_spider": "Find the manager name and district of the shop whose number of products is the largest.", + "question": "找出产品数量最大的商店的经理姓名和所在地区。", + "question_cspider": "找出产品数量最大的商店的经理姓名和所在地区。", + "bleu_from_cspider_question": "BLEU = 60.45, 90.0/68.4/61.1/52.9 (BP=0.905, ratio=0.909, hyp_len=20, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", + "query_toks": [ + "SELECT", + "manager_name", + ",", + "district", + "FROM", + "shop", + "ORDER", + "BY", + "number_products", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "manager_name", + ",", + "district", + "from", + "shop", + "order", + "by", + "number_products", + "desc", + "limit", + "value" + ], + "question_spider": "What are the manager name and district of the shop that sells the largest number of products?", + "question": "销售的产品数量最多的商店的经理姓名和地区是什么?", + "question_cspider": "销售数量最多的商店的经理姓名和地区是什么?", + "bleu_from_cspider_question": "BLEU = 56.60, 85.7/65.0/47.4/38.9 (BP=1.000, ratio=1.000, hyp_len=21, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT min(Number_products) , max(Number_products) FROM shop", + "query_toks": [ + "SELECT", + "min", + "(", + "Number_products", + ")", + ",", + "max", + "(", + "Number_products", + ")", + "FROM", + "shop" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "number_products", + ")", + ",", + "max", + "(", + "number_products", + ")", + "from", + "shop" + ], + "question_spider": "find the minimum and maximum number of products of all stores.", + "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=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT min(Number_products) , max(Number_products) FROM shop", + "query_toks": [ + "SELECT", + "min", + "(", + "Number_products", + ")", + ",", + "max", + "(", + "Number_products", + ")", + "FROM", + "shop" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "number_products", + ")", + ",", + "max", + "(", + "number_products", + ")", + "from", + "shop" + ], + "question_spider": "What are the minimum and maximum number of products across all the shops?", + "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=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "LOCATION", + ",", + "district", + "FROM", + "shop", + "ORDER", + "BY", + "number_products", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "location", + ",", + "district", + "from", + "shop", + "order", + "by", + "number_products", + "desc" + ], + "question_spider": "Return the name, location and district of all shops in descending order of number of products.", + "question": "按照产品数量的降序返回所有商店的名称、位置和区域。", + "question_cspider": "按照产品数量的降序返回所有商店的名称、位置和区域。", + "bleu_from_cspider_question": "BLEU = 50.62, 82.6/59.1/47.6/40.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "LOCATION", + ",", + "district", + "FROM", + "shop", + "ORDER", + "BY", + "number_products", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "location", + ",", + "district", + "from", + "shop", + "order", + "by", + "number_products", + "desc" + ], + "question_spider": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.", + "question": "按产品编号降序对所有商店进行排序,并返回每个商店的名称、位置和区域。", + "question_cspider": "按产品编号降序对所有商店进行排序,并返回每个商店的名称、位置和区域。", + "bleu_from_cspider_question": "BLEU = 58.48, 85.3/66.7/53.1/38.7 (BP=1.000, ratio=1.000, hyp_len=34, ref_len=34)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "shop", + "WHERE", + "number_products", + ">", + "(", + "SELECT", + "avg", + "(", + "number_products", + ")", + "FROM", + "shop", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "shop", + "where", + "number_products", + ">", + "(", + "select", + "avg", + "(", + "number_products", + ")", + "from", + "shop", + ")" + ], + "question_spider": "Find the names of stores whose number products is more than the average number of products.", + "question": "查找产品数量超过平均产品数量的商店的名称。", + "question_cspider": "查找产品数量超过平均产品数量的商店的名称。", + "bleu_from_cspider_question": "BLEU = 63.85, 89.5/77.8/64.7/56.2 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 9, + 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": "employee_hire_evaluation", + "query": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "shop", + "WHERE", + "number_products", + ">", + "(", + "SELECT", + "avg", + "(", + "number_products", + ")", + "FROM", + "shop", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "shop", + "where", + "number_products", + ">", + "(", + "select", + "avg", + "(", + "number_products", + ")", + "from", + "shop", + ")" + ], + "question_spider": "Which shops' number products is above the average? Give me the shop names.", + "question": "哪些商店的产品数量高于平均水平?把店名给我。", + "question_cspider": "哪些商店的产品数量高于平均水平?把店名给我。", + "bleu_from_cspider_question": "BLEU = 69.98, 87.5/69.6/63.6/61.9 (BP=1.000, ratio=1.091, hyp_len=24, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 9, + 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": "employee_hire_evaluation", + "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "employee", + "AS", + "t1", + "JOIN", + "evaluation", + "AS", + "t2", + "ON", + "t1.Employee_ID", + "=", + "t2.Employee_ID", + "GROUP", + "BY", + "t2.Employee_ID", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "employee", + "as", + "t1", + "join", + "evaluation", + "as", + "t2", + "on", + "t1", + ".", + "employee_id", + "=", + "t2", + ".", + "employee_id", + "group", + "by", + "t2", + ".", + "employee_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "find the name of employee who was awarded the most times in the evaluation.", + "question": "查找在评审中被奖励最多次数的员工的名字。", + "question_cspider": "查找在评审中被奖励最多次数的员工的名字。", + "bleu_from_cspider_question": "BLEU = 28.75, 73.7/38.9/23.5/12.5 (BP=0.949, ratio=0.950, hyp_len=19, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "employee", + "AS", + "t1", + "JOIN", + "evaluation", + "AS", + "t2", + "ON", + "t1.Employee_ID", + "=", + "t2.Employee_ID", + "GROUP", + "BY", + "t2.Employee_ID", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "employee", + "as", + "t1", + "join", + "evaluation", + "as", + "t2", + "on", + "t1", + ".", + "employee_id", + "=", + "t2", + ".", + "employee_id", + "group", + "by", + "t2", + ".", + "employee_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which employee received the most awards in evaluations? Give me the employee name.", + "question": "哪位员工在评审中获得最多奖项?给我员工的名字。", + "question_cspider": "哪位员工在评审中获得最多奖项?给我员工的名字。", + "bleu_from_cspider_question": "BLEU = 40.04, 87.0/59.1/33.3/15.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "employee", + "AS", + "t1", + "JOIN", + "evaluation", + "AS", + "t2", + "ON", + "t1.Employee_ID", + "=", + "t2.Employee_ID", + "ORDER", + "BY", + "t2.bonus", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "employee", + "as", + "t1", + "join", + "evaluation", + "as", + "t2", + "on", + "t1", + ".", + "employee_id", + "=", + "t2", + ".", + "employee_id", + "order", + "by", + "t2", + ".", + "bonus", + "desc", + "limit", + "value" + ], + "question_spider": "Find the name of the employee who got the highest one time bonus.", + "question": "查找获得最高奖金的员工的名字。", + "question_cspider": "查找获得最高奖金的员工的名字。", + "bleu_from_cspider_question": "BLEU = 51.74, 76.5/56.2/46.7/35.7 (BP=1.000, ratio=1.133, hyp_len=17, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "employee", + "AS", + "t1", + "JOIN", + "evaluation", + "AS", + "t2", + "ON", + "t1.Employee_ID", + "=", + "t2.Employee_ID", + "ORDER", + "BY", + "t2.bonus", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "employee", + "as", + "t1", + "join", + "evaluation", + "as", + "t2", + "on", + "t1", + ".", + "employee_id", + "=", + "t2", + ".", + "employee_id", + "order", + "by", + "t2", + ".", + "bonus", + "desc", + "limit", + "value" + ], + "question_spider": "Which employee received the biggest bonus? Give me the employee name.", + "question": "哪位员工获得最大奖金?给我员工的名字。", + "question_cspider": "哪位员工获得最大奖金?给我员工的名字。", + "bleu_from_cspider_question": "BLEU = 26.80, 78.9/44.4/23.5/6.2 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "employee", + "WHERE", + "Employee_ID", + "NOT", + "IN", + "(", + "SELECT", + "Employee_ID", + "FROM", + "evaluation", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "employee", + "where", + "employee_id", + "not", + "in", + "(", + "select", + "employee_id", + "from", + "evaluation", + ")" + ], + "question_spider": "Find the names of employees who never won any award in the evaluation.", + "question": "找到那些从未在评审中获奖的员工的名字。", + "question_cspider": "找到那些从未在评审中获奖的员工的名字。", + "bleu_from_cspider_question": "BLEU = 27.18, 66.7/35.0/21.1/11.1 (BP=1.000, ratio=1.105, hyp_len=21, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + 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": "employee_hire_evaluation", + "query": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "employee", + "WHERE", + "Employee_ID", + "NOT", + "IN", + "(", + "SELECT", + "Employee_ID", + "FROM", + "evaluation", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "employee", + "where", + "employee_id", + "not", + "in", + "(", + "select", + "employee_id", + "from", + "evaluation", + ")" + ], + "question_spider": "What are the names of the employees who never received any evaluation?", + "question": "那些从未接受过评估的员工的名字是什么?", + "question_cspider": "那些从未接受过评估的员工的名字是什么?", + "bleu_from_cspider_question": "BLEU = 88.90, 100.0/100.0/100.0/100.0 (BP=0.889, ratio=0.895, hyp_len=17, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + 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": "employee_hire_evaluation", + "query": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t2.name", + "FROM", + "hiring", + "AS", + "t1", + "JOIN", + "shop", + "AS", + "t2", + "ON", + "t1.shop_id", + "=", + "t2.shop_id", + "GROUP", + "BY", + "t1.shop_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "hiring", + "as", + "t1", + "join", + "shop", + "as", + "t2", + "on", + "t1", + ".", + "shop_id", + "=", + "t2", + ".", + "shop_id", + "group", + "by", + "t1", + ".", + "shop_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the shop that is hiring the largest number of employees?", + "question": "员工人数最多的商店名称是什么?", + "question_cspider": "员工人数最多的商店名称是什么?", + "bleu_from_cspider_question": "BLEU = 67.39, 81.2/73.3/64.3/53.8 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t2.name", + "FROM", + "hiring", + "AS", + "t1", + "JOIN", + "shop", + "AS", + "t2", + "ON", + "t1.shop_id", + "=", + "t2.shop_id", + "GROUP", + "BY", + "t1.shop_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "hiring", + "as", + "t1", + "join", + "shop", + "as", + "t2", + "on", + "t1", + ".", + "shop_id", + "=", + "t2", + ".", + "shop_id", + "group", + "by", + "t1", + ".", + "shop_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which shop has the most employees? Give me the shop name.", + "question": "哪个商店的员工最多?把店名给我。", + "question_cspider": "哪个商店的员工最多?把店名给我。", + "bleu_from_cspider_question": "BLEU = 68.18, 100.0/78.6/61.5/58.3 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "shop", + "WHERE", + "shop_id", + "NOT", + "IN", + "(", + "SELECT", + "shop_id", + "FROM", + "hiring", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "shop", + "where", + "shop_id", + "not", + "in", + "(", + "select", + "shop_id", + "from", + "hiring", + ")" + ], + "question_spider": "Find the name of the shops that do not hire any employee.", + "question": "查询不雇佣任何雇员的商店名称。", + "question_cspider": "查询不雇佣任何雇员的商店名称。", + "bleu_from_cspider_question": "BLEU = 0.00, 75.0/40.0/14.3/0.0 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + 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": "employee_hire_evaluation", + "query": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "shop", + "WHERE", + "shop_id", + "NOT", + "IN", + "(", + "SELECT", + "shop_id", + "FROM", + "hiring", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "shop", + "where", + "shop_id", + "not", + "in", + "(", + "select", + "shop_id", + "from", + "hiring", + ")" + ], + "question_spider": "Which shops run with no employees? Find the shop names", + "question": "哪些商店没有员工?查找店铺名称", + "question_cspider": "哪些商店没有员工?查找店铺名称", + "bleu_from_cspider_question": "BLEU = 76.25, 88.2/81.2/73.3/64.3 (BP=1.000, ratio=1.133, hyp_len=17, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + 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": "employee_hire_evaluation", + "query": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "t2.name", + "FROM", + "hiring", + "AS", + "t1", + "JOIN", + "shop", + "AS", + "t2", + "ON", + "t1.shop_id", + "=", + "t2.shop_id", + "GROUP", + "BY", + "t2.name" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t2", + ".", + "name", + "from", + "hiring", + "as", + "t1", + "join", + "shop", + "as", + "t2", + "on", + "t1", + ".", + "shop_id", + "=", + "t2", + ".", + "shop_id", + "group", + "by", + "t2", + ".", + "name" + ], + "question_spider": "Find the number of employees hired in each shop; show the shop name as well.", + "question": "查询每个商店雇佣的员工数量;并且显示商店名称。", + "question_cspider": "查询每个商店雇佣的员工数量;并且显示商店名称。", + "bleu_from_cspider_question": "BLEU = 48.40, 78.3/54.5/42.9/30.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + 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": "employee_hire_evaluation", + "query": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "t2.name", + "FROM", + "hiring", + "AS", + "t1", + "JOIN", + "shop", + "AS", + "t2", + "ON", + "t1.shop_id", + "=", + "t2.shop_id", + "GROUP", + "BY", + "t2.name" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t2", + ".", + "name", + "from", + "hiring", + "as", + "t1", + "join", + "shop", + "as", + "t2", + "on", + "t1", + ".", + "shop_id", + "=", + "t2", + ".", + "shop_id", + "group", + "by", + "t2", + ".", + "name" + ], + "question_spider": "For each shop, return the number of employees working there and the name of the shop.", + "question": "对于每个商店,返回在那里工作的雇员人数和店名。", + "question_cspider": "对于每个商店,返回在那里工作的雇员人数和店名。", + "bleu_from_cspider_question": "BLEU = 52.65, 83.3/60.9/45.5/33.3 (BP=1.000, ratio=1.043, hyp_len=24, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + 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": "employee_hire_evaluation", + "query": "SELECT sum(bonus) FROM evaluation", + "query_toks": [ + "SELECT", + "sum", + "(", + "bonus", + ")", + "FROM", + "evaluation" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "bonus", + ")", + "from", + "evaluation" + ], + "question_spider": "What is total bonus given in all evaluations?", + "question": "所有评审中给出的总奖金是多少?", + "question_cspider": "所有评审中给出的总奖金是多少?", + "bleu_from_cspider_question": "BLEU = 56.81, 81.2/66.7/50.0/38.5 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT sum(bonus) FROM evaluation", + "query_toks": [ + "SELECT", + "sum", + "(", + "bonus", + ")", + "FROM", + "evaluation" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "bonus", + ")", + "from", + "evaluation" + ], + "question_spider": "Find the total amount of bonus given in all the evaluations.", + "question": "查询所有评审中所给出的奖金总额。", + "question_cspider": "查询所有评审中所给出的奖金总额。", + "bleu_from_cspider_question": "BLEU = 0.00, 78.6/38.5/16.7/0.0 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT * FROM hiring", + "query_toks": [ + "SELECT", + "*", + "FROM", + "hiring" + ], + "query_toks_no_value": [ + "select", + "*", + "from", + "hiring" + ], + "question_spider": "Give me all the information about hiring.", + "question": "给我有关招聘的所有信息。", + "question_cspider": "给我有关招聘的所有信息。", + "bleu_from_cspider_question": "BLEU = 50.42, 100.0/72.7/40.0/22.2 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT * FROM hiring", + "query_toks": [ + "SELECT", + "*", + "FROM", + "hiring" + ], + "query_toks_no_value": [ + "select", + "*", + "from", + "hiring" + ], + "question_spider": "What is all the information about hiring?", + "question": "招聘的所有信息是什么?", + "question_cspider": "招聘的所有信息是什么?", + "bleu_from_cspider_question": "BLEU = 48.44, 69.2/58.3/45.5/30.0 (BP=1.000, ratio=1.182, hyp_len=13, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", + "query_toks": [ + "SELECT", + "district", + "FROM", + "shop", + "WHERE", + "Number_products", + "<", + "3000", + "INTERSECT", + "SELECT", + "district", + "FROM", + "shop", + "WHERE", + "Number_products", + ">", + "10000" + ], + "query_toks_no_value": [ + "select", + "district", + "from", + "shop", + "where", + "number_products", + "<", + "value", + "intersect", + "select", + "district", + "from", + "shop", + "where", + "number_products", + ">", + "value" + ], + "question_spider": "Which district has both stores with less than 3000 products and stores with more than 10000 products?", + "question": "哪个地区有少于3000种产品的商店和多于10000种产品的商店?", + "question_cspider": "哪个地区有少于3000种产品的商店和多于10000种产品的商店?", + "bleu_from_cspider_question": "BLEU = 38.74, 67.6/47.2/34.3/20.6 (BP=1.000, ratio=1.156, hyp_len=37, ref_len=32)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 3000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 10000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", + "query_toks": [ + "SELECT", + "district", + "FROM", + "shop", + "WHERE", + "Number_products", + "<", + "3000", + "INTERSECT", + "SELECT", + "district", + "FROM", + "shop", + "WHERE", + "Number_products", + ">", + "10000" + ], + "query_toks_no_value": [ + "select", + "district", + "from", + "shop", + "where", + "number_products", + "<", + "value", + "intersect", + "select", + "district", + "from", + "shop", + "where", + "number_products", + ">", + "value" + ], + "question_spider": "Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.", + "question": "查询那些既有卖不到3000件产品的商店又有卖超过1000件产品的商店的地区。", + "question_cspider": "查询那些既有卖不到3000件产品的商店又有卖超过1000件产品的商店的地区。", + "bleu_from_cspider_question": "BLEU = 30.25, 67.5/43.6/21.1/13.5 (BP=1.000, ratio=1.053, hyp_len=40, ref_len=38)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 3000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 10000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(DISTINCT LOCATION) FROM shop", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "LOCATION", + ")", + "FROM", + "shop" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "location", + ")", + "from", + "shop" + ], + "question_spider": "How many different store locations 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=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 7, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(DISTINCT LOCATION) FROM shop", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "LOCATION", + ")", + "FROM", + "shop" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "location", + ")", + "from", + "shop" + ], + "question_spider": "Count the number of distinct store locations.", + "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=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 7, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Documents", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "documents" + ], + "question_spider": "How many documents do we have?", + "question": "我们有多少份文件?", + "question_cspider": "我们有多少份文件?", + "bleu_from_cspider_question": "BLEU = 61.02, 100.0/85.7/66.7/40.0 (BP=0.882, ratio=0.889, hyp_len=8, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Documents", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "documents" + ], + "question_spider": "Count the number of documents.", + "question": "计算文件的数量。", + "question_cspider": "计算文件的数量。", + "bleu_from_cspider_question": "BLEU = 40.29, 100.0/60.0/50.0/33.3 (BP=0.717, ratio=0.750, hyp_len=6, ref_len=8)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , document_name , document_description FROM Documents", + "query_toks": [ + "SELECT", + "document_id", + ",", + "document_name", + ",", + "document_description", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "document_name", + ",", + "document_description", + "from", + "documents" + ], + "question_spider": "List document IDs, document names, and document descriptions for all documents.", + "question": "列出所有文档的文档ID、文档名称和文档描述。", + "question_cspider": "列出所有文档的文档ID、文档名称和文档描述。", + "bleu_from_cspider_question": "BLEU = 87.25, 95.5/90.5/85.0/78.9 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 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": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , document_name , document_description FROM Documents", + "query_toks": [ + "SELECT", + "document_id", + ",", + "document_name", + ",", + "document_description", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "document_name", + ",", + "document_description", + "from", + "documents" + ], + "question_spider": "What are the ids, names, and descriptions for all documents?", + "question": "所有文档的ID、名称和描述是什么?", + "question_cspider": "所有文档的ID、名称和描述是什么?", + "bleu_from_cspider_question": "BLEU = 82.82, 94.1/87.5/80.0/71.4 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 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": "cre_Doc_Template_Mgt", + "query": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", + "query_toks": [ + "SELECT", + "document_name", + ",", + "template_id", + "FROM", + "Documents", + "WHERE", + "Document_Description", + "LIKE", + "``", + "%", + "w", + "%", + "''" + ], + "query_toks_no_value": [ + "select", + "document_name", + ",", + "template_id", + "from", + "documents", + "where", + "document_description", + "like", + "value" + ], + "question_spider": "What is the document name and template id for document with description with the letter 'w' in it?", + "question": "描述中带有字母“w”的文档名称和模板id是什么?", + "question_cspider": "描述中带有字母“w”的文档名称和模板id是什么?", + "bleu_from_cspider_question": "BLEU = 75.81, 85.2/80.8/72.0/66.7 (BP=1.000, ratio=1.125, hyp_len=27, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"%w%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", + "query_toks": [ + "SELECT", + "document_name", + ",", + "template_id", + "FROM", + "Documents", + "WHERE", + "Document_Description", + "LIKE", + "``", + "%", + "w", + "%", + "''" + ], + "query_toks_no_value": [ + "select", + "document_name", + ",", + "template_id", + "from", + "documents", + "where", + "document_description", + "like", + "value" + ], + "question_spider": "Return the names and template ids for documents that contain the letter w in their description.", + "question": "返回描述中包含字母“w”的文档的名称和模板ID。", + "question_cspider": "返回描述中包含字母“w”的文档的名称和模板ID。", + "bleu_from_cspider_question": "BLEU = 80.60, 100.0/90.5/85.0/78.9 (BP=0.913, ratio=0.917, hyp_len=22, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"%w%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", + "query_toks": [ + "SELECT", + "document_id", + ",", + "template_id", + ",", + "Document_Description", + "FROM", + "Documents", + "WHERE", + "document_name", + "=", + "``", + "Robbin", + "CV", + "''" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "template_id", + ",", + "document_description", + "from", + "documents", + "where", + "document_name", + "=", + "value" + ], + "question_spider": "What is the document id, template id and description for document named \"Robbin CV\"?", + "question": "“罗超的简历”的文档ID、模板id和描述是什么?", + "question_cspider": "“罗超的简历”文档的文档ID、模板id和描述是什么?", + "bleu_from_cspider_question": "BLEU = 37.62, 59.4/41.9/33.3/24.1 (BP=1.000, ratio=1.231, hyp_len=32, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Robbin CV\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", + "query_toks": [ + "SELECT", + "document_id", + ",", + "template_id", + ",", + "Document_Description", + "FROM", + "Documents", + "WHERE", + "document_name", + "=", + "``", + "Robbin", + "CV", + "''" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "template_id", + ",", + "document_description", + "from", + "documents", + "where", + "document_name", + "=", + "value" + ], + "question_spider": "Return the document id, template id, and description for the document with the name Robbin CV.", + "question": "返回名称为“罗超的简历”的文档ID、模板id和描述。", + "question_cspider": "返回名称为“罗超的简历”的文档的文档ID、模板id和描述。", + "bleu_from_cspider_question": "BLEU = 36.78, 59.3/46.2/36.0/25.0 (BP=0.929, ratio=0.931, hyp_len=27, ref_len=29)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Robbin CV\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(DISTINCT template_id) FROM Documents", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "template_id", + ")", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "template_id", + ")", + "from", + "documents" + ], + "question_spider": "How many different templates do all document use?", + "question": "所有文档使用的不同模板有多少?", + "question_cspider": "所有文档使用的不同模板有多少?", + "bleu_from_cspider_question": "BLEU = 45.01, 93.3/57.1/30.8/25.0 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 10, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(DISTINCT template_id) FROM Documents", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "template_id", + ")", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "template_id", + ")", + "from", + "documents" + ], + "question_spider": "Count the number of different templates used for documents.", + "question": "计算文档中使用的不同模板的数量。", + "question_cspider": "计算文档中使用的不同模板的数量。", + "bleu_from_cspider_question": "BLEU = 60.89, 93.3/71.4/53.8/50.0 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 10, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Documents", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.Template_ID", + "=", + "T2.Template_ID", + "WHERE", + "T2.Template_Type_Code", + "=", + "'PPT", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "documents", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t2", + ".", + "template_type_code", + "=", + "value" + ], + "question_spider": "How many documents are using the template with type code 'PPT'?", + "question": "有多少文档使用了PPT?", + "question_cspider": "有多少文档使用“PPT”类型的模板?", + "bleu_from_cspider_question": "BLEU = 33.89, 73.9/50.0/23.8/15.0 (BP=1.000, ratio=1.278, hyp_len=23, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PPT\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Documents", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.Template_ID", + "=", + "T2.Template_ID", + "WHERE", + "T2.Template_Type_Code", + "=", + "'PPT", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "documents", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t2", + ".", + "template_type_code", + "=", + "value" + ], + "question_spider": "Count the number of documents that use the PPT template type.", + "question": "计算使用“PPT”的文档数。", + "question_cspider": "计算使用“PPT”类型的模板的文档数。", + "bleu_from_cspider_question": "BLEU = 45.70, 100.0/80.0/50.0/23.1 (BP=0.829, ratio=0.842, hyp_len=16, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PPT\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", + "query_toks": [ + "SELECT", + "template_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Documents", + "GROUP", + "BY", + "template_id" + ], + "query_toks_no_value": [ + "select", + "template_id", + ",", + "count", + "(", + "*", + ")", + "from", + "documents", + "group", + "by", + "template_id" + ], + "question_spider": "Show all template ids and number of documents using each template.", + "question": "显示所有被使用的模板ID和每个模板被文档使用次数。", + "question_cspider": "显示所有被使用的模板ID和每个模板被文档使用次数。", + "bleu_from_cspider_question": "BLEU = 38.96, 100.0/68.4/38.9/23.5 (BP=0.779, ratio=0.800, hyp_len=20, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", + "query_toks": [ + "SELECT", + "template_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Documents", + "GROUP", + "BY", + "template_id" + ], + "query_toks_no_value": [ + "select", + "template_id", + ",", + "count", + "(", + "*", + ")", + "from", + "documents", + "group", + "by", + "template_id" + ], + "question_spider": "What are all different template ids used for documents, and how many times were each of them used?", + "question": "文档中使用的所有不同的模板ID是什么,以及每个模板被使用了多少次?", + "question_cspider": "文档中使用的所有不同的模板ID是什么,以及每个模板被使用了多少次?", + "bleu_from_cspider_question": "BLEU = 46.91, 78.6/63.0/50.0/40.0 (BP=0.836, ratio=0.848, hyp_len=28, ref_len=33)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.template_id", + ",", + "T2.Template_Type_Code", + "FROM", + "Documents", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_id", + ",", + "t2", + ".", + "template_type_code", + "from", + "documents", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the id and type code for the template used by the most documents?", + "question": "被文档使用次数最多的模板的ID和类型代码是什么?", + "question_cspider": "被文档使用次数最多的模板的ID和类型代码是什么?", + "bleu_from_cspider_question": "BLEU = 72.46, 95.5/81.0/75.0/68.4 (BP=0.913, ratio=0.917, hyp_len=22, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.template_id", + ",", + "T2.Template_Type_Code", + "FROM", + "Documents", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_id", + ",", + "t2", + ".", + "template_type_code", + "from", + "documents", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Return the id and type code of the template that is used for the greatest number of documents.", + "question": "返回被文档所使用次数最多的模板的ID和类型代码。", + "question_cspider": "返回被文档所使用次数最多的模板的ID和类型代码。", + "bleu_from_cspider_question": "BLEU = 56.20, 90.9/66.7/50.0/47.4 (BP=0.913, ratio=0.917, hyp_len=22, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Documents", + "GROUP", + "BY", + "template_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "documents", + "group", + "by", + "template_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Show ids for all templates that are used by more than one document.", + "question": "显示所有不止一次被文档使用的模板的ID。", + "question_cspider": "显示所有不止一次被文档使用的模板的ID。", + "bleu_from_cspider_question": "BLEU = 48.13, 84.2/61.1/41.2/31.2 (BP=0.949, ratio=0.950, hyp_len=19, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Documents", + "GROUP", + "BY", + "template_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "documents", + "group", + "by", + "template_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "What are the template ids of any templates used in more than a single document?", + "question": "在不止一个文档中使用的模板的ID是什么?", + "question_cspider": "在不止一个文档中使用的模板的ID是什么?", + "bleu_from_cspider_question": "BLEU = 50.91, 73.9/63.6/47.6/30.0 (BP=1.000, ratio=1.150, hyp_len=23, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Templates", + "EXCEPT", + "SELECT", + "template_id", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "templates", + "except", + "select", + "template_id", + "from", + "documents" + ], + "question_spider": "Show ids for all templates not used by any document.", + "question": "显示所有没被文档所使用过的模板的ID。", + "question_cspider": "显示所有没被文档所使用过的模板的ID。", + "bleu_from_cspider_question": "BLEU = 36.46, 83.3/52.9/25.0/20.0 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Templates", + "EXCEPT", + "SELECT", + "template_id", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "templates", + "except", + "select", + "template_id", + "from", + "documents" + ], + "question_spider": "What are the ids for templates that are not used in any documents?", + "question": "在任何文档中都没被使用的模板的ID是什么?", + "question_cspider": "在任何文档中都没被使用的模板的ID是什么?", + "bleu_from_cspider_question": "BLEU = 77.44, 95.0/84.2/77.8/70.6 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Templates", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "templates" + ], + "question_spider": "How many templates do we have?", + "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)", + "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": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Templates", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "templates" + ], + "question_spider": "Count the number of templates.", + "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=8, ref_len=8)", + "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": "cre_Doc_Template_Mgt", + "query": "SELECT template_id , version_number , template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "template_id", + ",", + "version_number", + ",", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "template_id", + ",", + "version_number", + ",", + "template_type_code", + "from", + "templates" + ], + "question_spider": "Show template ids, version numbers, and template type codes for all templates.", + "question": "显示所有模板的ID、版本号和模板类型代码。", + "question_cspider": "显示所有模板的ID、版本号和模板类型代码。", + "bleu_from_cspider_question": "BLEU = 72.00, 87.0/77.3/66.7/60.0 (BP=1.000, ratio=1.095, hyp_len=23, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id , version_number , template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "template_id", + ",", + "version_number", + ",", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "template_id", + ",", + "version_number", + ",", + "template_type_code", + "from", + "templates" + ], + "question_spider": "What are the ids, version numbers, and type codes for each template?", + "question": "每个模板的ID、版本号和类型代码是什么?", + "question_cspider": "每个模板的ID、版本号和类型代码是什么?", + "bleu_from_cspider_question": "BLEU = 85.79, 95.0/89.5/83.3/76.5 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT DISTINCT template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "DISTINCT", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "distinct", + "template_type_code", + "from", + "templates" + ], + "question_spider": "Show all distinct template type codes for all templates.", + "question": "显示所有不同的模板类型代码。", + "question_cspider": "显示所有不同的模板类型代码。", + "bleu_from_cspider_question": "BLEU = 58.01, 77.8/64.7/56.2/40.0 (BP=1.000, ratio=1.286, hyp_len=18, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT DISTINCT template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "DISTINCT", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "distinct", + "template_type_code", + "from", + "templates" + ], + "question_spider": "What are the different template type codes?", + "question": "不同的模板类型代码是什么?", + "question_cspider": "不同的模板类型代码是什么?", + "bleu_from_cspider_question": "BLEU = 66.52, 76.9/66.7/63.6/60.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Templates", + "WHERE", + "template_type_code", + "=", + "``", + "PP", + "''", + "OR", + "template_type_code", + "=", + "``", + "PPT", + "''" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "templates", + "where", + "template_type_code", + "=", + "value", + "or", + "template_type_code", + "=", + "value" + ], + "question_spider": "What are the ids of templates with template type code PP or PPT?", + "question": "模板类型代码是“PP”或“PPT”的模板ID是什么?", + "question_cspider": "模板类型代码是“PP”或“PPT”的模板ID是什么?", + "bleu_from_cspider_question": "BLEU = 47.93, 91.3/68.2/47.6/30.0 (BP=0.878, ratio=0.885, hyp_len=23, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PP\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PPT\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Templates", + "WHERE", + "template_type_code", + "=", + "``", + "PP", + "''", + "OR", + "template_type_code", + "=", + "``", + "PPT", + "''" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "templates", + "where", + "template_type_code", + "=", + "value", + "or", + "template_type_code", + "=", + "value" + ], + "question_spider": "Return the ids of templates that have the code PP or PPT.", + "question": "返回具有代码“PP”或“PPT”的模板的ID。", + "question_cspider": "返回具有代码“PP”或“PPT”的模板的ID。", + "bleu_from_cspider_question": "BLEU = 37.66, 94.4/64.7/37.5/26.7 (BP=0.757, ratio=0.783, hyp_len=18, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PP\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PPT\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "WHERE", + "template_type_code", + "=", + "``", + "CV", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "templates", + "where", + "template_type_code", + "=", + "value" + ], + "question_spider": "How many templates have template type code CV?", + "question": "有多少简历的模版?", + "question_cspider": "有多少个模板的模板类型代码为“简历”?", + "bleu_from_cspider_question": "BLEU = 45.87, 81.2/60.0/50.0/38.5 (BP=0.829, ratio=0.842, hyp_len=16, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"CV\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "WHERE", + "template_type_code", + "=", + "``", + "CV", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "templates", + "where", + "template_type_code", + "=", + "value" + ], + "question_spider": "Count the number of templates of the type CV.", + "question": "计算“简历”类型的模板数。", + "question_cspider": "计算“简历”类型的模板数。", + "bleu_from_cspider_question": "BLEU = 35.42, 69.2/41.7/27.3/20.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"CV\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", + "query_toks": [ + "SELECT", + "version_number", + ",", + "template_type_code", + "FROM", + "Templates", + "WHERE", + "version_number", + ">", + "5" + ], + "query_toks_no_value": [ + "select", + "version_number", + ",", + "template_type_code", + "from", + "templates", + "where", + "version_number", + ">", + "value" + ], + "question_spider": "What is the version number and template type code for the template with version number later than 5?", + "question": "版本号晚于5的模板的版本号和模板类型代码是什么?", + "question_cspider": "版本号晚于5的模板的版本号和模板类型代码是什么?", + "bleu_from_cspider_question": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=24, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 5.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", + "query_toks": [ + "SELECT", + "version_number", + ",", + "template_type_code", + "FROM", + "Templates", + "WHERE", + "version_number", + ">", + "5" + ], + "query_toks_no_value": [ + "select", + "version_number", + ",", + "template_type_code", + "from", + "templates", + "where", + "version_number", + ">", + "value" + ], + "question_spider": "Return the version numbers and template type codes of templates with a version number greater than 5.", + "question": "返回版本号大于5的模板的版本号和模板类型代码。", + "question_cspider": "返回版本号大于5的模板的版本号和模板类型代码。", + "bleu_from_cspider_question": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 5.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", + "query_toks": [ + "SELECT", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "from", + "templates", + "group", + "by", + "template_type_code" + ], + "question_spider": "Show all template type codes and number of templates for each.", + "question": "显示所有模板类型代码和每个模板的模板数。", + "question_cspider": "显示所有模板类型代码和每个模板的模板数。", + "bleu_from_cspider_question": "BLEU = 80.88, 94.7/83.3/82.4/81.2 (BP=0.949, ratio=0.950, hyp_len=19, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", + "query_toks": [ + "SELECT", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "from", + "templates", + "group", + "by", + "template_type_code" + ], + "question_spider": "What are the different template type codes, and how many templates correspond to each?", + "question": "不同的模板类型代码是什么,每个模板类型对应多少个模板?", + "question_cspider": "不同的模板类型代码是什么,每个模板类型对应多少个模板?", + "bleu_from_cspider_question": "BLEU = 67.53, 88.0/79.2/69.6/59.1 (BP=0.923, ratio=0.926, hyp_len=25, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "group", + "by", + "template_type_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which template type code has most number of templates?", + "question": "哪个模板类型代码对应的模板数量最多?", + "question_cspider": "哪个模板类型代码对应的模板数量最多?", + "bleu_from_cspider_question": "BLEU = 51.71, 83.3/58.8/43.8/33.3 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "group", + "by", + "template_type_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Return the type code of the template type that the most templates belong to.", + "question": "返回数量最多的模板所属的模板类型的类型代码。", + "question_cspider": "返回数量最多的模板所属的模板类型的类型代码。", + "bleu_from_cspider_question": "BLEU = 72.16, 100.0/88.9/76.5/75.0 (BP=0.854, ratio=0.864, hyp_len=19, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "3" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "group", + "by", + "template_type_code", + "having", + "count", + "(", + "*", + ")", + "<", + "value" + ], + "question_spider": "Show all template type codes with less than three templates.", + "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=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "3" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "group", + "by", + "template_type_code", + "having", + "count", + "(", + "*", + ")", + "<", + "value" + ], + "question_spider": "What are the codes of template types that have fewer than 3 templates?", + "question": "少于3个模板的模板类型代码是什么?", + "question_cspider": "少于3个模板的模板类型代码是什么?", + "bleu_from_cspider_question": "BLEU = 83.94, 94.4/88.2/81.2/73.3 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT min(Version_Number) , template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "min", + "(", + "Version_Number", + ")", + ",", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "version_number", + ")", + ",", + "template_type_code", + "from", + "templates" + ], + "question_spider": "What the smallest version number and its template type code?", + "question": "最小版本号及其模板类型代码是什么?", + "question_cspider": "最小版本号及其模板类型代码是什么?", + "bleu_from_cspider_question": "BLEU = 85.79, 94.4/88.2/81.2/80.0 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT min(Version_Number) , template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "min", + "(", + "Version_Number", + ")", + ",", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "version_number", + ")", + ",", + "template_type_code", + "from", + "templates" + ], + "question_spider": "Return the lowest version number, along with its corresponding template type code.", + "question": "返回最低版本号及其对应的模板类型代码。", + "question_cspider": "返回最低版本号及其对应的模板类型代码。", + "bleu_from_cspider_question": "BLEU = 70.77, 90.0/78.9/66.7/52.9 (BP=1.000, ratio=1.053, hyp_len=20, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"", + "query_toks": [ + "SELECT", + "T1.template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "WHERE", + "T2.document_name", + "=", + "``", + "Data", + "base", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question_spider": "What is the template type code of the template used by document with the name \"Data base\"?", + "question": "名称为“数据库”的文档所使用的模板的模板类型代码是什么?", + "question_cspider": "名称为“数据库”的文档所使用的模板的模板类型代码是什么?", + "bleu_from_cspider_question": "BLEU = 90.39, 100.0/96.2/92.0/87.5 (BP=0.964, ratio=0.964, hyp_len=27, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Data base\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"", + "query_toks": [ + "SELECT", + "T1.template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "WHERE", + "T2.document_name", + "=", + "``", + "Data", + "base", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question_spider": "Return the template type code of the template that is used by a document named Data base.", + "question": "返回名为“数据库”的文档使用的模板的模板类型代码。", + "question_cspider": "返回名为“数据库”的文档使用的模板的模板类型代码。", + "bleu_from_cspider_question": "BLEU = 77.66, 100.0/90.9/81.0/70.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Data base\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"", + "query_toks": [ + "SELECT", + "T2.document_name", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "WHERE", + "T1.template_type_code", + "=", + "``", + "BK", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "document_name", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t1", + ".", + "template_type_code", + "=", + "value" + ], + "question_spider": "Show all document names using templates with template type code BK.", + "question": "显示所有使用模板类型代码为“BK”的文档名称。", + "question_cspider": "显示所有使用模板类型代码为“BK”的文档名称。", + "bleu_from_cspider_question": "BLEU = 64.28, 91.3/72.7/57.1/45.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"BK\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"", + "query_toks": [ + "SELECT", + "T2.document_name", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "WHERE", + "T1.template_type_code", + "=", + "``", + "BK", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "document_name", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t1", + ".", + "template_type_code", + "=", + "value" + ], + "question_spider": "What are the names of documents that use templates with the code BK?", + "question": "使用模板代码为“BK”的文档的名称是什么?", + "question_cspider": "使用模板代码为“BK”的文档的名称是什么?", + "bleu_from_cspider_question": "BLEU = 58.61, 95.0/73.7/50.0/41.2 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"BK\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", + "query_toks": [ + "SELECT", + "T1.template_type_code", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_type_code" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_type_code" + ], + "question_spider": "Show all template type codes and the number of documents using each type.", + "question": "显示所有模板类型代码和使用每个类型的文档的数量。", + "question_cspider": "显示所有模板类型代码和使用每个类型的文档的数量。", + "bleu_from_cspider_question": "BLEU = 72.46, 95.5/81.0/75.0/68.4 (BP=0.913, ratio=0.917, hyp_len=22, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", + "query_toks": [ + "SELECT", + "T1.template_type_code", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_type_code" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_type_code" + ], + "question_spider": "What are the different template type codes, and how many documents use each type?", + "question": "不同的模板类型代码是什么?以及每个类型被多少个文档使用?", + "question_cspider": "不同的模板类型代码是什么?以及每个类型被多少个文档使用?", + "bleu_from_cspider_question": "BLEU = 42.79, 74.1/50.0/36.0/29.2 (BP=0.964, ratio=0.964, hyp_len=27, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_type_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_type_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which template type code is used by most number of documents?", + "question": "哪种模板类型代码被文档最广泛使用?", + "question_cspider": "哪种模板类型代码被文档使用的最多?", + "bleu_from_cspider_question": "BLEU = 58.83, 87.5/66.7/57.1/46.2 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_type_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_type_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Return the code of the template type that is most commonly used in documents.", + "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=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "EXCEPT", + "SELECT", + "template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "except", + "select", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id" + ], + "question_spider": "Show all template type codes that are not used by any document.", + "question": "显示任何文档都没使用过的所有模板类型代码。", + "question_cspider": "显示任何文档都没使用过的所有模板类型代码。", + "bleu_from_cspider_question": "BLEU = 52.48, 84.2/66.7/47.1/43.8 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + 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, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "EXCEPT", + "SELECT", + "template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "except", + "select", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id" + ], + "question_spider": "What are the codes of template types that are not used for any document?", + "question": "任何文档都没使用过的的模板类型代码有哪些?", + "question_cspider": "任何文档都没使用过的的模板类型代码有哪些?", + "bleu_from_cspider_question": "BLEU = 33.00, 73.7/44.4/29.4/18.8 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + 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, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code , template_type_description FROM Ref_template_types", + "query_toks": [ + "SELECT", + "template_type_code", + ",", + "template_type_description", + "FROM", + "Ref_template_types" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + ",", + "template_type_description", + "from", + "ref_template_types" + ], + "question_spider": "Show all template type codes and descriptions.", + "question": "显示所有模板类型代码和说明。", + "question_cspider": "显示所有模板类型代码和说明。", + "bleu_from_cspider_question": "BLEU = 77.44, 85.7/76.9/75.0/72.7 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code , template_type_description FROM Ref_template_types", + "query_toks": [ + "SELECT", + "template_type_code", + ",", + "template_type_description", + "FROM", + "Ref_template_types" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + ",", + "template_type_description", + "from", + "ref_template_types" + ], + "question_spider": "What are the type codes and descriptions for all template types?", + "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=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", + "query_toks": [ + "SELECT", + "template_type_description", + "FROM", + "Ref_template_types", + "WHERE", + "template_type_code", + "=", + "``", + "AD", + "''" + ], + "query_toks_no_value": [ + "select", + "template_type_description", + "from", + "ref_template_types", + "where", + "template_type_code", + "=", + "value" + ], + "question_spider": "What is the template type descriptions for template type code \"AD\".", + "question": "模板类型代码“广告”的模板类型说明是什么?", + "question_cspider": "模板类型代码“广告”的模板类型说明是什么?", + "bleu_from_cspider_question": "BLEU = 56.42, 76.2/65.0/52.6/38.9 (BP=1.000, ratio=1.000, hyp_len=21, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + "\"AD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", + "query_toks": [ + "SELECT", + "template_type_description", + "FROM", + "Ref_template_types", + "WHERE", + "template_type_code", + "=", + "``", + "AD", + "''" + ], + "query_toks_no_value": [ + "select", + "template_type_description", + "from", + "ref_template_types", + "where", + "template_type_code", + "=", + "value" + ], + "question_spider": "Return the template type description of the template type with the code AD.", + "question": "返回模板类型代码是“广告”的模板类型描述。", + "question_cspider": "返回模板类型代码是“广告”的模板类型描述。", + "bleu_from_cspider_question": "BLEU = 50.47, 80.0/63.2/44.4/35.3 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + "\"AD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Ref_template_types", + "WHERE", + "template_type_description", + "=", + "``", + "Book", + "''" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "ref_template_types", + "where", + "template_type_description", + "=", + "value" + ], + "question_spider": "What is the template type code for template type description \"Book\".", + "question": "模板类型描述是“书本”的模板类型代码是什么?", + "question_cspider": "模板类型描述是“书本”的模板类型代码是什么?", + "bleu_from_cspider_question": "BLEU = 70.75, 95.0/84.2/72.2/64.7 (BP=0.905, ratio=0.909, hyp_len=20, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Book\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Ref_template_types", + "WHERE", + "template_type_description", + "=", + "``", + "Book", + "''" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "ref_template_types", + "where", + "template_type_description", + "=", + "value" + ], + "question_spider": "Return the type code of the template type with the description \"Book\".", + "question": "返回描述是“书”的模板类型的类型代码。", + "question_cspider": "返回描述是“书”的模板类型的类型代码。", + "bleu_from_cspider_question": "BLEU = 55.31, 73.9/59.1/47.6/45.0 (BP=1.000, ratio=1.211, hyp_len=23, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Book\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.template_type_description", + "FROM", + "Ref_template_types", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_type_code", + "=", + "T2.template_type_code", + "JOIN", + "Documents", + "AS", + "T3", + "ON", + "T2.Template_ID", + "=", + "T3.template_ID" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "template_type_description", + "from", + "ref_template_types", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_type_code", + "=", + "t2", + ".", + "template_type_code", + "join", + "documents", + "as", + "t3", + "on", + "t2", + ".", + "template_id", + "=", + "t3", + ".", + "template_id" + ], + "question_spider": "What are the distinct template type descriptions for the templates ever used by any document?", + "question": "对于任何文档使用过的模板,都有哪些不同的模板类型描述?", + "question_cspider": "对于任何文档使用过的模板,都有哪些不同的模板类型描述?", + "bleu_from_cspider_question": "BLEU = 80.20, 92.9/85.2/76.9/68.0 (BP=1.000, ratio=1.037, hyp_len=28, ref_len=27)", + "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, + 10, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.template_type_description", + "FROM", + "Ref_template_types", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_type_code", + "=", + "T2.template_type_code", + "JOIN", + "Documents", + "AS", + "T3", + "ON", + "T2.Template_ID", + "=", + "T3.template_ID" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "template_type_description", + "from", + "ref_template_types", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_type_code", + "=", + "t2", + ".", + "template_type_code", + "join", + "documents", + "as", + "t3", + "on", + "t2", + ".", + "template_id", + "=", + "t3", + ".", + "template_id" + ], + "question_spider": "Return the different descriptions for templates that have been used in a document.", + "question": "返回文档中使用过的模板的不同描述。", + "question_cspider": "返回文档中使用过的模板的不同描述。", + "bleu_from_cspider_question": "BLEU = 73.47, 94.1/81.2/66.7/57.1 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "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, + 10, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", + "query_toks": [ + "SELECT", + "T2.template_id", + "FROM", + "Ref_template_types", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_type_code", + "=", + "T2.template_type_code", + "WHERE", + "T1.template_type_description", + "=", + "``", + "Presentation", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "template_id", + "from", + "ref_template_types", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_type_code", + "=", + "t2", + ".", + "template_type_code", + "where", + "t1", + ".", + "template_type_description", + "=", + "value" + ], + "question_spider": "What are the template ids with template type description \"Presentation\".", + "question": "模板类型描述是“演示”的模板ID是什么?", + "question_cspider": "模板类型描述是“演示”的模板ID是什么?", + "bleu_from_cspider_question": "BLEU = 42.06, 53.3/44.8/39.3/33.3 (BP=1.000, ratio=1.500, hyp_len=30, ref_len=20)", + "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, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Presentation\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", + "query_toks": [ + "SELECT", + "T2.template_id", + "FROM", + "Ref_template_types", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_type_code", + "=", + "T2.template_type_code", + "WHERE", + "T1.template_type_description", + "=", + "``", + "Presentation", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "template_id", + "from", + "ref_template_types", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_type_code", + "=", + "t2", + ".", + "template_type_code", + "where", + "t1", + ".", + "template_type_description", + "=", + "value" + ], + "question_spider": "Return the ids corresponding to templates with the description 'Presentation'.", + "question": "返回对应描述为“演示”的模板的ID。", + "question_cspider": "返回对应描述为“演示”的模板的ID。", + "bleu_from_cspider_question": "BLEU = 26.34, 53.3/37.9/21.4/11.1 (BP=1.000, ratio=1.667, hyp_len=30, ref_len=18)", + "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, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Presentation\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Paragraphs", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "paragraphs" + ], + "question_spider": "How many paragraphs in total?", + "question": "总共有多少段落?", + "question_cspider": "总共有多少段落?", + "bleu_from_cspider_question": "BLEU = 0.00, 80.0/25.0/0.0/0.0 (BP=0.549, ratio=0.625, hyp_len=5, ref_len=8)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Paragraphs", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "paragraphs" + ], + "question_spider": "Count the number of paragraphs.", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_ID", + "=", + "T2.document_ID", + "WHERE", + "T2.document_name", + "=", + "'Summer", + "Show", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question_spider": "How many paragraphs for the document with name 'Summer Show'?", + "question": "名为“夏日游览”的文件有多少段落?", + "question_cspider": "名为“夏日游览”的文件有多少段落?", + "bleu_from_cspider_question": "BLEU = 17.47, 47.8/27.3/14.3/5.0 (BP=1.000, ratio=1.353, hyp_len=23, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Summer Show\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_ID", + "=", + "T2.document_ID", + "WHERE", + "T2.document_name", + "=", + "'Summer", + "Show", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question_spider": "Count the number of paragraphs in the document named 'Summer Show'.", + "question": "计算名为“夏日游览”的文件的段落数。", + "question_cspider": "计算名为“夏日游览”的文件的段落数。", + "bleu_from_cspider_question": "BLEU = 33.09, 52.0/41.7/30.4/18.2 (BP=1.000, ratio=1.389, hyp_len=25, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Summer Show\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "select other_details from paragraphs where paragraph_text like 'korea'", + "query_toks": [ + "select", + "other_details", + "from", + "paragraphs", + "where", + "paragraph_text", + "like", + "\"korea\"" + ], + "query_toks_no_value": [ + "select", + "other_details", + "from", + "paragraphs", + "where", + "paragraph_text", + "like", + "value" + ], + "question_spider": "Show paragraph details for paragraph with text 'Korea ' .", + "question": "显示包含文本“韩文”的段落的详细内容。", + "question_cspider": "显示包含文本“韩文”的段落的详细内容。", + "bleu_from_cspider_question": "BLEU = 14.07, 41.7/21.7/9.1/4.8 (BP=1.000, ratio=1.263, hyp_len=24, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"korea\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "select other_details from paragraphs where paragraph_text like 'korea'", + "query_toks": [ + "select", + "other_details", + "from", + "paragraphs", + "where", + "paragraph_text", + "like", + "\"korea\"" + ], + "query_toks_no_value": [ + "select", + "other_details", + "from", + "paragraphs", + "where", + "paragraph_text", + "like", + "value" + ], + "question_spider": "What are the details for the paragraph that includes the text 'Korea ' ?", + "question": "包含“韩文”一词的段落的详细内容是什么?", + "question_cspider": "包含“韩文”一词的段落的详细内容是什么?", + "bleu_from_cspider_question": "BLEU = 29.72, 66.7/40.0/26.3/11.1 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"korea\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", + "query_toks": [ + "SELECT", + "T1.paragraph_id", + ",", + "T1.paragraph_text", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "WHERE", + "T2.Document_Name", + "=", + "'Welcome", + "to", + "NY", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "paragraph_id", + ",", + "t1", + ".", + "paragraph_text", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question_spider": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", + "question": "显示名称为“欢迎来到纽约”的文件的所有段落ID和文本。", + "question_cspider": "显示名称为“欢迎来到纽约”的文件的所有段落ID和文本。", + "bleu_from_cspider_question": "BLEU = 51.85, 62.1/57.1/48.1/42.3 (BP=1.000, ratio=1.074, hyp_len=29, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Welcome to NY\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", + "query_toks": [ + "SELECT", + "T1.paragraph_id", + ",", + "T1.paragraph_text", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "WHERE", + "T2.Document_Name", + "=", + "'Welcome", + "to", + "NY", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "paragraph_id", + ",", + "t1", + ".", + "paragraph_text", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question_spider": "What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?", + "question": "在名称为“欢迎来到纽约”的文件中,段落的ID和文本是什么?", + "question_cspider": "在名称为“欢迎来到纽约”的文件中,段落的ID和文本是什么?", + "bleu_from_cspider_question": "BLEU = 63.29, 85.2/73.1/64.0/54.2 (BP=0.929, ratio=0.931, hyp_len=27, ref_len=29)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Welcome to NY\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"", + "query_toks": [ + "SELECT", + "T1.paragraph_text", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "WHERE", + "T2.document_name", + "=", + "``", + "Customer", + "reviews", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "paragraph_text", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question_spider": "Show all paragraph texts for the document \"Customer reviews\".", + "question": "显示名称为“客户评论”的文档的所有段落文本。", + "question_cspider": "显示名称为“客户评论”的文档的所有段落文本。", + "bleu_from_cspider_question": "BLEU = 62.20, 100.0/88.2/68.8/60.0 (BP=0.801, ratio=0.818, hyp_len=18, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Customer reviews\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"", + "query_toks": [ + "SELECT", + "T1.paragraph_text", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "WHERE", + "T2.document_name", + "=", + "``", + "Customer", + "reviews", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "paragraph_text", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question_spider": "What are the paragraph texts for the document with the name 'Customer reviews'?", + "question": "名称为“客户评论”的文档中的段落文本是什么?", + "question_cspider": "名称为“客户评论”的文档中的段落文本是什么?", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Customer reviews\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", + "query_toks": [ + "SELECT", + "document_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "ORDER", + "BY", + "document_id" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "group", + "by", + "document_id", + "order", + "by", + "document_id" + ], + "question_spider": "Show all document ids and the number of paragraphs in each document. Order by document id.", + "question": "按文件ID升序排序,显示所有文档ID和每个文档中的段落数。", + "question_cspider": "按文件ID排序,显示所有文档ID和每个文档中的段落数。", + "bleu_from_cspider_question": "BLEU = 89.85, 96.3/92.3/88.0/83.3 (BP=1.000, ratio=1.000, hyp_len=27, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", + "query_toks": [ + "SELECT", + "document_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "ORDER", + "BY", + "document_id" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "group", + "by", + "document_id", + "order", + "by", + "document_id" + ], + "question_spider": "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.", + "question": "按id排序,返回不同的文档id以及每个文档对应的段落数量。", + "question_cspider": "按id排序,返回不同的文档id以及每个文档对应的段落数量。", + "bleu_from_cspider_question": "BLEU = 70.62, 86.2/75.0/66.7/57.7 (BP=1.000, ratio=1.000, hyp_len=29, ref_len=29)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", + "query_toks": [ + "SELECT", + "T1.document_id", + ",", + "T2.document_name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "GROUP", + "BY", + "T1.document_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "document_id", + ",", + "t2", + ".", + "document_name", + ",", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "group", + "by", + "t1", + ".", + "document_id" + ], + "question_spider": "Show all document ids, names and the number of paragraphs in each document.", + "question": "显示所有文档ID、名称和每个文档中的段落数。", + "question_cspider": "显示所有文档ID、名称和每个文档中的段落数。", + "bleu_from_cspider_question": "BLEU = 61.96, 95.5/76.2/55.0/36.8 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", + "query_toks": [ + "SELECT", + "T1.document_id", + ",", + "T2.document_name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "GROUP", + "BY", + "T1.document_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "document_id", + ",", + "t2", + ".", + "document_name", + ",", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "group", + "by", + "t1", + ".", + "document_id" + ], + "question_spider": "What are the ids and names of each document, as well as the number of paragraphs in each?", + "question": "每个文档的id和名称是什么,以及每个文档中的段落数量是多少?", + "question_cspider": "每个文档的id和名称是什么,以及每个文档中的段落数量是多少?", + "bleu_from_cspider_question": "BLEU = 91.08, 100.0/96.4/92.6/88.5 (BP=0.966, ratio=0.967, hyp_len=29, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "List all document ids with at least two paragraphs.", + "question": "列出至少包含两个段落的所有文档的ID。", + "question_cspider": "列出至少包含两个段落的所有文档的ID。", + "bleu_from_cspider_question": "BLEU = 34.37, 88.9/58.8/25.0/13.3 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What are the ids of documents that have 2 or more paragraphs?", + "question": "有2个或更多段落的文档的ID是什么?", + "question_cspider": "有2个或更多段落的文档的ID是什么?", + "bleu_from_cspider_question": "BLEU = 74.83, 85.0/78.9/72.2/64.7 (BP=1.000, ratio=1.111, hyp_len=20, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.document_id", + ",", + "T2.document_name", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "GROUP", + "BY", + "T1.document_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "document_id", + ",", + "t2", + ".", + "document_name", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "group", + "by", + "t1", + ".", + "document_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the document id and name with greatest number of paragraphs?", + "question": "段落数量最多的文档的ID和名称是什么?", + "question_cspider": "段落数量最多的文档的ID和名称是什么?", + "bleu_from_cspider_question": "BLEU = 69.18, 100.0/87.5/73.3/57.1 (BP=0.889, ratio=0.895, hyp_len=17, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.document_id", + ",", + "T2.document_name", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "GROUP", + "BY", + "T1.document_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "document_id", + ",", + "t2", + ".", + "document_name", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "group", + "by", + "t1", + ".", + "document_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Return the id and name of the document with the most paragraphs.", + "question": "返回拥有最多段落数量的文档的ID和名称。", + "question_cspider": "返回拥有最多段落数量的文档的ID和名称。", + "bleu_from_cspider_question": "BLEU = 58.90, 100.0/81.2/60.0/50.0 (BP=0.838, ratio=0.850, hyp_len=17, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question_spider": "What is the document id with least number of paragraphs?", + "question": "段落数量最少的文档的ID是多少?", + "question_cspider": "段落数量最少的文档的ID是多少?", + "bleu_from_cspider_question": "BLEU = 38.76, 85.7/61.5/41.7/18.2 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question_spider": "Return the id of the document with the fewest paragraphs.", + "question": "返回段落数量最少的文档的ID。", + "question_cspider": "返回段落数量最少的文档的ID。", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "HAVING", + "count", + "(", + "*", + ")", + "BETWEEN", + "1", + "AND", + "2" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "having", + "count", + "(", + "*", + ")", + "between", + "value", + "and", + "value" + ], + "question_spider": "What is the document id with 1 to 2 paragraphs?", + "question": "有1个或2个段落的文档ID是什么?", + "question_cspider": "有1个或2个段落的文档ID是什么?", + "bleu_from_cspider_question": "BLEU = 78.64, 93.8/86.7/78.6/76.9 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [ + [ + false, + 1, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + 2.0 + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "HAVING", + "count", + "(", + "*", + ")", + "BETWEEN", + "1", + "AND", + "2" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "having", + "count", + "(", + "*", + ")", + "between", + "value", + "and", + "value" + ], + "question_spider": "Give the ids of documents that have between one and two paragraphs.", + "question": "给出包含一到两个段落的文档的ID。", + "question_cspider": "给出包含一到两个段落的文档的ID。", + "bleu_from_cspider_question": "BLEU = 46.04, 87.5/66.7/42.9/23.1 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [ + [ + false, + 1, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + 2.0 + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "WHERE", + "paragraph_text", + "=", + "'Brazil", + "'", + "INTERSECT", + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "WHERE", + "paragraph_text", + "=", + "'Ireland", + "'" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "where", + "paragraph_text", + "=", + "value", + "intersect", + "select", + "document_id", + "from", + "paragraphs", + "where", + "paragraph_text", + "=", + "value" + ], + "question_spider": "Show the document id with paragraph text 'Brazil' and 'Ireland'.", + "question": "显示段落包含文本“巴西”和“爱尔兰”的文档的ID。", + "question_cspider": "显示段落包含文本“巴西”和“爱尔兰”的文档的ID。", + "bleu_from_cspider_question": "BLEU = 68.55, 91.7/78.3/63.6/57.1 (BP=0.959, ratio=0.960, hyp_len=24, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"Brazil\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"Ireland\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "WHERE", + "paragraph_text", + "=", + "'Brazil", + "'", + "INTERSECT", + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "WHERE", + "paragraph_text", + "=", + "'Ireland", + "'" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "where", + "paragraph_text", + "=", + "value", + "intersect", + "select", + "document_id", + "from", + "paragraphs", + "where", + "paragraph_text", + "=", + "value" + ], + "question_spider": "What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?", + "question": "段落包含文本“巴西”和“爱尔兰”的文档的ID是什么?", + "question_cspider": "段落包含文本“巴西”和“爱尔兰”的文档的ID是什么?", + "bleu_from_cspider_question": "BLEU = 89.21, 100.0/92.0/83.3/82.6 (BP=1.000, ratio=1.000, hyp_len=26, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"Brazil\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"Ireland\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT count(*) FROM teacher", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "teacher" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "teacher" + ], + "question_spider": "How many teachers are there?", + "question": "有多少老师?", + "question_cspider": "有多少老师?", + "bleu_from_cspider_question": "BLEU = 0.00, 66.7/40.0/25.0/0.0 (BP=1.000, ratio=1.000, hyp_len=6, ref_len=6)", + "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": "course_teach", + "query": "SELECT count(*) FROM teacher", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "teacher" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "teacher" + ], + "question_spider": "What is the total count of teachers?", + "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=8, ref_len=8)", + "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": "course_teach", + "query": "SELECT Name FROM teacher ORDER BY Age ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "ORDER", + "BY", + "Age", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "order", + "by", + "age", + "asc" + ], + "question_spider": "List the names of teachers in ascending order of age.", + "question": "按年龄递增顺序列出教师姓名。", + "question_cspider": "按年龄递增顺序列出教师姓名。", + "bleu_from_cspider_question": "BLEU = 62.21, 91.7/81.8/70.0/55.6 (BP=0.846, ratio=0.857, hyp_len=12, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher ORDER BY Age ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "ORDER", + "BY", + "Age", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "order", + "by", + "age", + "asc" + ], + "question_spider": "What are the names of the teachers ordered by ascending age?", + "question": "按照年龄递增排序,老师的姓名是什么?", + "question_cspider": "按照年龄递增排序,老师的姓名是什么?", + "bleu_from_cspider_question": "BLEU = 23.85, 76.5/37.5/20.0/7.1 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Age , Hometown FROM teacher", + "query_toks": [ + "SELECT", + "Age", + ",", + "Hometown", + "FROM", + "teacher" + ], + "query_toks_no_value": [ + "select", + "age", + ",", + "hometown", + "from", + "teacher" + ], + "question_spider": "What are the age and hometown of teachers?", + "question": "教师的年龄和家乡是什么?", + "question_cspider": "教师的年龄和家乡是什么?", + "bleu_from_cspider_question": "BLEU = 63.16, 75.0/63.6/60.0/55.6 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Age , Hometown FROM teacher", + "query_toks": [ + "SELECT", + "Age", + ",", + "Hometown", + "FROM", + "teacher" + ], + "query_toks_no_value": [ + "select", + "age", + ",", + "hometown", + "from", + "teacher" + ], + "question_spider": "What is the age and hometown of every teacher?", + "question": "每个老师的年龄和家乡是什么?", + "question_cspider": "每个老师的年龄和家乡是什么?", + "bleu_from_cspider_question": "BLEU = 77.44, 85.7/76.9/75.0/72.7 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "select name from teacher where hometown != \"little lever urban district\"", + "query_toks": [ + "select", + "name", + "from", + "teacher", + "where", + "hometown", + "!=", + "\"little lever urban district\"" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "hometown", + "!", + "=", + "value" + ], + "question_spider": "List the name of teachers whose hometown is not `` Little Lever Urban District '' .", + "question": "列出家乡不是“小杠杆市区”的教师的姓名。", + "question_cspider": "列出家乡不是“小杠杆市区”的教师的姓名。", + "bleu_from_cspider_question": "BLEU = 44.27, 73.9/54.5/38.1/25.0 (BP=1.000, ratio=1.150, hyp_len=23, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"little lever urban district\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "select name from teacher where hometown != \"little lever urban district\"", + "query_toks": [ + "select", + "name", + "from", + "teacher", + "where", + "hometown", + "!=", + "\"little lever urban district\"" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "hometown", + "!", + "=", + "value" + ], + "question_spider": "What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?", + "question": "家乡不是“小杠杆城区”的老师叫什么名字?", + "question_cspider": "家乡不是“小杠杆城区”的老师叫什么名字?", + "bleu_from_cspider_question": "BLEU = 47.51, 68.0/54.2/43.5/31.8 (BP=1.000, ratio=1.250, hyp_len=25, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"little lever urban district\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "WHERE", + "Age", + "=", + "32", + "OR", + "Age", + "=", + "33" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "age", + "=", + "value", + "or", + "age", + "=", + "value" + ], + "question_spider": "Show the name of teachers aged either 32 or 33?", + "question": "显示32岁或33岁的教师姓名。", + "question_cspider": "显示32岁或33岁的教师姓名。", + "bleu_from_cspider_question": "BLEU = 57.04, 70.6/56.2/53.3/50.0 (BP=1.000, ratio=1.133, hyp_len=17, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 32.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 33.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "WHERE", + "Age", + "=", + "32", + "OR", + "Age", + "=", + "33" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "age", + "=", + "value", + "or", + "age", + "=", + "value" + ], + "question_spider": "What are the names of the teachers who are aged either 32 or 33?", + "question": "32岁或33岁的老师的名字是什么?", + "question_cspider": "32岁或33岁的老师的名字是什么?", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 32.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 33.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "ORDER", + "BY", + "Age", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "order", + "by", + "age", + "asc", + "limit", + "value" + ], + "question_spider": "What is the hometown of the youngest teacher?", + "question": "最年轻的老师的家乡是哪里?", + "question_cspider": "最年轻的老师的家乡是哪里?", + "bleu_from_cspider_question": "BLEU = 75.39, 84.6/75.0/72.7/70.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "ORDER", + "BY", + "Age", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "order", + "by", + "age", + "asc", + "limit", + "value" + ], + "question_spider": "Where is the youngest teacher from?", + "question": "最年轻的老师来自哪里?", + "question_cspider": "最年轻的老师来自哪里?", + "bleu_from_cspider_question": "BLEU = 0.00, 70.0/33.3/12.5/0.0 (BP=0.905, ratio=0.909, hyp_len=10, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown", + "query_toks": [ + "SELECT", + "Hometown", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown" + ], + "query_toks_no_value": [ + "select", + "hometown", + ",", + "count", + "(", + "*", + ")", + "from", + "teacher", + "group", + "by", + "hometown" + ], + "question_spider": "Show different hometown of teachers and the number of teachers from each hometown.", + "question": "展示来自不同家乡的教师和来自每个家乡的教师数量。", + "question_cspider": "展示来自不同家乡的教师和来自每个家乡的教师数量。", + "bleu_from_cspider_question": "BLEU = 25.19, 76.2/40.0/21.1/11.1 (BP=0.867, ratio=0.875, hyp_len=21, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown", + "query_toks": [ + "SELECT", + "Hometown", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown" + ], + "query_toks_no_value": [ + "select", + "hometown", + ",", + "count", + "(", + "*", + ")", + "from", + "teacher", + "group", + "by", + "hometown" + ], + "question_spider": "For each hometown, how many teachers are there?", + "question": "每一个家乡对应有多少老师?", + "question_cspider": "每一个家乡对应有多少老师?", + "bleu_from_cspider_question": "BLEU = 50.05, 100.0/77.8/62.5/42.9 (BP=0.741, ratio=0.769, hyp_len=10, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "group", + "by", + "hometown", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "List the most common hometown of teachers.", + "question": "列出最常见的教师的家乡。", + "question_cspider": "列出最常见的教师的家乡。", + "bleu_from_cspider_question": "BLEU = 67.75, 90.9/80.0/66.7/62.5 (BP=0.913, ratio=0.917, hyp_len=11, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "group", + "by", + "hometown", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the most commmon hometowns for teachers?", + "question": "最常见的教师的家乡是哪里?", + "question_cspider": "最常见的教师的家乡是哪里?", + "bleu_from_cspider_question": "BLEU = 57.08, 91.7/72.7/50.0/44.4 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "group", + "by", + "hometown", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Show the hometowns shared by at least two teachers.", + "question": "展示至少有两位老师来自的家乡。", + "question_cspider": "展示至少有两位老师来自的家乡。", + "bleu_from_cspider_question": "BLEU = 44.80, 73.3/57.1/38.5/25.0 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "group", + "by", + "hometown", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What are the towns from which at least two teachers come from?", + "question": "至少有两位教师来自的家乡是哪些?", + "question_cspider": "至少有两位教师来自的家乡是哪些?", + "bleu_from_cspider_question": "BLEU = 25.50, 71.4/46.2/25.0/9.1 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID", + "query_toks": [ + "SELECT", + "T3.Name", + ",", + "T2.Course", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + ",", + "t2", + ".", + "course", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id" + ], + "question_spider": "Show names of teachers and the courses they are arranged to teach.", + "question": "展示老师的名字和安排他们教的课程。", + "question_cspider": "展示老师的名字和安排他们教的课程。", + "bleu_from_cspider_question": "BLEU = 43.39, 88.2/56.2/33.3/21.4 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID", + "query_toks": [ + "SELECT", + "T3.Name", + ",", + "T2.Course", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + ",", + "t2", + ".", + "course", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id" + ], + "question_spider": "What is the name of each teacher and what course they teach?", + "question": "每个老师的名字是什么?他们教什么课程?", + "question_cspider": "每个老师的名字是什么?他们教什么课程?", + "bleu_from_cspider_question": "BLEU = 56.30, 88.9/70.6/50.0/40.0 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name", + "query_toks": [ + "SELECT", + "T3.Name", + ",", + "T2.Course", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID", + "ORDER", + "BY", + "T3.Name" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + ",", + "t2", + ".", + "course", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id", + "order", + "by", + "t3", + ".", + "name" + ], + "question_spider": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", + "question": "按照老师名字的字母升序排列,显示老师的名字和安排他们教的课程。", + "question_cspider": "按照老师名字的字母升序排列,显示老师的名字和安排他们教的课程。", + "bleu_from_cspider_question": "BLEU = 23.34, 75.0/39.1/22.7/14.3 (BP=0.747, ratio=0.774, hyp_len=24, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name", + "query_toks": [ + "SELECT", + "T3.Name", + ",", + "T2.Course", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID", + "ORDER", + "BY", + "T3.Name" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + ",", + "t2", + ".", + "course", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id", + "order", + "by", + "t3", + ".", + "name" + ], + "question_spider": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?", + "question": "将老师姓名按字母顺序升序排列,老师的姓名和他们教的课程是什么?", + "question_cspider": "将老师姓名按字母顺序升序排列,老师的姓名和他们教的课程是什么?", + "bleu_from_cspider_question": "BLEU = 38.19, 88.9/57.7/36.0/20.8 (BP=0.862, ratio=0.871, hyp_len=27, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"", + "query_toks": [ + "SELECT", + "T3.Name", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID", + "WHERE", + "T2.Course", + "=", + "``", + "Math", + "''" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id", + "where", + "t2", + ".", + "course", + "=", + "value" + ], + "question_spider": "Show the name of the teacher for the math course.", + "question": "展示数学课的老师的名字。", + "question_cspider": "展示数学课的老师的名字。", + "bleu_from_cspider_question": "BLEU = 32.65, 75.0/45.5/30.0/11.1 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + "\"Math\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"", + "query_toks": [ + "SELECT", + "T3.Name", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID", + "WHERE", + "T2.Course", + "=", + "``", + "Math", + "''" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id", + "where", + "t2", + ".", + "course", + "=", + "value" + ], + "question_spider": "What are the names of the people who teach math courses?", + "question": "教数学课的老师的名字是什么?", + "question_cspider": "教数学课的老师的名字是什么?", + "bleu_from_cspider_question": "BLEU = 51.50, 80.0/57.1/46.2/33.3 (BP=1.000, ratio=1.071, hyp_len=15, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + "\"Math\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", + "query_toks": [ + "SELECT", + "T2.Name", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "teacher", + "AS", + "T2", + "ON", + "T1.Teacher_ID", + "=", + "T2.Teacher_ID", + "GROUP", + "BY", + "T2.Name" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "course_arrange", + "as", + "t1", + "join", + "teacher", + "as", + "t2", + "on", + "t1", + ".", + "teacher_id", + "=", + "t2", + ".", + "teacher_id", + "group", + "by", + "t2", + ".", + "name" + ], + "question_spider": "Show names of teachers and the number of courses they teach.", + "question": "显示教师姓名和他们教的课程数量。", + "question_cspider": "显示教师姓名和他们教的课程数量。", + "bleu_from_cspider_question": "BLEU = 33.81, 83.3/47.1/25.0/13.3 (BP=1.000, ratio=1.125, hyp_len=18, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", + "query_toks": [ + "SELECT", + "T2.Name", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "teacher", + "AS", + "T2", + "ON", + "T1.Teacher_ID", + "=", + "T2.Teacher_ID", + "GROUP", + "BY", + "T2.Name" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "course_arrange", + "as", + "t1", + "join", + "teacher", + "as", + "t2", + "on", + "t1", + ".", + "teacher_id", + "=", + "t2", + ".", + "teacher_id", + "group", + "by", + "t2", + ".", + "name" + ], + "question_spider": "What are the names of the teachers and how many courses do they teach?", + "question": "老师的名字是什么?他们教了多少门课?", + "question_cspider": "老师的名字是什么?他们教了多少门课?", + "bleu_from_cspider_question": "BLEU = 51.92, 88.2/62.5/46.7/35.7 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "T2.Name", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "teacher", + "AS", + "T2", + "ON", + "T1.Teacher_ID", + "=", + "T2.Teacher_ID", + "GROUP", + "BY", + "T2.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "course_arrange", + "as", + "t1", + "join", + "teacher", + "as", + "t2", + "on", + "t1", + ".", + "teacher_id", + "=", + "t2", + ".", + "teacher_id", + "group", + "by", + "t2", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Show names of teachers that teach at least two courses.", + "question": "显示至少教两门课的教师的姓名。", + "question_cspider": "显示至少教两门课的教师的姓名。", + "bleu_from_cspider_question": "BLEU = 44.29, 87.5/66.7/42.9/15.4 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "T2.Name", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "teacher", + "AS", + "T2", + "ON", + "T1.Teacher_ID", + "=", + "T2.Teacher_ID", + "GROUP", + "BY", + "T2.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "course_arrange", + "as", + "t1", + "join", + "teacher", + "as", + "t2", + "on", + "t1", + ".", + "teacher_id", + "=", + "t2", + ".", + "teacher_id", + "group", + "by", + "t2", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What are the names of the teachers who teach at least two courses?", + "question": "教至少两门课程的老师的名字是什么?", + "question_cspider": "教至少两门课程的老师的名字是什么?", + "bleu_from_cspider_question": "BLEU = 80.87, 94.4/82.4/75.0/73.3 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "WHERE", + "Teacher_id", + "NOT", + "IN", + "(", + "SELECT", + "Teacher_id", + "FROM", + "course_arrange", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "teacher_id", + "not", + "in", + "(", + "select", + "teacher_id", + "from", + "course_arrange", + ")" + ], + "question_spider": "List the names of teachers who have not been arranged to teach courses.", + "question": "列出没有被安排上课的老师的名字。", + "question_cspider": "列出没有被安排上课的老师的名字。", + "bleu_from_cspider_question": "BLEU = 31.02, 73.3/42.9/23.1/16.7 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + 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": "course_teach", + "query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "WHERE", + "Teacher_id", + "NOT", + "IN", + "(", + "SELECT", + "Teacher_id", + "FROM", + "course_arrange", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "teacher_id", + "not", + "in", + "(", + "select", + "teacher_id", + "from", + "course_arrange", + ")" + ], + "question_spider": "What are the names of the teachers whose courses have not been arranged?", + "question": "没有被安排教课的老师的名字是什么?", + "question_cspider": "没有被安排教课的老师的名字是什么?", + "bleu_from_cspider_question": "BLEU = 60.09, 86.7/71.4/61.5/58.3 (BP=0.875, ratio=0.882, hyp_len=15, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + 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": "museum_visit", + "query": "SELECT count(*) FROM visitor WHERE age < 30", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "visitor", + "WHERE", + "age", + "<", + "30" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "visitor", + "where", + "age", + "<", + "value" + ], + "question_spider": "How many visitors below age 30 are there?", + "question": "30岁以下的游客有多少?", + "question_cspider": "30岁以下的游客有多少?", + "bleu_from_cspider_question": "BLEU = 68.51, 92.3/75.0/63.6/50.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + 30.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC", + "query_toks": [ + "SELECT", + "name", + "FROM", + "visitor", + "WHERE", + "Level_of_membership", + ">", + "4", + "ORDER", + "BY", + "Level_of_membership", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "visitor", + "where", + "level_of_membership", + ">", + "value", + "order", + "by", + "level_of_membership", + "desc" + ], + "question_spider": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.", + "question": "查找会员级别高于4的游客的姓名,并将结果按级别从高到低排序。", + "question_cspider": "查找会员级别高于4的游客的姓名,并将结果按级别从高到低排序。", + "bleu_from_cspider_question": "BLEU = 36.41, 65.7/47.1/30.3/18.8 (BP=1.000, ratio=1.167, hyp_len=35, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + 4.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT avg(age) FROM visitor WHERE Level_of_membership <= 4", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "visitor", + "WHERE", + "Level_of_membership", + "<", + "=", + "4" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "visitor", + "where", + "level_of_membership", + "<", + "=", + "value" + ], + "question_spider": "What is the average age of the visitors whose membership level is not higher than 4?", + "question": "会员级别不高于4的游客的平均年龄是多少?", + "question_cspider": "会员级别不高于4的游客的平均年龄是多少?", + "bleu_from_cspider_question": "BLEU = 53.01, 71.4/60.0/47.4/38.9 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 6, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + 4.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "Level_of_membership", + "FROM", + "visitor", + "WHERE", + "Level_of_membership", + ">", + "4", + "ORDER", + "BY", + "age", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "level_of_membership", + "from", + "visitor", + "where", + "level_of_membership", + ">", + "value", + "order", + "by", + "age", + "desc" + ], + "question_spider": "Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.", + "question": "查找会员级别高于4的游客的姓名和会员级别,并按年龄从高到低进行排序。", + "question_cspider": "查找会员级别高于4的游客的姓名和会员级别,并按年龄从高到低进行排序。", + "bleu_from_cspider_question": "BLEU = 60.56, 79.4/66.7/56.2/45.2 (BP=1.000, ratio=1.000, hyp_len=34, ref_len=34)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + 4.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT museum_id , name FROM museum ORDER BY num_of_staff DESC LIMIT 1", + "query_toks": [ + "SELECT", + "museum_id", + ",", + "name", + "FROM", + "museum", + "ORDER", + "BY", + "num_of_staff", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "museum_id", + ",", + "name", + "from", + "museum", + "order", + "by", + "num_of_staff", + "desc", + "limit", + "value" + ], + "question_spider": "Find the id and name of the museum that has the most staff members?", + "question": "找到员工人数最多的博物馆的ID和名称?", + "question_cspider": "找到员工人数最多的博物馆的ID和名称?", + "bleu_from_cspider_question": "BLEU = 70.08, 89.5/66.7/64.7/62.5 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009", + "query_toks": [ + "SELECT", + "avg", + "(", + "num_of_staff", + ")", + "FROM", + "museum", + "WHERE", + "open_year", + "<", + "2009" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "num_of_staff", + ")", + "from", + "museum", + "where", + "open_year", + "<", + "value" + ], + "question_spider": "Find the average number of staff working for the museums that were open before 2009.", + "question": "查找在2009年之前开放的博物馆的平均工作人员数量。", + "question_cspider": "查找在2009年之前开放的博物馆的平均工作人员数量。", + "bleu_from_cspider_question": "BLEU = 74.06, 95.7/81.8/81.0/80.0 (BP=0.878, ratio=0.885, hyp_len=23, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2009.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT Num_of_Staff , Open_Year FROM museum WHERE name = 'Plaza Museum'", + "query_toks": [ + "SELECT", + "Num_of_Staff", + ",", + "Open_Year", + "FROM", + "museum", + "WHERE", + "name", + "=", + "'Plaza", + "Museum", + "'" + ], + "query_toks_no_value": [ + "select", + "num_of_staff", + ",", + "open_year", + "from", + "museum", + "where", + "name", + "=", + "value" + ], + "question_spider": "What are the opening year and staff number of the museum named Plaza Museum?", + "question": "名称是国家艺术馆开馆年和员工人数是多少?", + "question_cspider": "名称是“国家艺术馆”的博物馆的开馆年和员工人数是多少?", + "bleu_from_cspider_question": "BLEU = 37.84, 66.7/38.5/32.0/25.0 (BP=1.000, ratio=1.000, hyp_len=27, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Plaza Museum\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "museum", + "WHERE", + "num_of_staff", + ">", + "(", + "SELECT", + "min", + "(", + "num_of_staff", + ")", + "FROM", + "museum", + "WHERE", + "open_year", + ">", + "2010", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "museum", + "where", + "num_of_staff", + ">", + "(", + "select", + "min", + "(", + "num_of_staff", + ")", + "from", + "museum", + "where", + "open_year", + ">", + "value", + ")" + ], + "question_spider": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.", + "question": "查找工作人员人数超过2010年后开馆的博物馆的最少工作人员人数的博物馆的名称。", + "question_cspider": "查找工作人员人数超过2010年后开馆的博物馆的最少工作人员人数的博物馆的名称。", + "bleu_from_cspider_question": "BLEU = 48.72, 86.5/58.3/42.9/32.4 (BP=0.947, ratio=0.949, hyp_len=37, ref_len=39)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2010.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT t1.id , t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "t1.id", + ",", + "t1.name", + ",", + "t1.age", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "GROUP", + "BY", + "t1.id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "id", + ",", + "t1", + ".", + "name", + ",", + "t1", + ".", + "age", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "group", + "by", + "t1", + ".", + "id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "find the id, name and age for visitors who visited some museums more than once.", + "question": "找到不止一次参观博物馆的游客的id、姓名和年龄。", + "question_cspider": "找到不止一次参观博物馆的游客的id、姓名和年龄。", + "bleu_from_cspider_question": "BLEU = 47.51, 68.0/54.2/43.5/31.8 (BP=1.000, ratio=1.042, hyp_len=25, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT t2.visitor_id , t1.name , t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t2.visitor_id", + ",", + "t1.name", + ",", + "t1.Level_of_membership", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "GROUP", + "BY", + "t2.visitor_id", + "ORDER", + "BY", + "sum", + "(", + "t2.Total_spent", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "visitor_id", + ",", + "t1", + ".", + "name", + ",", + "t1", + ".", + "level_of_membership", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "group", + "by", + "t2", + ".", + "visitor_id", + "order", + "by", + "sum", + "(", + "t2", + ".", + "total_spent", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?", + "question": "在所有的博物馆门票中,花钱最多的游客的id、姓名和会员级别是多少?", + "question_cspider": "在所有的博物馆门票中,花钱最多的游客的id、姓名和会员级别是多少?", + "bleu_from_cspider_question": "BLEU = 69.08, 90.6/77.4/66.7/55.2 (BP=0.969, ratio=0.970, hyp_len=32, ref_len=33)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 4, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT t2.Museum_ID , t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t2.Museum_ID", + ",", + "t1.name", + "FROM", + "museum", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.Museum_ID", + "=", + "t2.Museum_ID", + "GROUP", + "BY", + "t2.Museum_ID", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "museum_id", + ",", + "t1", + ".", + "name", + "from", + "museum", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "museum_id", + "=", + "t2", + ".", + "museum_id", + "group", + "by", + "t2", + ".", + "museum_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What are the id and name of the museum visited most times?", + "question": "被参观次数最多的博物馆的ID和名称是什么时候?", + "question_cspider": "被参观次数最多的博物馆的ID和名称是什么时候?", + "bleu_from_cspider_question": "BLEU = 82.45, 100.0/94.7/94.4/94.1 (BP=0.861, ratio=0.870, hyp_len=20, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + 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": "museum_visit", + "query": "SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "museum", + "WHERE", + "Museum_ID", + "NOT", + "IN", + "(", + "SELECT", + "museum_id", + "FROM", + "visit", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "museum", + "where", + "museum_id", + "not", + "in", + "(", + "select", + "museum_id", + "from", + "visit", + ")" + ], + "question_spider": "What is the name of the museum that had no visitor yet?", + "question": "至今没有游客的博物馆叫什么名字?", + "question_cspider": "至今没有游客的博物馆叫什么名字?", + "bleu_from_cspider_question": "BLEU = 70.05, 86.7/78.6/69.2/66.7 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + 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": "museum_visit", + "query": "SELECT t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + ",", + "t1.age", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "ORDER", + "BY", + "t2.num_of_ticket", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "age", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "order", + "by", + "t2", + ".", + "num_of_ticket", + "desc", + "limit", + "value" + ], + "question_spider": "Find the name and age of the visitor who bought the most tickets at once.", + "question": "找出一次买下最多票的游客的姓名和年龄。", + "question_cspider": "找出一次买下最多票的游客的姓名和年龄。", + "bleu_from_cspider_question": "BLEU = 54.90, 84.2/61.1/47.1/37.5 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit", + "query_toks": [ + "SELECT", + "avg", + "(", + "num_of_ticket", + ")", + ",", + "max", + "(", + "num_of_ticket", + ")", + "FROM", + "visit" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "num_of_ticket", + ")", + ",", + "max", + "(", + "num_of_ticket", + ")", + "from", + "visit" + ], + "question_spider": "What are the average and maximum number of tickets bought in all visits?", + "question": "所有游览中的平均和最大购票数分别是多少?", + "question_cspider": "在所有的游玩中,购买的平均票数和最大票数是多少?", + "bleu_from_cspider_question": "BLEU = 23.10, 78.3/45.5/19.0/5.0 (BP=0.957, ratio=0.958, hyp_len=23, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1", + "query_toks": [ + "SELECT", + "sum", + "(", + "t2.Total_spent", + ")", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "WHERE", + "t1.Level_of_membership", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "t2", + ".", + "total_spent", + ")", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "where", + "t1", + ".", + "level_of_membership", + "=", + "value" + ], + "question_spider": "What is the total ticket expense of the visitors whose membership level is 1?", + "question": "会员级别为“1”的游客的门票总费用是多少?", + "question_cspider": "会员级别为“1”的游客的门票总费用是多少?", + "bleu_from_cspider_question": "BLEU = 45.27, 89.5/55.6/41.2/31.2 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + 1.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "JOIN", + "museum", + "AS", + "t3", + "ON", + "t3.Museum_ID", + "=", + "t2.Museum_ID", + "WHERE", + "t3.open_year", + "<", + "2009", + "INTERSECT", + "SELECT", + "t1.name", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "JOIN", + "museum", + "AS", + "t3", + "ON", + "t3.Museum_ID", + "=", + "t2.Museum_ID", + "WHERE", + "t3.open_year", + ">", + "2011" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "join", + "museum", + "as", + "t3", + "on", + "t3", + ".", + "museum_id", + "=", + "t2", + ".", + "museum_id", + "where", + "t3", + ".", + "open_year", + "<", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "join", + "museum", + "as", + "t3", + "on", + "t3", + ".", + "museum_id", + "=", + "t2", + ".", + "museum_id", + "where", + "t3", + ".", + "open_year", + ">", + "value" + ], + "question_spider": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", + "question": "既参观过2009年之前开放的博物馆又参观过2011年之后开放的博物馆的游客的名字是什么?", + "question_cspider": "既参观过2009年之前开放的博物馆又参观过2011年之后开放的博物馆的游客的名字是什么?", + "bleu_from_cspider_question": "BLEU = 81.70, 93.2/86.0/78.6/70.7 (BP=1.000, ratio=1.000, hyp_len=44, ref_len=44)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2009.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2011.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "visitor", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "t2.visitor_id", + "FROM", + "museum", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.Museum_ID", + "=", + "t2.Museum_ID", + "WHERE", + "t1.open_year", + ">", + "2010", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "visitor", + "where", + "id", + "not", + "in", + "(", + "select", + "t2", + ".", + "visitor_id", + "from", + "museum", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "museum_id", + "=", + "t2", + ".", + "museum_id", + "where", + "t1", + ".", + "open_year", + ">", + "value", + ")" + ], + "question_spider": "Find the number of visitors who did not visit any museum opened after 2010.", + "question": "找到没有参观过2010年后开放的博物馆的游客的人数。", + "question_cspider": "找到没有参观过2010年开放的博物馆的游客的人数。", + "bleu_from_cspider_question": "BLEU = 67.14, 84.6/68.0/62.5/56.5 (BP=1.000, ratio=1.040, hyp_len=26, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2010.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "museum", + "WHERE", + "open_year", + ">", + "2013", + "OR", + "open_year", + "<", + "2008" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "museum", + "where", + "open_year", + ">", + "value", + "or", + "open_year", + "<", + "value" + ], + "question_spider": "How many museums were opened after 2013 or before 2008?", + "question": "2008年前或2013年后开放的博物馆有多少?", + "question_cspider": "2008年前或2013年后开放的博物馆有多少?", + "bleu_from_cspider_question": "BLEU = 40.68, 80.8/52.0/37.5/17.4 (BP=1.000, ratio=1.130, hyp_len=26, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2013.0, + null + ], + "or", + [ + false, + 4, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2008.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) FROM players", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "players" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "players" + ], + "question_spider": "Find the total number of players.", + "question": "找出球员总数。", + "question_cspider": "找出球员总数。", + "bleu_from_cspider_question": "BLEU = 0.00, 57.1/33.3/20.0/0.0 (BP=1.000, ratio=1.000, hyp_len=7, ref_len=7)", + "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": "wta_1", + "query": "SELECT count(*) FROM players", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "players" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "players" + ], + "question_spider": "How many players are there?", + "question": "有多少球员?", + "question_cspider": "有多少球员?", + "bleu_from_cspider_question": "BLEU = 0.00, 66.7/40.0/25.0/0.0 (BP=1.000, ratio=1.000, hyp_len=6, ref_len=6)", + "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": "wta_1", + "query": "SELECT count(*) FROM matches", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "matches" + ], + "question_spider": "Find the total number of matches.", + "question": "找出比赛的总数。", + "question_cspider": "找出比赛的总数。", + "bleu_from_cspider_question": "BLEU = 36.56, 62.5/42.9/33.3/20.0 (BP=1.000, ratio=1.000, hyp_len=8, ref_len=8)", + "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": "wta_1", + "query": "SELECT count(*) FROM matches", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "matches" + ], + "question_spider": "Count the number of matches.", + "question": "计算比赛的数量。", + "question_cspider": "计算比赛的数量。", + "bleu_from_cspider_question": "BLEU = 39.44, 85.7/50.0/40.0/25.0 (BP=0.867, ratio=0.875, hyp_len=7, ref_len=8)", + "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": "wta_1", + "query": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'", + "query_toks": [ + "SELECT", + "first_name", + ",", + "birth_date", + "FROM", + "players", + "WHERE", + "country_code", + "=", + "'USA", + "'" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "birth_date", + "from", + "players", + "where", + "country_code", + "=", + "value" + ], + "question_spider": "List the first name and birth date of all players from the country with code USA.", + "question": "列出来自国家代码为“中国”的所有球员的名字和生日。", + "question_cspider": "列出来自国家代码为“中国”的所有球员的名字和生日。", + "bleu_from_cspider_question": "BLEU = 46.04, 76.2/60.0/47.4/44.4 (BP=0.827, ratio=0.840, hyp_len=21, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'", + "query_toks": [ + "SELECT", + "first_name", + ",", + "birth_date", + "FROM", + "players", + "WHERE", + "country_code", + "=", + "'USA", + "'" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "birth_date", + "from", + "players", + "where", + "country_code", + "=", + "value" + ], + "question_spider": "What are the first names and birth dates of players from the USA?", + "question": "来自“中国”的选手的名字和出生日期是什么?", + "question_cspider": "来自“中国”的选手的名字和出生日期是什么?", + "bleu_from_cspider_question": "BLEU = 24.27, 78.6/53.8/33.3/18.2 (BP=0.607, ratio=0.667, hyp_len=14, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(loser_age) , avg(winner_age) FROM matches", + "query_toks": [ + "SELECT", + "avg", + "(", + "loser_age", + ")", + ",", + "avg", + "(", + "winner_age", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "loser_age", + ")", + ",", + "avg", + "(", + "winner_age", + ")", + "from", + "matches" + ], + "question_spider": "Find the average age of losers and winners of all matches.", + "question": "找出所有比赛的失败者和胜利者的平均年龄。", + "question_cspider": "找出所有比赛的失败者和胜利者的平均年龄。", + "bleu_from_cspider_question": "BLEU = 48.19, 76.5/62.5/53.3/42.9 (BP=0.838, ratio=0.850, hyp_len=17, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(loser_age) , avg(winner_age) FROM matches", + "query_toks": [ + "SELECT", + "avg", + "(", + "loser_age", + ")", + ",", + "avg", + "(", + "winner_age", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "loser_age", + ")", + ",", + "avg", + "(", + "winner_age", + ")", + "from", + "matches" + ], + "question_spider": "What are the average ages of losers and winners across matches?", + "question": "所有比赛中输家和赢家的平均年龄是多少?", + "question_cspider": "所有比赛中输家和赢家的平均年龄是多少?", + "bleu_from_cspider_question": "BLEU = 88.90, 100.0/100.0/100.0/100.0 (BP=0.889, ratio=0.895, hyp_len=17, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(winner_rank) FROM matches", + "query_toks": [ + "SELECT", + "avg", + "(", + "winner_rank", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "winner_rank", + ")", + "from", + "matches" + ], + "question_spider": "Find the average rank of winners in all matches.", + "question": "找出所有比赛中胜利者的平均排名。", + "question_cspider": "找出所有比赛中胜利者的平均排名。", + "bleu_from_cspider_question": "BLEU = 62.63, 87.5/66.7/57.1/46.2 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(winner_rank) FROM matches", + "query_toks": [ + "SELECT", + "avg", + "(", + "winner_rank", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "winner_rank", + ")", + "from", + "matches" + ], + "question_spider": "What is the average rank for winners in all matches?", + "question": "在所有比赛中胜利者平均排名是多少?", + "question_cspider": "在所有比赛中胜利者平均排名是多少?", + "bleu_from_cspider_question": "BLEU = 67.63, 88.9/70.6/62.5/53.3 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT min(loser_rank) FROM matches", + "query_toks": [ + "SELECT", + "min", + "(", + "loser_rank", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "loser_rank", + ")", + "from", + "matches" + ], + "question_spider": "Find the highest rank of losers in all matches.", + "question": "找出所有比赛中失败者的最高排名。", + "question_cspider": "找出所有比赛中失败者的最高排名。", + "bleu_from_cspider_question": "BLEU = 28.79, 62.5/33.3/21.4/15.4 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT min(loser_rank) FROM matches", + "query_toks": [ + "SELECT", + "min", + "(", + "loser_rank", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "loser_rank", + ")", + "from", + "matches" + ], + "question_spider": "What is the best rank of losers across all matches?", + "question": "在所有比赛中输家的最好的排名是多少?", + "question_cspider": "在所有比赛中输家的最好的排名是多少?", + "bleu_from_cspider_question": "BLEU = 84.28, 100.0/93.8/86.7/78.6 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT country_code) FROM players", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "country_code", + ")", + "FROM", + "players" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "country_code", + ")", + "from", + "players" + ], + "question_spider": "find the number of distinct country codes of all players.", + "question": "找出每个球员所对应的国家代码数量。", + "question_cspider": "找出所有球员所属的不同的国家代码的数量。", + "bleu_from_cspider_question": "BLEU = 35.71, 70.0/47.4/27.8/17.6 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 6, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT country_code) FROM players", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "country_code", + ")", + "FROM", + "players" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "country_code", + ")", + "from", + "players" + ], + "question_spider": "How many distinct countries do players come from?", + "question": "球员来自多少个不同的国家?", + "question_cspider": "球员来自多少个不同的国家?", + "bleu_from_cspider_question": "BLEU = 52.50, 75.0/63.6/50.0/44.4 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 6, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT loser_name) FROM matches", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "loser_name", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "loser_name", + ")", + "from", + "matches" + ], + "question_spider": "Find the number of distinct name of losers.", + "question": "找出不同的失败者姓名的数量。", + "question_cspider": "找出不同的失败者姓名的数量。", + "bleu_from_cspider_question": "BLEU = 52.36, 100.0/75.0/45.5/30.0 (BP=0.926, ratio=0.929, hyp_len=13, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 15, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT loser_name) FROM matches", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "loser_name", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "loser_name", + ")", + "from", + "matches" + ], + "question_spider": "How many different loser names are there?", + "question": "失败者有多少不同的的名字?", + "question_cspider": "失败者有多少不同的的名字?", + "bleu_from_cspider_question": "BLEU = 0.00, 92.3/66.7/36.4/0.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 15, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", + "query_toks": [ + "SELECT", + "tourney_name", + "FROM", + "matches", + "GROUP", + "BY", + "tourney_name", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "tourney_name", + "from", + "matches", + "group", + "by", + "tourney_name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Find the name of tourney that has more than 10 matches.", + "question": "找到有超过10场比赛的联赛的名称。", + "question_cspider": "找到有超过10场比赛的联赛的名称。", + "bleu_from_cspider_question": "BLEU = 27.45, 57.9/33.3/23.5/12.5 (BP=1.000, ratio=1.118, hyp_len=19, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 27, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 27, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 10.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", + "query_toks": [ + "SELECT", + "tourney_name", + "FROM", + "matches", + "GROUP", + "BY", + "tourney_name", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "tourney_name", + "from", + "matches", + "group", + "by", + "tourney_name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "What are the names of tournaments that have more than 10 matches?", + "question": "有超过10场比赛的联赛名称是什么?", + "question_cspider": "有超过10场比赛的联赛名称是什么?", + "bleu_from_cspider_question": "BLEU = 58.30, 88.2/68.8/53.3/35.7 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 27, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 27, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 10.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", + "query_toks": [ + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2013", + "INTERSECT", + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2016" + ], + "query_toks_no_value": [ + "select", + "winner_name", + "from", + "matches", + "where", + "year", + "=", + "value", + "intersect", + "select", + "winner_name", + "from", + "matches", + "where", + "year", + "=", + "value" + ], + "question_spider": "List the names of all winners who played in both 2013 and 2016.", + "question": "列出所有在2013年和2016年比赛中都获胜的选手名字。", + "question_cspider": "列出所有在2013年和2016年中获胜者的名字。", + "bleu_from_cspider_question": "BLEU = 53.40, 73.3/58.6/46.4/40.7 (BP=1.000, ratio=1.250, hyp_len=30, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2013.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2016.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", + "query_toks": [ + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2013", + "INTERSECT", + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2016" + ], + "query_toks_no_value": [ + "select", + "winner_name", + "from", + "matches", + "where", + "year", + "=", + "value", + "intersect", + "select", + "winner_name", + "from", + "matches", + "where", + "year", + "=", + "value" + ], + "question_spider": "What are the names of players who won in both 2013 and 2016?", + "question": "在2013年和2016年中获胜的球员的名字是什么?", + "question_cspider": "在2013年和2016年中获胜的球员的名字是什么?", + "bleu_from_cspider_question": "BLEU = 88.95, 96.0/91.7/87.0/81.8 (BP=1.000, ratio=1.000, hyp_len=25, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2013.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2016.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2013", + "OR", + "YEAR", + "=", + "2016" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "matches", + "where", + "year", + "=", + "value", + "or", + "year", + "=", + "value" + ], + "question_spider": "List the number of all matches who played in years of 2013 or 2016.", + "question": "列出所有在2013年或2016年中的比赛的数量。", + "question_cspider": "列出所有在2013年或2016年中的比赛的数量。", + "bleu_from_cspider_question": "BLEU = 54.44, 83.3/60.9/45.5/38.1 (BP=1.000, ratio=1.000, hyp_len=24, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2013.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2016.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2013", + "OR", + "YEAR", + "=", + "2016" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "matches", + "where", + "year", + "=", + "value", + "or", + "year", + "=", + "value" + ], + "question_spider": "How many matches were played in 2013 or 2016?", + "question": "在2013年或2016年中有多少场比赛?", + "question_cspider": "在2013年或2016年中有多少场比赛?", + "bleu_from_cspider_question": "BLEU = 48.16, 77.8/64.7/50.0/33.3 (BP=0.895, ratio=0.900, hyp_len=18, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2013.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2016.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'", + "query_toks": [ + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "WHERE", + "T2.tourney_name", + "=", + "'WTA", + "Championships", + "'", + "INTERSECT", + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "WHERE", + "T2.tourney_name", + "=", + "'Australian", + "Open", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "where", + "t2", + ".", + "tourney_name", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "where", + "t2", + ".", + "tourney_name", + "=", + "value" + ], + "question_spider": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?", + "question": "在“WTA锦标赛”和“澳大利亚公开赛”中都取胜的球员的国家代码和名字是什么?", + "question_cspider": "在“WTA锦标赛”和“澳大利亚公开赛”中都取胜的球员的国家代码和名字是什么?", + "bleu_from_cspider_question": "BLEU = 62.91, 83.8/69.4/60.0/50.0 (BP=0.973, ratio=0.974, hyp_len=37, ref_len=38)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"WTA Championships\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"Australian Open\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'", + "query_toks": [ + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "WHERE", + "T2.tourney_name", + "=", + "'WTA", + "Championships", + "'", + "INTERSECT", + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "WHERE", + "T2.tourney_name", + "=", + "'Australian", + "Open", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "where", + "t2", + ".", + "tourney_name", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "where", + "t2", + ".", + "tourney_name", + "=", + "value" + ], + "question_spider": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open?", + "question": "获得“WTA锦标赛”和“澳大利亚公开赛”冠军的球员的名字和国家代码是什么?", + "question_cspider": "获得“WTA锦标赛”和“澳大利亚公开赛冠军”的球员的名字和国家代码是什么?", + "bleu_from_cspider_question": "BLEU = 46.07, 81.8/59.4/45.2/33.3 (BP=0.886, ratio=0.892, hyp_len=33, ref_len=37)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"WTA Championships\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"Australian Open\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "country_code", + "FROM", + "players", + "ORDER", + "BY", + "birth_date", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "country_code", + "from", + "players", + "order", + "by", + "birth_date", + "limit", + "value" + ], + "question_spider": "Find the first name and country code of the oldest player.", + "question": "查找最老的球员的名字和国家代码。", + "question_cspider": "查找最老的球员的名字和国家代码。", + "bleu_from_cspider_question": "BLEU = 32.28, 61.9/40.0/26.3/16.7 (BP=1.000, ratio=1.312, hyp_len=21, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "country_code", + "FROM", + "players", + "ORDER", + "BY", + "birth_date", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "country_code", + "from", + "players", + "order", + "by", + "birth_date", + "limit", + "value" + ], + "question_spider": "What is the first name and country code of the oldest player?", + "question": "最老的球员的名字和国家代码是什么?", + "question_cspider": "最老的球员的名字和国家代码是什么?", + "bleu_from_cspider_question": "BLEU = 44.23, 63.6/47.6/40.0/31.6 (BP=1.000, ratio=1.294, hyp_len=22, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , last_name FROM players ORDER BY birth_date", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + "FROM", + "players", + "ORDER", + "BY", + "birth_date" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + "from", + "players", + "order", + "by", + "birth_date" + ], + "question_spider": "List the first and last name of all players in the order of birth date.", + "question": "按出生日期升序列出所有球员的名字和姓氏。", + "question_cspider": "按出生日期顺序列出所有球员的名字和姓氏。", + "bleu_from_cspider_question": "BLEU = 59.62, 81.8/66.7/55.0/42.1 (BP=1.000, ratio=1.100, hyp_len=22, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , last_name FROM players ORDER BY birth_date", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + "FROM", + "players", + "ORDER", + "BY", + "birth_date" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + "from", + "players", + "order", + "by", + "birth_date" + ], + "question_spider": "What are the full names of all players, sorted by birth date?", + "question": "按出生日期升序排列出所有球员的全名", + "question_cspider": "按出生日期排序,所有球员的全名是什么?", + "bleu_from_cspider_question": "BLEU = 60.97, 89.5/66.7/52.9/43.8 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + "FROM", + "players", + "WHERE", + "hand", + "=", + "'L", + "'", + "ORDER", + "BY", + "birth_date" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + "from", + "players", + "where", + "hand", + "=", + "value", + "order", + "by", + "birth_date" + ], + "question_spider": "List the first and last name of all players who are left / L hand in the order of birth date.", + "question": "按照出生日期的顺序列出左手球员的名字和姓氏。", + "question_cspider": "按照出生日期的顺序列出左手球员的名字和姓氏。", + "bleu_from_cspider_question": "BLEU = 61.42, 73.1/64.0/58.3/52.2 (BP=1.000, ratio=1.182, hyp_len=26, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"L\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + "FROM", + "players", + "WHERE", + "hand", + "=", + "'L", + "'", + "ORDER", + "BY", + "birth_date" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + "from", + "players", + "where", + "hand", + "=", + "value", + "order", + "by", + "birth_date" + ], + "question_spider": "What are the full names of all left handed players, in order of birth date?", + "question": "根据出生日期顺序,所有左手球员的全名是什么?", + "question_cspider": "根据出生日期顺序,所有左手球员的全名是什么?", + "bleu_from_cspider_question": "BLEU = 62.74, 79.2/69.6/59.1/47.6 (BP=1.000, ratio=1.091, hyp_len=24, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"L\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "ORDER", + "BY", + "T2.tours", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "order", + "by", + "t2", + ".", + "tours", + "desc", + "limit", + "value" + ], + "question_spider": "Find the first name and country code of the player who did the most number of tours.", + "question": "找出参加巡回比赛次数最多的球员的名字和国家代码。", + "question_cspider": "找出巡回比赛次数最多的球员的名字和国家代码。", + "bleu_from_cspider_question": "BLEU = 29.04, 64.0/37.5/21.7/13.6 (BP=1.000, ratio=1.136, hyp_len=25, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "ORDER", + "BY", + "T2.tours", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "order", + "by", + "t2", + ".", + "tours", + "desc", + "limit", + "value" + ], + "question_spider": "What is the first name and country code of the player with the most tours?", + "question": "完成巡回赛次数最多的球员的名字和国家代码是什么?", + "question_cspider": "巡回次数最多的球员的名字和国家代码是什么?", + "bleu_from_cspider_question": "BLEU = 53.53, 70.8/60.9/50.0/38.1 (BP=1.000, ratio=1.143, hyp_len=24, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "YEAR", + "FROM", + "matches", + "GROUP", + "BY", + "YEAR", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "year", + "from", + "matches", + "group", + "by", + "year", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Find the year that has the most number of matches.", + "question": "找出比赛数量最多的一年。", + "question_cspider": "找出比赛数量最多的一年。", + "bleu_from_cspider_question": "BLEU = 0.00, 58.3/18.2/10.0/0.0 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 38, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "YEAR", + "FROM", + "matches", + "GROUP", + "BY", + "YEAR", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "year", + "from", + "matches", + "group", + "by", + "year", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which year had the most matches?", + "question": "哪一年的比赛最多?", + "question_cspider": "哪一年的比赛最多?", + "bleu_from_cspider_question": "BLEU = 0.00, 80.0/55.6/25.0/0.0 (BP=1.000, ratio=1.111, hyp_len=10, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 38, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + ",", + "winner_rank_points", + "FROM", + "matches", + "GROUP", + "BY", + "winner_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + ",", + "winner_rank_points", + "from", + "matches", + "group", + "by", + "winner_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Find the name and rank points of the winner who won the most times.", + "question": "找出获胜次数最多的获胜者的名字和排名积分。", + "question_cspider": "找出获胜次数最多的获胜者的名字和排名积分。", + "bleu_from_cspider_question": "BLEU = 28.69, 78.9/44.4/23.5/12.5 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 34, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + ",", + "winner_rank_points", + "FROM", + "matches", + "GROUP", + "BY", + "winner_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + ",", + "winner_rank_points", + "from", + "matches", + "group", + "by", + "winner_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the winner who has won the most matches, and how many rank points does this player have?", + "question": "赢得比赛最多的球员的名字是什么?这些球员的排名积分是多少?", + "question_cspider": "赢得比赛最多的赢家的名字是什么?这些球员的排名积分是多少?", + "bleu_from_cspider_question": "BLEU = 0.00, 73.1/32.0/0.0/0.0 (BP=0.891, ratio=0.897, hyp_len=26, ref_len=29)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 34, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "tourney_name", + "=", + "'Australian", + "Open", + "'", + "ORDER", + "BY", + "winner_rank_points", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + "from", + "matches", + "where", + "tourney_name", + "=", + "value", + "order", + "by", + "winner_rank_points", + "desc", + "limit", + "value" + ], + "question_spider": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.", + "question": "找出那些排名积分最高的并且参加过“澳大利亚公开赛”的获胜者的名字。", + "question_cspider": "找出那些排名积分最高的并且参加过“澳大利亚公开赛”的获胜者的名字。", + "bleu_from_cspider_question": "BLEU = 35.13, 88.0/58.3/39.1/27.3 (BP=0.726, ratio=0.758, hyp_len=25, ref_len=33)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"Australian Open\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "tourney_name", + "=", + "'Australian", + "Open", + "'", + "ORDER", + "BY", + "winner_rank_points", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + "from", + "matches", + "where", + "tourney_name", + "=", + "value", + "order", + "by", + "winner_rank_points", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?", + "question": "参加“澳大利亚公开赛”的排名积分最高的获胜者叫什么名字?", + "question_cspider": "参加“澳大利亚公开赛”的排名积分最高的获胜者叫什么名字?", + "bleu_from_cspider_question": "BLEU = 60.12, 88.5/72.0/58.3/47.8 (BP=0.926, ratio=0.929, hyp_len=26, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"Australian Open\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + ",", + "loser_name", + "FROM", + "matches", + "ORDER", + "BY", + "minutes", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + ",", + "loser_name", + "from", + "matches", + "order", + "by", + "minutes", + "desc", + "limit", + "value" + ], + "question_spider": "find the names of loser and winner who played in the match with greatest number of minutes.", + "question": "找出比赛耗时最长的输家和赢家的名字。", + "question_cspider": "找出比赛时间最长的输家和赢家的名字。", + "bleu_from_cspider_question": "BLEU = 39.08, 59.1/42.9/35.0/26.3 (BP=1.000, ratio=1.222, hyp_len=22, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + ",", + "loser_name", + "FROM", + "matches", + "ORDER", + "BY", + "minutes", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + ",", + "loser_name", + "from", + "matches", + "order", + "by", + "minutes", + "desc", + "limit", + "value" + ], + "question_spider": "What are the names of the winner and loser who played in the longest match?", + "question": "比赛时间最长的胜利者和失败者的名字是什么?", + "question_cspider": "比赛时间最长的胜利者和失败者的名字是什么?", + "bleu_from_cspider_question": "BLEU = 74.74, 87.0/77.3/71.4/65.0 (BP=1.000, ratio=1.095, hyp_len=23, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "query_toks": [ + "SELECT", + "avg", + "(", + "ranking", + ")", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "GROUP", + "BY", + "T1.first_name" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "ranking", + ")", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "group", + "by", + "t1", + ".", + "first_name" + ], + "question_spider": "Find the average ranking for each player and their first name.", + "question": "找出每个球员的平均排名和他们的名字。", + "question_cspider": "找出每个球员的平均排名和他们的名字。", + "bleu_from_cspider_question": "BLEU = 30.41, 68.8/46.7/28.6/15.4 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "query_toks": [ + "SELECT", + "avg", + "(", + "ranking", + ")", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "GROUP", + "BY", + "T1.first_name" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "ranking", + ")", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "group", + "by", + "t1", + ".", + "first_name" + ], + "question_spider": "What are the first names of all players, and their average rankings?", + "question": "所有球员的名字以及他们的平均排名是什么?", + "question_cspider": "所有球员的名字以及他们的平均排名是什么?", + "bleu_from_cspider_question": "BLEU = 73.36, 95.2/80.0/68.4/55.6 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "query_toks": [ + "SELECT", + "sum", + "(", + "ranking_points", + ")", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "GROUP", + "BY", + "T1.first_name" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "ranking_points", + ")", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "group", + "by", + "t1", + ".", + "first_name" + ], + "question_spider": "Find the total ranking points for each player and their first name.", + "question": "找出每个球员的总排名得分和他们的名字。", + "question_cspider": "找出每个球员的总排名得分和他们的名字。", + "bleu_from_cspider_question": "BLEU = 21.00, 62.5/40.0/21.4/7.7 (BP=0.829, ratio=0.842, hyp_len=16, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "query_toks": [ + "SELECT", + "sum", + "(", + "ranking_points", + ")", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "GROUP", + "BY", + "T1.first_name" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "ranking_points", + ")", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "group", + "by", + "t1", + ".", + "first_name" + ], + "question_spider": "What are the first names of all players, and their total ranking points?", + "question": "所有球员的名字,以及他们的总排名积分是什么?", + "question_cspider": "所有球员的名字,以及他们的总排名积分是什么?", + "bleu_from_cspider_question": "BLEU = 41.68, 85.0/57.9/38.9/23.5 (BP=0.905, ratio=0.909, hyp_len=20, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , country_code FROM players GROUP BY country_code", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "country_code", + "from", + "players", + "group", + "by", + "country_code" + ], + "question_spider": "find the number of players for each country.", + "question": "找出每个国家的球员数量。", + "question_cspider": "找出每个国家的球员数量。", + "bleu_from_cspider_question": "BLEU = 19.56, 53.3/21.4/15.4/8.3 (BP=1.000, ratio=1.250, hyp_len=15, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + 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": "wta_1", + "query": "SELECT count(*) , country_code FROM players GROUP BY country_code", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "country_code", + "from", + "players", + "group", + "by", + "country_code" + ], + "question_spider": "How many players are from each country?", + "question": "每个国家有多少球员?", + "question_cspider": "每个国家有多少球员?", + "bleu_from_cspider_question": "BLEU = 52.54, 80.0/66.7/50.0/28.6 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + 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": "wta_1", + "query": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "country_code", + "from", + "players", + "group", + "by", + "country_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "find the code of the country where has the greatest number of players.", + "question": "找到拥有球员数量最多的国家的代码。", + "question_cspider": "找到拥有球员数量最多的国家的代码。", + "bleu_from_cspider_question": "BLEU = 47.63, 66.7/52.9/43.8/33.3 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "country_code", + "from", + "players", + "group", + "by", + "country_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the code of the country with the most players?", + "question": "拥有最多球员的国家的代码是什么?", + "question_cspider": "拥有最多球员的国家的代码是什么?", + "bleu_from_cspider_question": "BLEU = 38.99, 64.7/50.0/33.3/21.4 (BP=1.000, ratio=1.062, hyp_len=17, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", + "query_toks": [ + "SELECT", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "50" + ], + "query_toks_no_value": [ + "select", + "country_code", + "from", + "players", + "group", + "by", + "country_code", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Find the codes of countries that have more than 50 players.", + "question": "找出拥有超过50名球员的国家的代码。", + "question_cspider": "找出拥有超过50名球员的国家的代码。", + "bleu_from_cspider_question": "BLEU = 19.46, 54.5/33.3/15.0/5.3 (BP=1.000, ratio=1.222, hyp_len=22, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 50.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", + "query_toks": [ + "SELECT", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "50" + ], + "query_toks_no_value": [ + "select", + "country_code", + "from", + "players", + "group", + "by", + "country_code", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "What are the codes of countries with more than 50 players?", + "question": "拥有超过50名球员的国家的代码是什么?", + "question_cspider": "拥有超过50名球员的国家的代码是什么?", + "bleu_from_cspider_question": "BLEU = 45.51, 66.7/55.0/42.1/27.8 (BP=1.000, ratio=1.105, hyp_len=21, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 50.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date", + "query_toks": [ + "SELECT", + "sum", + "(", + "tours", + ")", + ",", + "ranking_date", + "FROM", + "rankings", + "GROUP", + "BY", + "ranking_date" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "tours", + ")", + ",", + "ranking_date", + "from", + "rankings", + "group", + "by", + "ranking_date" + ], + "question_spider": "Find the total number of tours for each ranking date.", + "question": "查找每个排名日期的巡回比赛的总数。", + "question_cspider": "查找每个排名日期的巡回比赛的总数。", + "bleu_from_cspider_question": "BLEU = 56.48, 85.7/76.9/66.7/54.5 (BP=0.807, ratio=0.824, hyp_len=14, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 39, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 39, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date", + "query_toks": [ + "SELECT", + "sum", + "(", + "tours", + ")", + ",", + "ranking_date", + "FROM", + "rankings", + "GROUP", + "BY", + "ranking_date" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "tours", + ")", + ",", + "ranking_date", + "from", + "rankings", + "group", + "by", + "ranking_date" + ], + "question_spider": "How many total tours were there for each ranking date?", + "question": "每个排名日期总共有多少次巡回比赛?", + "question_cspider": "每个排名日期总共有多少次巡回比赛?", + "bleu_from_cspider_question": "BLEU = 62.50, 85.7/76.9/75.0/72.7 (BP=0.807, ratio=0.824, hyp_len=14, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 39, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 39, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "YEAR", + "FROM", + "matches", + "GROUP", + "BY", + "YEAR" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "year", + "from", + "matches", + "group", + "by", + "year" + ], + "question_spider": "Find the number of matches happened in each year.", + "question": "找出每年进行的比赛次数。", + "question_cspider": "找出每年进行的比赛次数。", + "bleu_from_cspider_question": "BLEU = 48.33, 75.0/54.5/40.0/33.3 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 38, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "YEAR", + "FROM", + "matches", + "GROUP", + "BY", + "YEAR" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "year", + "from", + "matches", + "group", + "by", + "year" + ], + "question_spider": "How many matches were played in each year?", + "question": "每年有多少场比赛?", + "question_cspider": "每年有多少场比赛?", + "bleu_from_cspider_question": "BLEU = 35.49, 66.7/50.0/28.6/16.7 (BP=1.000, ratio=1.000, hyp_len=9, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 38, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3", + "query_toks": [ + "SELECT", + "DISTINCT", + "winner_name", + ",", + "winner_rank", + "FROM", + "matches", + "ORDER", + "BY", + "winner_age", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "distinct", + "winner_name", + ",", + "winner_rank", + "from", + "matches", + "order", + "by", + "winner_age", + "limit", + "value" + ], + "question_spider": "Find the name and rank of the 3 youngest winners across all matches.", + "question": "找出所有比赛中3个最年轻的获胜者的名字和排名。", + "question_cspider": "找出所有比赛中3个最年轻的获胜者的名字和排名。", + "bleu_from_cspider_question": "BLEU = 75.65, 91.3/77.3/71.4/65.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3", + "query_toks": [ + "SELECT", + "DISTINCT", + "winner_name", + ",", + "winner_rank", + "FROM", + "matches", + "ORDER", + "BY", + "winner_age", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "distinct", + "winner_name", + ",", + "winner_rank", + "from", + "matches", + "order", + "by", + "winner_age", + "limit", + "value" + ], + "question_spider": "What are the names and ranks of the three youngest winners across all matches?", + "question": "在所有比赛中,三个最年轻的获胜者的名字和等级是什么?", + "question_cspider": "在所有比赛中,三个最年轻的获胜者的名字和等级是什么?", + "bleu_from_cspider_question": "BLEU = 85.31, 92.3/88.0/83.3/78.3 (BP=1.000, ratio=1.000, hyp_len=26, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "winner_name", + ")", + "FROM", + "matches", + "WHERE", + "tourney_name", + "=", + "'WTA", + "Championships", + "'", + "AND", + "winner_hand", + "=", + "'L", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "winner_name", + ")", + "from", + "matches", + "where", + "tourney_name", + "=", + "value", + "and", + "winner_hand", + "=", + "value" + ], + "question_spider": "How many different winners both participated in the WTA Championships and were left handed?", + "question": "有多少不同的获胜者都参加了“WTA锦标赛”,并且都是左撇子?", + "question_cspider": "有多少不同的获胜者都参加了“WTA锦标赛”,并且都是左撇子?", + "bleu_from_cspider_question": "BLEU = 32.89, 76.0/54.2/34.8/18.2 (BP=0.819, ratio=0.833, hyp_len=25, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 34, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"WTA Championships\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 30, + false + ], + null + ], + "\"L\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "winner_name", + ")", + "FROM", + "matches", + "WHERE", + "tourney_name", + "=", + "'WTA", + "Championships", + "'", + "AND", + "winner_hand", + "=", + "'L", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "winner_name", + ")", + "from", + "matches", + "where", + "tourney_name", + "=", + "value", + "and", + "winner_hand", + "=", + "value" + ], + "question_spider": "Find the number of left handed winners who participated in the WTA Championships.", + "question": "找出参加“WTA锦标赛”的左撇子获胜者的数目。", + "question_cspider": "找出参加“WTA锦标赛”的左撇子获胜者的数目。", + "bleu_from_cspider_question": "BLEU = 59.49, 90.5/70.0/57.9/50.0 (BP=0.909, ratio=0.913, hyp_len=21, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 34, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"WTA Championships\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 30, + false + ], + null + ], + "\"L\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.country_code", + ",", + "T1.birth_date", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "ORDER", + "BY", + "T2.winner_rank_points", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "birth_date", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "order", + "by", + "t2", + ".", + "winner_rank_points", + "desc", + "limit", + "value" + ], + "question_spider": "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.", + "question": "找出在所有比赛中排名积分最高的获胜者的姓名、国家代码和生日。", + "question_cspider": "找出在所有比赛中排名积分最高的获胜者的姓名、国家代码和生日。", + "bleu_from_cspider_question": "BLEU = 53.84, 83.3/58.6/46.4/37.0 (BP=1.000, ratio=1.000, hyp_len=30, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.country_code", + ",", + "T1.birth_date", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "ORDER", + "BY", + "T2.winner_rank_points", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "birth_date", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "order", + "by", + "t2", + ".", + "winner_rank_points", + "desc", + "limit", + "value" + ], + "question_spider": "What is the first name, country code, and birth date of the player with the most winner rank points across all matches?", + "question": "在所有比赛中得分最高的选手的名字、国家代码和生日是什么?", + "question_cspider": "在所有比赛中得分最高的选手的名字、国家代码和生日是什么?", + "bleu_from_cspider_question": "BLEU = 59.51, 83.3/69.0/53.6/40.7 (BP=1.000, ratio=1.071, hyp_len=30, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , hand FROM players GROUP BY hand", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "hand", + "FROM", + "players", + "GROUP", + "BY", + "hand" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "hand", + "from", + "players", + "group", + "by", + "hand" + ], + "question_spider": "Find the number of players for each hand type.", + "question": "找出每个手型的球员数。", + "question_cspider": "找出每个手型的球员数。", + "bleu_from_cspider_question": "BLEU = 0.00, 50.0/7.7/0.0/0.0 (BP=1.000, ratio=1.273, hyp_len=14, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , hand FROM players GROUP BY hand", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "hand", + "FROM", + "players", + "GROUP", + "BY", + "hand" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "hand", + "from", + "players", + "group", + "by", + "hand" + ], + "question_spider": "How many players are there for each hand type?", + "question": "每一种手型有多少球员?", + "question_cspider": "每一种手型有多少球员?", + "bleu_from_cspider_question": "BLEU = 38.16, 63.6/40.0/33.3/25.0 (BP=1.000, ratio=1.000, hyp_len=11, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "ship", + "WHERE", + "disposition_of_ship", + "=", + "'Captured", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "ship", + "where", + "disposition_of_ship", + "=", + "value" + ], + "question_spider": "How many ships ended up being 'Captured'?", + "question": "有多少艘船最终被“俘虏”?", + "question_cspider": "有多少艘船最终被“俘虏”?", + "bleu_from_cspider_question": "BLEU = 48.59, 91.7/63.6/40.0/33.3 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"Captured\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name , tonnage FROM ship ORDER BY name DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "tonnage", + "FROM", + "ship", + "ORDER", + "BY", + "name", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "tonnage", + "from", + "ship", + "order", + "by", + "name", + "desc" + ], + "question_spider": "List the name and tonnage ordered by in descending alphaetical order for the names.", + "question": "按名称的字母顺序降序列出名称和吨位。", + "question_cspider": "按名称的字母顺序降序列出名称和吨位。", + "bleu_from_cspider_question": "BLEU = 60.05, 84.2/66.7/52.9/43.8 (BP=1.000, ratio=1.056, hyp_len=19, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name , date FROM battle", + "query_toks": [ + "SELECT", + "name", + ",", + "date", + "FROM", + "battle" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "date", + "from", + "battle" + ], + "question_spider": "List the name, date and result of each battle.", + "question": "列出每一场战斗的名称、日期和结果。", + "question_cspider": "列出每一场战斗的名称、日期和结果。", + "bleu_from_cspider_question": "BLEU = 64.52, 93.8/80.0/64.3/46.2 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT max(killed) , min(killed) FROM death", + "query_toks": [ + "SELECT", + "max", + "(", + "killed", + ")", + ",", + "min", + "(", + "killed", + ")", + "FROM", + "death" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "killed", + ")", + ",", + "min", + "(", + "killed", + ")", + "from", + "death" + ], + "question_spider": "What is maximum and minimum death toll caused each time?", + "question": "每一次造成的最多和最少死亡人数是多少?", + "question_cspider": "每一次造成的最大和最小死亡人数是多少?", + "bleu_from_cspider_question": "BLEU = 90.11, 100.0/94.1/93.8/93.3 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT avg(injured) FROM death", + "query_toks": [ + "SELECT", + "avg", + "(", + "injured", + ")", + "FROM", + "death" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "injured", + ")", + "from", + "death" + ], + "question_spider": "What is the average number of injuries caused each time?", + "question": "平均每场受伤人数是多少?", + "question_cspider": "平均每次受伤次数是多少?", + "bleu_from_cspider_question": "BLEU = 26.91, 69.2/41.7/18.2/10.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT T1.killed , T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'", + "query_toks": [ + "SELECT", + "T1.killed", + ",", + "T1.injured", + "FROM", + "death", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "t2", + "ON", + "T1.caused_by_ship_id", + "=", + "T2.id", + "WHERE", + "T2.tonnage", + "=", + "'t", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "killed", + ",", + "t1", + ".", + "injured", + "from", + "death", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "caused_by_ship_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "tonnage", + "=", + "value" + ], + "question_spider": "What are the death and injury situations caused by the ship with tonnage 't'?", + "question": "吨位为“T”的船舶造成的伤亡事故是什么?", + "question_cspider": "吨位为“T”的船舶造成的伤亡事故是什么?", + "bleu_from_cspider_question": "BLEU = 53.93, 68.2/52.4/50.0/47.4 (BP=1.000, ratio=1.100, hyp_len=22, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"t\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'", + "query_toks": [ + "SELECT", + "name", + ",", + "RESULT", + "FROM", + "battle", + "WHERE", + "bulgarian_commander", + "!", + "=", + "'Boril", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "result", + "from", + "battle", + "where", + "bulgarian_commander", + "!", + "=", + "value" + ], + "question_spider": "What are the name and results of the battles when the bulgarian commander is not 'Boril'", + "question": "当保加利亚的指挥官不是“博瑞尔”时,战争的名称和结果是什么?", + "question_cspider": "当保加利亚的指挥官不是“博瑞尔”时,战争的名称和结果是什么?", + "bleu_from_cspider_question": "BLEU = 52.22, 78.6/63.0/50.0/40.0 (BP=0.931, ratio=0.933, hyp_len=28, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Boril\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT DISTINCT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.id", + ",", + "T1.name", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "WHERE", + "T2.ship_type", + "=", + "'Brig", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "id", + ",", + "t1", + ".", + "name", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "where", + "t2", + ".", + "ship_type", + "=", + "value" + ], + "question_spider": "What are the different ids and names of the battles that lost any 'Brig' type shipes?", + "question": "损失过帆船的不同战斗的id和名称是什么?", + "question_cspider": "损失过“帆船”船只的战斗的不同的id和名称是什么?", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Brig\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10", + "query_toks": [ + "SELECT", + "T1.id", + ",", + "T1.name", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "JOIN", + "death", + "AS", + "T3", + "ON", + "T2.id", + "=", + "T3.caused_by_ship_id", + "GROUP", + "BY", + "T1.id", + "HAVING", + "sum", + "(", + "T3.killed", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "id", + ",", + "t1", + ".", + "name", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "join", + "death", + "as", + "t3", + "on", + "t2", + ".", + "id", + "=", + "t3", + ".", + "caused_by_ship_id", + "group", + "by", + "t1", + ".", + "id", + "having", + "sum", + "(", + "t3", + ".", + "killed", + ")", + ">", + "value" + ], + "question_spider": "What are the ids and names of the battles that led to more than 10 people killed in total.", + "question": "导致总共超过10人死亡的战斗的ID和名称是什么?", + "question_cspider": "导致总共超过10人死亡的战斗的ID和名称是什么?", + "bleu_from_cspider_question": "BLEU = 65.22, 87.0/72.7/61.9/55.0 (BP=0.957, ratio=0.958, hyp_len=23, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 4, + 17, + false + ], + null + ], + 10.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT T2.id , T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.id", + ",", + "T2.name", + "FROM", + "death", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "t2", + "ON", + "T1.caused_by_ship_id", + "=", + "T2.id", + "GROUP", + "BY", + "T2.id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "id", + ",", + "t2", + ".", + "name", + "from", + "death", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "caused_by_ship_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t2", + ".", + "id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the ship id and name that caused most total injuries?", + "question": "受伤人数最多的船的ID和名称是什么?", + "question_cspider": "造成总伤害最多的船的ID和名称是什么?", + "bleu_from_cspider_question": "BLEU = 42.53, 83.3/58.8/31.2/26.7 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'", + "query_toks": [ + "SELECT", + "name", + "FROM", + "battle", + "WHERE", + "bulgarian_commander", + "=", + "'Kaloyan", + "'", + "AND", + "latin_commander", + "=", + "'Baldwin", + "I", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "battle", + "where", + "bulgarian_commander", + "=", + "value", + "and", + "latin_commander", + "=", + "value" + ], + "question_spider": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?", + "question": "在保加利亚指挥官“卡洛扬”和拉丁指挥官“鲍德温一世”之间,有哪些不同的战斗名称?", + "question_cspider": "在保加利亚指挥官“卡洛扬”和拉丁指挥官“鲍德温一世”之间,有哪些不同的战斗名称?", + "bleu_from_cspider_question": "BLEU = 42.32, 60.9/48.9/38.6/27.9 (BP=1.000, ratio=1.150, hyp_len=46, ref_len=40)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Kaloyan\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Baldwin I\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT count(DISTINCT RESULT) FROM battle", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "RESULT", + ")", + "FROM", + "battle" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "result", + ")", + "from", + "battle" + ], + "question_spider": "How many different results are there for the battles?", + "question": "战斗共有多少不同的结果?", + "question_cspider": "战斗共有多少不同的结果?", + "bleu_from_cspider_question": "BLEU = 77.72, 100.0/90.0/77.8/75.0 (BP=0.913, ratio=0.917, hyp_len=11, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 6, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage = '225' );", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "battle", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "lost_in_battle", + "FROM", + "ship", + "WHERE", + "tonnage", + "=", + "'225", + "'", + ")", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "battle", + "where", + "id", + "not", + "in", + "(", + "select", + "lost_in_battle", + "from", + "ship", + "where", + "tonnage", + "=", + "value", + ")" + ], + "question_spider": "How many battles did not lose any ship with tonnage '225'?", + "question": "有多少次战斗没有失去吨位为“225”的船只?", + "question_cspider": "有多少次战斗没有失去吨位为“225”的船只?", + "bleu_from_cspider_question": "BLEU = 30.17, 71.4/40.0/21.1/16.7 (BP=0.953, ratio=0.955, hyp_len=21, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"225\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'", + "query_toks": [ + "SELECT", + "T1.name", + ",", + "T1.date", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "WHERE", + "T2.name", + "=", + "'Lettice", + "'", + "INTERSECT", + "SELECT", + "T1.name", + ",", + "T1.date", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "WHERE", + "T2.name", + "=", + "'HMS", + "Atalanta", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "date", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "where", + "t2", + ".", + "name", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "date", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question_spider": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'", + "question": "列出失去远征号和长征号战舰的战斗的名称和日期。", + "question_cspider": "列出失去“远征”号和“长征号”号战舰的战斗的名称和日期。", + "bleu_from_cspider_question": "BLEU = 22.73, 37.5/23.4/19.6/15.6 (BP=1.000, ratio=1.714, hyp_len=48, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Lettice\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"HMS Atalanta\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name , RESULT , bulgarian_commander FROM battle EXCEPT SELECT T1.name , T1.result , T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'", + "query_toks": [ + "SELECT", + "name", + ",", + "RESULT", + ",", + "bulgarian_commander", + "FROM", + "battle", + "EXCEPT", + "SELECT", + "T1.name", + ",", + "T1.result", + ",", + "T1.bulgarian_commander", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "WHERE", + "T2.location", + "=", + "'English", + "Channel", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "result", + ",", + "bulgarian_commander", + "from", + "battle", + "except", + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "result", + ",", + "t1", + ".", + "bulgarian_commander", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "where", + "t2", + ".", + "location", + "=", + "value" + ], + "question_spider": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.", + "question": "显示在“英吉利海峡”中没有船只损失的战斗的名称、结果和保加利亚指挥官。", + "question_cspider": "显示在“英吉利海峡”中没有船只损失的战斗的名称、结果和保加利亚指挥官。", + "bleu_from_cspider_question": "BLEU = 58.03, 81.6/64.9/50.0/42.9 (BP=1.000, ratio=1.086, hyp_len=38, ref_len=35)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"English Channel\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "battle_death", + "query": "SELECT note FROM death WHERE note LIKE '%East%'", + "query_toks": [ + "SELECT", + "note", + "FROM", + "death", + "WHERE", + "note", + "LIKE", + "'", + "%", + "East", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "note", + "from", + "death", + "where", + "note", + "like", + "value" + ], + "question_spider": "What are the notes of the death events which has substring 'East'?", + "question": "包含文本为“东”的死亡事件的注解是什么?", + "question_cspider": "包含文本为“东”的死亡事件的注解是什么?", + "bleu_from_cspider_question": "BLEU = 35.60, 54.2/39.1/31.8/23.8 (BP=1.000, ratio=1.200, hyp_len=24, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"%East%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT line_1 , line_2 FROM addresses", + "query_toks": [ + "SELECT", + "line_1", + ",", + "line_2", + "FROM", + "addresses" + ], + "query_toks_no_value": [ + "select", + "line_1", + ",", + "line_2", + "from", + "addresses" + ], + "question_spider": "what are all the addresses including line 1 and line 2?", + "question": "包括第一行和第二行的所有地址是什么?", + "question_cspider": "包括第一行和第二行的所有地址是什么?", + "bleu_from_cspider_question": "BLEU = 51.81, 77.8/52.9/43.8/40.0 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT line_1 , line_2 FROM addresses", + "query_toks": [ + "SELECT", + "line_1", + ",", + "line_2", + "FROM", + "addresses" + ], + "query_toks_no_value": [ + "select", + "line_1", + ",", + "line_2", + "from", + "addresses" + ], + "question_spider": "What is the first and second line for all addresses?", + "question": "所有地址的第一和第二行是什么?", + "question_cspider": "所有地址的第一和第二行是什么?", + "bleu_from_cspider_question": "BLEU = 81.54, 93.8/86.7/78.6/69.2 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Courses", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Courses" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "courses" + ], + "question_spider": "How many courses in total are listed?", + "question": "总共列出了多少门课程?", + "question_cspider": "总共列出了多少门课程?", + "bleu_from_cspider_question": "BLEU = 38.31, 90.0/66.7/37.5/14.3 (BP=0.905, ratio=0.909, hyp_len=10, ref_len=11)", + "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": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Courses", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Courses" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "courses" + ], + "question_spider": "How many courses are there?", + "question": "有多少门课?", + "question_cspider": "有多少门课?", + "bleu_from_cspider_question": "BLEU = 0.00, 66.7/20.0/0.0/0.0 (BP=1.000, ratio=1.000, hyp_len=6, ref_len=6)", + "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": "student_transcripts_tracking", + "query": "SELECT course_description FROM Courses WHERE course_name = 'math'", + "query_toks": [ + "SELECT", + "course_description", + "FROM", + "Courses", + "WHERE", + "course_name", + "=", + "'math", + "'" + ], + "query_toks_no_value": [ + "select", + "course_description", + "from", + "courses", + "where", + "course_name", + "=", + "value" + ], + "question_spider": "How is the math course described?", + "question": "“数学”课程是怎样描述的?", + "question_cspider": "“数学”课程是怎样描述的?", + "bleu_from_cspider_question": "BLEU = 0.00, 77.8/37.5/0.0/0.0 (BP=0.641, ratio=0.692, hyp_len=9, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"math\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT course_description FROM Courses WHERE course_name = 'math'", + "query_toks": [ + "SELECT", + "course_description", + "FROM", + "Courses", + "WHERE", + "course_name", + "=", + "'math", + "'" + ], + "query_toks_no_value": [ + "select", + "course_description", + "from", + "courses", + "where", + "course_name", + "=", + "value" + ], + "question_spider": "What are the descriptions for all the math courses?", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"math\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", + "query_toks": [ + "SELECT", + "zip_postcode", + "FROM", + "Addresses", + "WHERE", + "city", + "=", + "'Port", + "Chelsea", + "'" + ], + "query_toks_no_value": [ + "select", + "zip_postcode", + "from", + "addresses", + "where", + "city", + "=", + "value" + ], + "question_spider": "What is the zip code of the address in the city Port Chelsea?", + "question": "“大连”城市的邮政编码是什么?", + "question_cspider": "“大连”城市的邮政编码是什么?", + "bleu_from_cspider_question": "BLEU = 26.04, 30.0/27.6/25.0/22.2 (BP=1.000, ratio=2.000, hyp_len=30, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Port Chelsea\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", + "query_toks": [ + "SELECT", + "zip_postcode", + "FROM", + "Addresses", + "WHERE", + "city", + "=", + "'Port", + "Chelsea", + "'" + ], + "query_toks_no_value": [ + "select", + "zip_postcode", + "from", + "addresses", + "where", + "city", + "=", + "value" + ], + "question_spider": "What is the zip code for Port Chelsea?", + "question": "“大连”的邮政编码是什么?", + "question_cspider": "“大连”的邮政编码是什么?", + "bleu_from_cspider_question": "BLEU = 64.79, 69.2/66.7/63.6/60.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Port Chelsea\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.department_name , T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.department_name", + ",", + "T1.department_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Departments", + "AS", + "T2", + "ON", + "T1.department_id", + "=", + "T2.department_id", + "GROUP", + "BY", + "T1.department_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "department_name", + ",", + "t1", + ".", + "department_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "departments", + "as", + "t2", + "on", + "t1", + ".", + "department_id", + "=", + "t2", + ".", + "department_id", + "group", + "by", + "t1", + ".", + "department_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which department offers the most number of degrees? List department name and id.", + "question": "哪个学院授予的学位最多?列出学院名称和ID。", + "question_cspider": "哪个学院授予的学位最多?列出学院名称和ID。", + "bleu_from_cspider_question": "BLEU = 40.87, 63.6/47.6/35.0/26.3 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "select t2.department_name , t1.department_id from degree_programs as t1 join departments as t2 on t1.department_id = t2.department_id group by t1.department_id order by count(*) desc limit 1", + "query_toks": [ + "select", + "t2.department_name", + ",", + "t1.department_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "departments", + "as", + "t2", + "on", + "t1.department_id", + "=", + "t2.department_id", + "group", + "by", + "t1.department_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "department_name", + ",", + "t1", + ".", + "department_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "departments", + "as", + "t2", + "on", + "t1", + ".", + "department_id", + "=", + "t2", + ".", + "department_id", + "group", + "by", + "t1", + ".", + "department_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name and id of the department with the most number of degrees ?", + "question": "对于每个学院ID,学位数目最多的学院的名称是什么?", + "question_cspider": "对于每个学院ID,学位数目最多的学院的名称是什么?", + "bleu_from_cspider_question": "BLEU = 17.89, 70.6/50.0/26.7/7.1 (BP=0.625, ratio=0.680, hyp_len=17, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT department_id) FROM Degree_Programs", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "department_id", + ")", + "FROM", + "Degree_Programs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "department_id", + ")", + "from", + "degree_programs" + ], + "question_spider": "How many departments offer any degree?", + "question": "有多少学院可以授予学位?", + "question_cspider": "有多少学院可以授予学位?", + "bleu_from_cspider_question": "BLEU = 0.00, 60.0/44.4/25.0/0.0 (BP=0.819, ratio=0.833, hyp_len=10, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 19, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT department_id) FROM Degree_Programs", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "department_id", + ")", + "FROM", + "Degree_Programs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "department_id", + ")", + "from", + "degree_programs" + ], + "question_spider": "How many different departments offer degrees?", + "question": "有多少不同的学院可以授予学位?", + "question_cspider": "有多少不同的学院可以授予学位?", + "bleu_from_cspider_question": "BLEU = 41.53, 69.2/58.3/45.5/30.0 (BP=0.857, ratio=0.867, hyp_len=13, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 19, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "degree_summary_name", + ")", + "FROM", + "Degree_Programs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "degree_summary_name", + ")", + "from", + "degree_programs" + ], + "question_spider": "How many different degree names are offered?", + "question": "有多少个不同的学位名称?", + "question_cspider": "有多少个不同的学位名称?", + "bleu_from_cspider_question": "BLEU = 82.42, 84.6/83.3/81.8/80.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 20, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "degree_summary_name", + ")", + "FROM", + "Degree_Programs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "degree_summary_name", + ")", + "from", + "degree_programs" + ], + "question_spider": "How many different degrees are offered?", + "question": "授予过多少个不同的学位?", + "question_cspider": "授予多少个不同的学位?", + "bleu_from_cspider_question": "BLEU = 78.61, 81.8/80.0/77.8/75.0 (BP=1.000, ratio=1.000, hyp_len=11, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 20, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Departments", + "AS", + "T1", + "JOIN", + "Degree_Programs", + "AS", + "T2", + "ON", + "T1.department_id", + "=", + "T2.department_id", + "WHERE", + "T1.department_name", + "=", + "'engineer", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "departments", + "as", + "t1", + "join", + "degree_programs", + "as", + "t2", + "on", + "t1", + ".", + "department_id", + "=", + "t2", + ".", + "department_id", + "where", + "t1", + ".", + "department_name", + "=", + "value" + ], + "question_spider": "How many degrees does the engineering department offer?", + "question": "“工程”学院提供多少学位?", + "question_cspider": "“工程”学院提供多少学位?", + "bleu_from_cspider_question": "BLEU = 52.66, 81.8/70.0/55.6/50.0 (BP=0.834, ratio=0.846, hyp_len=11, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 19, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"engineer\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Departments", + "AS", + "T1", + "JOIN", + "Degree_Programs", + "AS", + "T2", + "ON", + "T1.department_id", + "=", + "T2.department_id", + "WHERE", + "T1.department_name", + "=", + "'engineer", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "departments", + "as", + "t1", + "join", + "degree_programs", + "as", + "t2", + "on", + "t1", + ".", + "department_id", + "=", + "t2", + ".", + "department_id", + "where", + "t1", + ".", + "department_name", + "=", + "value" + ], + "question_spider": "How many degrees does the engineering department have?", + "question": "“工程”学院有多少学位?", + "question_cspider": "“工程”学院有多少学位?", + "bleu_from_cspider_question": "BLEU = 47.60, 80.0/66.7/50.0/42.9 (BP=0.819, ratio=0.833, hyp_len=10, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 19, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"engineer\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_name , section_description FROM Sections", + "query_toks": [ + "SELECT", + "section_name", + ",", + "section_description", + "FROM", + "Sections" + ], + "query_toks_no_value": [ + "select", + "section_name", + ",", + "section_description", + "from", + "sections" + ], + "question_spider": "What are the names and descriptions of all the sections?", + "question": "所有章节的名称和描述是什么?", + "question_cspider": "所有章节的名称和描述是什么?", + "bleu_from_cspider_question": "BLEU = 72.72, 85.7/76.9/66.7/63.6 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_name , section_description FROM Sections", + "query_toks": [ + "SELECT", + "section_name", + ",", + "section_description", + "FROM", + "Sections" + ], + "query_toks_no_value": [ + "select", + "section_name", + ",", + "section_description", + "from", + "sections" + ], + "question_spider": "What are the names and descriptions for all the sections?", + "question": "所有章节的名称和描述是什么?", + "question_cspider": "所有章节的名称和描述是什么?", + "bleu_from_cspider_question": "BLEU = 72.72, 85.7/76.9/66.7/63.6 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2", + "query_toks": [ + "SELECT", + "T1.course_name", + ",", + "T1.course_id", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Sections", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id", + "GROUP", + "BY", + "T1.course_id", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "course_name", + ",", + "t1", + ".", + "course_id", + "from", + "courses", + "as", + "t1", + "join", + "sections", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "group", + "by", + "t1", + ".", + "course_id", + "having", + "count", + "(", + "*", + ")", + "<", + "=", + "value" + ], + "question_spider": "What are the names and id of courses having at most 2 sections?", + "question": "最多有2个章节的课程的名称和ID是什么?", + "question_cspider": "最多有2个章节的课程的名称和ID是什么?", + "bleu_from_cspider_question": "BLEU = 63.17, 76.2/65.0/57.9/55.6 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 24, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 6, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2", + "query_toks": [ + "SELECT", + "T1.course_name", + ",", + "T1.course_id", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Sections", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id", + "GROUP", + "BY", + "T1.course_id", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "course_name", + ",", + "t1", + ".", + "course_id", + "from", + "courses", + "as", + "t1", + "join", + "sections", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "group", + "by", + "t1", + ".", + "course_id", + "having", + "count", + "(", + "*", + ")", + "<", + "=", + "value" + ], + "question_spider": "What are the names and ids of every course with less than 2 sections?", + "question": "每个少于2个章节的课程的名字和ID是什么?", + "question_cspider": "每个少于2个章节的课程的名字和ID是什么?", + "bleu_from_cspider_question": "BLEU = 44.44, 76.2/50.0/36.8/27.8 (BP=1.000, ratio=1.000, hyp_len=21, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 24, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 6, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_name FROM Sections ORDER BY section_name DESC", + "query_toks": [ + "SELECT", + "section_name", + "FROM", + "Sections", + "ORDER", + "BY", + "section_name", + "DESC" + ], + "query_toks_no_value": [ + "select", + "section_name", + "from", + "sections", + "order", + "by", + "section_name", + "desc" + ], + "question_spider": "List the section_name in reversed lexicographical order.", + "question": "以逆向词汇顺序列出章节名称。", + "question_cspider": "以逆向词典顺序列出章节名称。", + "bleu_from_cspider_question": "BLEU = 16.77, 30.4/18.2/14.3/10.0 (BP=1.000, ratio=1.643, hyp_len=23, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_name FROM Sections ORDER BY section_name DESC", + "query_toks": [ + "SELECT", + "section_name", + "FROM", + "Sections", + "ORDER", + "BY", + "section_name", + "DESC" + ], + "query_toks_no_value": [ + "select", + "section_name", + "from", + "sections", + "order", + "by", + "section_name", + "desc" + ], + "question_spider": "What are the names of the sections in reverse alphabetical order?", + "question": "按逆字母顺序排列的章节的名称是什么?", + "question_cspider": "按逆字母顺序排列的章节的名称是什么?", + "bleu_from_cspider_question": "BLEU = 41.26, 73.3/57.1/46.2/33.3 (BP=0.819, ratio=0.833, hyp_len=15, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.semester_name", + ",", + "T1.semester_id", + "FROM", + "Semesters", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.semester_id", + "=", + "T2.semester_id", + "GROUP", + "BY", + "T1.semester_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "semester_name", + ",", + "t1", + ".", + "semester_id", + "from", + "semesters", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "semester_id", + "=", + "t2", + ".", + "semester_id", + "group", + "by", + "t1", + ".", + "semester_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the semester which most student registered in? Show both the name and the id.", + "question": "最多学生注册的学期是哪一学期?显示名称和ID。", + "question_cspider": "最多学生注册的学期是哪一学期?显示名称和ID。", + "bleu_from_cspider_question": "BLEU = 39.36, 73.9/45.5/28.6/25.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 28, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 28, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.semester_name", + ",", + "T1.semester_id", + "FROM", + "Semesters", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.semester_id", + "=", + "T2.semester_id", + "GROUP", + "BY", + "T1.semester_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "semester_name", + ",", + "t1", + ".", + "semester_id", + "from", + "semesters", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "semester_id", + "=", + "t2", + ".", + "semester_id", + "group", + "by", + "t1", + ".", + "semester_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "For each semester, what is the name and id of the one with the most students registered?", + "question": "对于每个学期,注册学生最多的那个学期的名字和id是什么?", + "question_cspider": "对于每个学期,注册学生最多的那个学期的名字和id是什么?", + "bleu_from_cspider_question": "BLEU = 66.96, 100.0/87.0/72.7/61.9 (BP=0.846, ratio=0.857, hyp_len=24, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 28, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 28, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", + "query_toks": [ + "SELECT", + "department_description", + "FROM", + "Departments", + "WHERE", + "department_name", + "LIKE", + "'", + "%", + "computer", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "department_description", + "from", + "departments", + "where", + "department_name", + "like", + "value" + ], + "question_spider": "What is the description of the department whose name has the substring the computer?", + "question": "名字里含有子串为“计算机”的学院的描述是什么?", + "question_cspider": "名字里含有子串为“计算机”的学院的描述是什么?", + "bleu_from_cspider_question": "BLEU = 34.75, 72.7/38.1/30.0/21.1 (BP=0.956, ratio=0.957, hyp_len=22, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"%computer%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", + "query_toks": [ + "SELECT", + "department_description", + "FROM", + "Departments", + "WHERE", + "department_name", + "LIKE", + "'", + "%", + "computer", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "department_description", + "from", + "departments", + "where", + "department_name", + "like", + "value" + ], + "question_spider": "What is the department description for the one whose name has the word computer?", + "question": "那个名字里有“计算机”的学院的描述是什么?", + "question_cspider": "那个名字里有“计算机”的学院的描述是什么?", + "bleu_from_cspider_question": "BLEU = 32.13, 76.5/50.0/33.3/21.4 (BP=0.790, ratio=0.810, hyp_len=17, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"%computer%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + ",", + "T1.student_id", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + ",", + "t1", + ".", + "student_id", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + "=", + "value" + ], + "question_spider": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", + "question": "谁在一个学期内修读了2个学位课程?列出名字、中间名、姓氏和ID。", + "question_cspider": "谁在一个学期内修读了2个学位课程?列出名字、中间名、姓氏和ID。", + "bleu_from_cspider_question": "BLEU = 60.14, 87.5/67.7/53.3/41.4 (BP=1.000, ratio=1.000, hyp_len=32, ref_len=32)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 32, + false + ] + ], + "having": [ + [ + false, + 2, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + ",", + "T1.student_id", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + ",", + "t1", + ".", + "student_id", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + "=", + "value" + ], + "question_spider": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?", + "question": "在一学期内修读2个学位课程的所有学生的名字、中间名、姓氏和id是什么?", + "question_cspider": "在一学期内修读2个学位课程的所有学生的名字、中间名、姓氏和id是什么?", + "bleu_from_cspider_question": "BLEU = 65.13, 88.6/70.6/57.6/50.0 (BP=1.000, ratio=1.000, hyp_len=35, ref_len=35)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 32, + false + ] + ], + "having": [ + [ + false, + 2, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "JOIN", + "Degree_Programs", + "AS", + "T3", + "ON", + "T2.degree_program_id", + "=", + "T3.degree_program_id", + "WHERE", + "T3.degree_summary_name", + "=", + "'Bachelor", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "join", + "degree_programs", + "as", + "t3", + "on", + "t2", + ".", + "degree_program_id", + "=", + "t3", + ".", + "degree_program_id", + "where", + "t3", + ".", + "degree_summary_name", + "=", + "value" + ], + "question_spider": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.", + "question": "谁在攻读“学士”学位课程?列出名字,中间名字,姓氏。", + "question_cspider": "谁在攻读“学士”学位课程?列出名字,中间名字,姓氏。", + "bleu_from_cspider_question": "BLEU = 55.59, 82.6/68.2/57.1/50.0 (BP=0.878, ratio=0.885, hyp_len=23, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 45, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Bachelor\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "JOIN", + "Degree_Programs", + "AS", + "T3", + "ON", + "T2.degree_program_id", + "=", + "T3.degree_program_id", + "WHERE", + "T3.degree_summary_name", + "=", + "'Bachelor", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "join", + "degree_programs", + "as", + "t3", + "on", + "t2", + ".", + "degree_program_id", + "=", + "t3", + ".", + "degree_program_id", + "where", + "t3", + ".", + "degree_summary_name", + "=", + "value" + ], + "question_spider": "What are the first, middle, and last names for everybody enrolled in a Bachelors program?", + "question": "申请“学士”学位的每个人的名字、中间名、姓氏是什么?", + "question_cspider": "申请“学士”学位的每个人的名字、中间名、姓氏是什么?", + "bleu_from_cspider_question": "BLEU = 49.29, 83.3/65.2/45.5/33.3 (BP=0.920, ratio=0.923, hyp_len=24, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 45, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Bachelor\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.degree_summary_name", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "GROUP", + "BY", + "T1.degree_summary_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "degree_summary_name", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "group", + "by", + "t1", + ".", + "degree_summary_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Find the kind of program which most number of students are enrolled in?", + "question": "找到最多数学生报名参加的项目?", + "question_cspider": "找到最多数学生报名参加的项目?", + "bleu_from_cspider_question": "BLEU = 0.00, 57.1/15.4/0.0/0.0 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 20, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.degree_summary_name", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "GROUP", + "BY", + "T1.degree_summary_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "degree_summary_name", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "group", + "by", + "t1", + ".", + "degree_summary_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the degree summary name that has the most number of students enrolled?", + "question": "申请学生人数最多的学位摘要名称是什么?", + "question_cspider": "申请学生人数最多的学位摘要名称是什么?", + "bleu_from_cspider_question": "BLEU = 77.37, 88.2/87.5/86.7/85.7 (BP=0.889, ratio=0.895, hyp_len=17, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 20, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.degree_program_id", + ",", + "T1.degree_summary_name", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "GROUP", + "BY", + "T1.degree_program_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "degree_program_id", + ",", + "t1", + ".", + "degree_summary_name", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "group", + "by", + "t1", + ".", + "degree_program_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Find the program which most number of students are enrolled in. List both the id and the summary.", + "question": "找出最多数学生报名参加的项目。列出ID和摘要。", + "question_cspider": "找出最多数学生报名参加的项目。列出ID和摘要。", + "bleu_from_cspider_question": "BLEU = 39.75, 70.0/47.4/38.9/35.3 (BP=0.861, ratio=0.870, hyp_len=20, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.degree_program_id", + ",", + "T1.degree_summary_name", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "GROUP", + "BY", + "T1.degree_program_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "degree_program_id", + ",", + "t1", + ".", + "degree_summary_name", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "group", + "by", + "t1", + ".", + "degree_program_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the program id and the summary of the degree that has the most students enrolled?", + "question": "最多数学生申请的学位的项目编号和学位摘要是什么?", + "question_cspider": "最多数学生申请的学位的项目编号和学位摘要是什么?", + "bleu_from_cspider_question": "BLEU = 46.29, 75.0/57.9/50.0/47.1 (BP=0.819, ratio=0.833, hyp_len=20, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.student_id", + ",", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + ",", + "count", + "(", + "*", + ")", + ",", + "T1.student_id", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "student_id", + ",", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + ",", + "count", + "(", + "*", + ")", + ",", + "t1", + ".", + "student_id", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.", + "question": "哪些学生报名参加项目的次数最多?列出id、名字、中间名、姓氏、参加次数和学生id。", + "question_cspider": "哪些学生报名参加任何项目的次数最多?列出id、名字、中间名、姓氏、参加次数和学生id。", + "bleu_from_cspider_question": "BLEU = 34.66, 62.8/42.9/26.8/20.0 (BP=1.000, ratio=1.000, hyp_len=43, ref_len=43)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 32, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.student_id", + ",", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + ",", + "count", + "(", + "*", + ")", + ",", + "T1.student_id", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "student_id", + ",", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + ",", + "count", + "(", + "*", + ")", + ",", + "t1", + ".", + "student_id", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?", + "question": "参与一个课程次数最多的学生的姓名、中间名、姓氏、id和参与次数是多少?", + "question_cspider": "参与任何一个课程次数最多的学生的姓名、中间名、姓氏、id和参与次数是多少?", + "bleu_from_cspider_question": "BLEU = 23.56, 57.5/35.9/18.4/8.1 (BP=1.000, ratio=1.081, hyp_len=40, ref_len=37)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 32, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )", + "query_toks": [ + "SELECT", + "semester_name", + "FROM", + "Semesters", + "WHERE", + "semester_id", + "NOT", + "IN", + "(", + "SELECT", + "semester_id", + "FROM", + "Student_Enrolment", + ")" + ], + "query_toks_no_value": [ + "select", + "semester_name", + "from", + "semesters", + "where", + "semester_id", + "not", + "in", + "(", + "select", + "semester_id", + "from", + "student_enrolment", + ")" + ], + "question_spider": "Which semesters do not have any student enrolled? List the semester name.", + "question": "哪些学期没有录取学生?列出学期名称。", + "question_cspider": "哪些学期没有录取学生?列出学期名称。", + "bleu_from_cspider_question": "BLEU = 51.09, 75.0/57.9/44.4/35.3 (BP=1.000, ratio=1.111, hyp_len=20, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 28, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + 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": "student_transcripts_tracking", + "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )", + "query_toks": [ + "SELECT", + "semester_name", + "FROM", + "Semesters", + "WHERE", + "semester_id", + "NOT", + "IN", + "(", + "SELECT", + "semester_id", + "FROM", + "Student_Enrolment", + ")" + ], + "query_toks_no_value": [ + "select", + "semester_name", + "from", + "semesters", + "where", + "semester_id", + "not", + "in", + "(", + "select", + "semester_id", + "from", + "student_enrolment", + ")" + ], + "question_spider": "What is the name of the semester with no students enrolled?", + "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=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 28, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + 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": "student_transcripts_tracking", + "query": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.course_name", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Student_Enrolment_Courses", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "course_name", + "from", + "courses", + "as", + "t1", + "join", + "student_enrolment_courses", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id" + ], + "question_spider": "What are all the course names of the courses which ever have students enrolled in?", + "question": "有学生参加过的所有课程的名称是什么?", + "question_cspider": "有学生参加过的所有课程的名称是什么?", + "bleu_from_cspider_question": "BLEU = 45.73, 72.7/57.1/40.0/26.3 (BP=1.000, ratio=1.222, hyp_len=22, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 8 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 50, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.course_name", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Student_Enrolment_Courses", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "course_name", + "from", + "courses", + "as", + "t1", + "join", + "student_enrolment_courses", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id" + ], + "question_spider": "What are the names of all courses that have some students enrolled?", + "question": "有学生注册过的所有课程的名称是什么?", + "question_cspider": "有学生注册过的所有课程的名称是什么?", + "bleu_from_cspider_question": "BLEU = 74.44, 89.5/77.8/70.6/62.5 (BP=1.000, ratio=1.056, hyp_len=19, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 8 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 50, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.course_name", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Student_Enrolment_Courses", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id", + "GROUP", + "BY", + "T1.course_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "course_name", + "from", + "courses", + "as", + "t1", + "join", + "student_enrolment_courses", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "group", + "by", + "t1", + ".", + "course_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What's the name of the course with most number of enrollments?", + "question": "注册人数最多的课程名称是什么?", + "question_cspider": "注册人数最多的课程名称是什么?", + "bleu_from_cspider_question": "BLEU = 81.54, 93.8/86.7/78.6/69.2 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 8 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 50, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.course_name", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Student_Enrolment_Courses", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id", + "GROUP", + "BY", + "T1.course_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "course_name", + "from", + "courses", + "as", + "t1", + "join", + "student_enrolment_courses", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "group", + "by", + "t1", + ".", + "course_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the course with the most students enrolled?", + "question": "最多人数注册的课程名称是什么?", + "question_cspider": "最多人数注册的课程名称是什么?", + "bleu_from_cspider_question": "BLEU = 59.69, 73.3/64.3/53.8/50.0 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 8 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 50, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", + "query_toks": [ + "SELECT", + "T1.last_name", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Addresses", + "AS", + "T2", + "ON", + "T1.current_address_id", + "=", + "T2.address_id", + "WHERE", + "T2.state_province_county", + "=", + "'NorthCarolina", + "'", + "EXCEPT", + "SELECT", + "DISTINCT", + "T3.last_name", + "FROM", + "Students", + "AS", + "T3", + "JOIN", + "Student_Enrolment", + "AS", + "T4", + "ON", + "T3.student_id", + "=", + "T4.student_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "last_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1", + ".", + "current_address_id", + "=", + "t2", + ".", + "address_id", + "where", + "t2", + ".", + "state_province_county", + "=", + "value", + "except", + "select", + "distinct", + "t3", + ".", + "last_name", + "from", + "students", + "as", + "t3", + "join", + "student_enrolment", + "as", + "t4", + "on", + "t3", + ".", + "student_id", + "=", + "t4", + ".", + "student_id" + ], + "question_spider": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.", + "question": "查找目前居住在“湖北”,但没有注册任何学位课程的学生的姓氏。", + "question_cspider": "查找目前居住在“湖北”,但没有注册任何学位课程的学生的姓氏。", + "bleu_from_cspider_question": "BLEU = 57.18, 74.2/60.0/51.7/46.4 (BP=1.000, ratio=1.033, hyp_len=31, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"NorthCarolina\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", + "query_toks": [ + "SELECT", + "T1.last_name", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Addresses", + "AS", + "T2", + "ON", + "T1.current_address_id", + "=", + "T2.address_id", + "WHERE", + "T2.state_province_county", + "=", + "'NorthCarolina", + "'", + "EXCEPT", + "SELECT", + "DISTINCT", + "T3.last_name", + "FROM", + "Students", + "AS", + "T3", + "JOIN", + "Student_Enrolment", + "AS", + "T4", + "ON", + "T3.student_id", + "=", + "T4.student_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "last_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1", + ".", + "current_address_id", + "=", + "t2", + ".", + "address_id", + "where", + "t2", + ".", + "state_province_county", + "=", + "value", + "except", + "select", + "distinct", + "t3", + ".", + "last_name", + "from", + "students", + "as", + "t3", + "join", + "student_enrolment", + "as", + "t4", + "on", + "t3", + ".", + "student_id", + "=", + "t4", + ".", + "student_id" + ], + "question_spider": "What are the last name of the students who live in North Carolina but have not registered in any degree programs?", + "question": "那些住在“湖北”但没有注册任何学位课程的学生的姓氏是什么?", + "question_cspider": "那些住在“湖北”但没有注册任何学位课程的学生的姓氏是什么?", + "bleu_from_cspider_question": "BLEU = 63.90, 75.9/64.3/59.3/57.7 (BP=1.000, ratio=1.000, hyp_len=29, ref_len=29)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"NorthCarolina\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.transcript_date", + ",", + "T1.transcript_id", + "FROM", + "Transcript_Contents", + "AS", + "T1", + "JOIN", + "Transcripts", + "AS", + "T2", + "ON", + "T1.transcript_id", + "=", + "T2.transcript_id", + "GROUP", + "BY", + "T1.transcript_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "transcript_date", + ",", + "t1", + ".", + "transcript_id", + "from", + "transcript_contents", + "as", + "t1", + "join", + "transcripts", + "as", + "t2", + "on", + "t1", + ".", + "transcript_id", + "=", + "t2", + ".", + "transcript_id", + "group", + "by", + "t1", + ".", + "transcript_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Show the date and id of the transcript with at least 2 course results.", + "question": "显示至少包括2个课程成绩的成绩单的日期和id。", + "question_cspider": "显示至少包括2个课程成绩的成绩单的日期和id。", + "bleu_from_cspider_question": "BLEU = 43.95, 77.3/52.4/35.0/31.6 (BP=0.956, ratio=0.957, hyp_len=22, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ], + [ + "table_unit", + 9 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 56, + false + ], + null + ], + [ + 0, + 52, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 56, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 56, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.transcript_date", + ",", + "T1.transcript_id", + "FROM", + "Transcript_Contents", + "AS", + "T1", + "JOIN", + "Transcripts", + "AS", + "T2", + "ON", + "T1.transcript_id", + "=", + "T2.transcript_id", + "GROUP", + "BY", + "T1.transcript_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "transcript_date", + ",", + "t1", + ".", + "transcript_id", + "from", + "transcript_contents", + "as", + "t1", + "join", + "transcripts", + "as", + "t2", + "on", + "t1", + ".", + "transcript_id", + "=", + "t2", + ".", + "transcript_id", + "group", + "by", + "t1", + ".", + "transcript_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What is the date and id of the transcript with at least 2 courses listed?", + "question": "至少有2个课程的成绩单的日期和id是什么?", + "question_cspider": "至少有2个课程的成绩单的日期和id是什么?", + "bleu_from_cspider_question": "BLEU = 74.93, 86.4/76.2/70.0/68.4 (BP=1.000, ratio=1.048, hyp_len=22, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ], + [ + "table_unit", + 9 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 56, + false + ], + null + ], + [ + 0, + 52, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 56, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 56, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'", + "query_toks": [ + "SELECT", + "cell_mobile_number", + "FROM", + "Students", + "WHERE", + "first_name", + "=", + "'Timmothy", + "'", + "AND", + "last_name", + "=", + "'Ward", + "'" + ], + "query_toks_no_value": [ + "select", + "cell_mobile_number", + "from", + "students", + "where", + "first_name", + "=", + "value", + "and", + "last_name", + "=", + "value" + ], + "question_spider": "What is the phone number of the man with the first name Timmothy and the last name Ward?", + "question": "名字是“钟”、姓氏是“睿”的人的电话号码是多少?", + "question_cspider": "名字是“钟”、姓氏是“睿”的人的电话号码是多少?", + "bleu_from_cspider_question": "BLEU = 43.61, 65.0/52.6/50.0/47.1 (BP=0.819, ratio=0.833, hyp_len=20, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 35, + false + ], + null + ], + "\"Timmothy\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 37, + false + ], + null + ], + "\"Ward\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'", + "query_toks": [ + "select", + "cell_mobile_number", + "from", + "students", + "where", + "first_name", + "=", + "\"timmothy\"", + "and", + "last_name", + "=", + "\"ward\"" + ], + "query_toks_no_value": [ + "select", + "cell_mobile_number", + "from", + "students", + "where", + "first_name", + "=", + "value", + "and", + "last_name", + "=", + "value" + ], + "question_spider": "What is the mobile phone number of the student named Timmothy Ward ?", + "question": "叫“钟睿”的学生的手机号码是多少?", + "question_cspider": "叫“钟睿”的学生的手机号码是多少?", + "bleu_from_cspider_question": "BLEU = 41.81, 48.1/42.3/40.0/37.5 (BP=1.000, ratio=1.588, hyp_len=27, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 35, + false + ], + null + ], + "\"timmothy\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 37, + false + ], + null + ], + "\"ward\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "FROM", + "Students", + "ORDER", + "BY", + "date_first_registered", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "from", + "students", + "order", + "by", + "date_first_registered", + "asc", + "limit", + "value" + ], + "question_spider": "Who is the first student to register? List the first name, middle name and last name.", + "question": "谁是第一个注册的学生?列出名字、中间名和姓氏。", + "question_cspider": "谁是第一个注册的学生?列出名字、中间名和姓氏。", + "bleu_from_cspider_question": "BLEU = 75.40, 95.5/85.7/75.0/63.2 (BP=0.956, ratio=0.957, hyp_len=22, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "FROM", + "Students", + "ORDER", + "BY", + "date_first_registered", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "from", + "students", + "order", + "by", + "date_first_registered", + "asc", + "limit", + "value" + ], + "question_spider": "What is the first, middle, and last name of the first student to register?", + "question": "第一个注册的学生的名字、中间名和姓氏是什么?", + "question_cspider": "第一个注册的学生的名字、中间名和姓氏是什么?", + "bleu_from_cspider_question": "BLEU = 69.84, 95.5/81.0/65.0/47.4 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "FROM", + "Students", + "ORDER", + "BY", + "date_left", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "from", + "students", + "order", + "by", + "date_left", + "asc", + "limit", + "value" + ], + "question_spider": "Who is the earliest graduate of the school? List the first name, middle name and last name.", + "question": "谁是学校最早毕业的学生?列出名字、中间名和姓氏。", + "question_cspider": "谁是学校最早毕业的学生?列出名字、中间名和姓氏。", + "bleu_from_cspider_question": "BLEU = 66.22, 95.7/77.3/61.9/50.0 (BP=0.957, ratio=0.958, hyp_len=23, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "FROM", + "Students", + "ORDER", + "BY", + "date_left", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "from", + "students", + "order", + "by", + "date_left", + "asc", + "limit", + "value" + ], + "question_spider": "What is the first, middle, and last name of the earliest school graduate?", + "question": "最早的学校毕业生的名字、中间名和姓氏是什么?", + "question_cspider": "最早的学校毕业生的名字、中间名和姓氏是什么?", + "bleu_from_cspider_question": "BLEU = 75.22, 91.3/81.8/71.4/60.0 (BP=1.000, ratio=1.045, hyp_len=23, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", + "query_toks": [ + "SELECT", + "first_name", + "FROM", + "Students", + "WHERE", + "current_address_id", + "!", + "=", + "permanent_address_id" + ], + "query_toks_no_value": [ + "select", + "first_name", + "from", + "students", + "where", + "current_address_id", + "!", + "=", + "permanent_address_id" + ], + "question_spider": "Whose permanent address is different from his or her current address? List his or her first name.", + "question": "谁的永久地址不同于他或她的当前地址?列出他或她的名字。", + "question_cspider": "谁的永久地址不同于他或她的当前地址?列出他或她的名字。", + "bleu_from_cspider_question": "BLEU = 49.89, 87.0/68.2/52.4/40.0 (BP=0.840, ratio=0.852, hyp_len=23, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 34, + false + ], + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", + "query_toks": [ + "SELECT", + "first_name", + "FROM", + "Students", + "WHERE", + "current_address_id", + "!", + "=", + "permanent_address_id" + ], + "query_toks_no_value": [ + "select", + "first_name", + "from", + "students", + "where", + "current_address_id", + "!", + "=", + "permanent_address_id" + ], + "question_spider": "What is the first name of the student whose permanent address is different from his or her current one?", + "question": "永久地址与当前地址不同的学生的名字是什么?", + "question_cspider": "永久地址与当前地址不同的学生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 68.92, 85.7/75.0/63.2/55.6 (BP=1.000, ratio=1.000, hyp_len=21, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 34, + false + ], + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.address_id", + ",", + "T1.line_1", + ",", + "T1.line_2", + "FROM", + "Addresses", + "AS", + "T1", + "JOIN", + "Students", + "AS", + "T2", + "ON", + "T1.address_id", + "=", + "T2.current_address_id", + "GROUP", + "BY", + "T1.address_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "address_id", + ",", + "t1", + ".", + "line_1", + ",", + "t1", + ".", + "line_2", + "from", + "addresses", + "as", + "t1", + "join", + "students", + "as", + "t2", + "on", + "t1", + ".", + "address_id", + "=", + "t2", + ".", + "current_address_id", + "group", + "by", + "t1", + ".", + "address_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which address holds the most number of students currently? List the address id and all lines.", + "question": "目前哪个地址下的学生最多?列出地址ID和地址的第1行和第2行。", + "question_cspider": "目前哪个地址包含的学生最多?列出地址ID和地址的第1行和第2行。", + "bleu_from_cspider_question": "BLEU = 45.47, 80.0/70.8/56.5/40.9 (BP=0.756, ratio=0.781, hyp_len=25, ref_len=32)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 6 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 33, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.address_id", + ",", + "T1.line_1", + ",", + "T1.line_2", + "FROM", + "Addresses", + "AS", + "T1", + "JOIN", + "Students", + "AS", + "T2", + "ON", + "T1.address_id", + "=", + "T2.current_address_id", + "GROUP", + "BY", + "T1.address_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "address_id", + ",", + "t1", + ".", + "line_1", + ",", + "t1", + ".", + "line_2", + "from", + "addresses", + "as", + "t1", + "join", + "students", + "as", + "t2", + "on", + "t1", + ".", + "address_id", + "=", + "t2", + ".", + "current_address_id", + "group", + "by", + "t1", + ".", + "address_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the id, line 1, and line 2 of the address with the most students?", + "question": "最多数学生住的地址的ID、第1行和第2行是什么?", + "question_cspider": "包含最多数学生的地址的ID、第1行和第2行是什么?", + "bleu_from_cspider_question": "BLEU = 64.91, 91.7/73.9/59.1/52.4 (BP=0.959, ratio=0.960, hyp_len=24, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 6 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 33, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT avg(transcript_date) FROM Transcripts", + "query_toks": [ + "SELECT", + "avg", + "(", + "transcript_date", + ")", + "FROM", + "Transcripts" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "transcript_date", + ")", + "from", + "transcripts" + ], + "question_spider": "On average, when were the transcripts printed?", + "question": "平均来说,成绩单是什么时候印的?", + "question_cspider": "平均来说,成绩单是什么时候印的?", + "bleu_from_cspider_question": "BLEU = 31.02, 73.3/42.9/23.1/16.7 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT avg(transcript_date) FROM Transcripts", + "query_toks": [ + "SELECT", + "avg", + "(", + "transcript_date", + ")", + "FROM", + "Transcripts" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "transcript_date", + ")", + "from", + "transcripts" + ], + "question_spider": "What is the average transcript date?", + "question": "成绩单的平均日期是什么?", + "question_cspider": "成绩单的平均日期是什么?", + "bleu_from_cspider_question": "BLEU = 72.93, 83.3/72.7/70.0/66.7 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", + "query_toks": [ + "SELECT", + "transcript_date", + ",", + "other_details", + "FROM", + "Transcripts", + "ORDER", + "BY", + "transcript_date", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "transcript_date", + ",", + "other_details", + "from", + "transcripts", + "order", + "by", + "transcript_date", + "asc", + "limit", + "value" + ], + "question_spider": "When is the first transcript released? List the date and details.", + "question": "第一份成绩单是什么时候发布的?列出日期和细节。", + "question_cspider": "第一份成绩单是什么时候发布的?列出日期和细节。", + "bleu_from_cspider_question": "BLEU = 45.46, 81.0/55.0/42.1/33.3 (BP=0.909, ratio=0.913, hyp_len=21, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 54, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", + "query_toks": [ + "SELECT", + "transcript_date", + ",", + "other_details", + "FROM", + "Transcripts", + "ORDER", + "BY", + "transcript_date", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "transcript_date", + ",", + "other_details", + "from", + "transcripts", + "order", + "by", + "transcript_date", + "asc", + "limit", + "value" + ], + "question_spider": "What is the earliest date of a transcript release, and what details can you tell me?", + "question": "发布最早的成绩单的日期是什么?你能告诉我什么细节?", + "question_cspider": "发布最早的成绩单的日期是什么?你能告诉我什么细节?", + "bleu_from_cspider_question": "BLEU = 69.17, 91.7/82.6/68.2/52.4 (BP=0.959, ratio=0.960, hyp_len=24, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 54, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Transcripts", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Transcripts" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "transcripts" + ], + "question_spider": "How many transcripts are released?", + "question": "发布多少成绩单?", + "question_cspider": "发布多少成绩单?", + "bleu_from_cspider_question": "BLEU = 31.24, 60.0/44.4/25.0/14.3 (BP=1.000, ratio=1.250, hyp_len=10, ref_len=8)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Transcripts", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Transcripts" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "transcripts" + ], + "question_spider": "How many transcripts are listed?", + "question": "列出了多少个成绩单?", + "question_cspider": "列出了多少个成绩单?", + "bleu_from_cspider_question": "BLEU = 65.80, 90.0/77.8/62.5/42.9 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", + "query_toks": [ + "SELECT", + "transcript_date", + "FROM", + "Transcripts", + "ORDER", + "BY", + "transcript_date", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "transcript_date", + "from", + "transcripts", + "order", + "by", + "transcript_date", + "desc", + "limit", + "value" + ], + "question_spider": "What is the last transcript release date?", + "question": "最后一份成绩单发布日期是什么?", + "question_cspider": "最后一份成绩单发布日期是什么?", + "bleu_from_cspider_question": "BLEU = 61.42, 92.9/76.9/58.3/45.5 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", + "query_toks": [ + "SELECT", + "transcript_date", + "FROM", + "Transcripts", + "ORDER", + "BY", + "transcript_date", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "transcript_date", + "from", + "transcripts", + "order", + "by", + "transcript_date", + "desc", + "limit", + "value" + ], + "question_spider": "When was the last transcript released?", + "question": "最后一份成绩单是什么时候发布的?", + "question_cspider": "最后一份成绩单是什么时候发布的?", + "bleu_from_cspider_question": "BLEU = 0.00, 90.0/44.4/12.5/0.0 (BP=0.549, ratio=0.625, hyp_len=10, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "student_course_id", + "FROM", + "Transcript_Contents", + "GROUP", + "BY", + "student_course_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "student_course_id", + "from", + "transcript_contents", + "group", + "by", + "student_course_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.", + "question": "一个课程的注册结果最多能在不同的成绩单显示多少次?同时显示课程注册ID。", + "question_cspider": "一个课程的注册结果最多能在不同的成绩单显示多少次?同时显示课程注册ID。", + "bleu_from_cspider_question": "BLEU = 71.59, 93.3/89.7/85.7/81.5 (BP=0.819, ratio=0.833, hyp_len=30, ref_len=36)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 55, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 55, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "student_course_id", + "FROM", + "Transcript_Contents", + "GROUP", + "BY", + "student_course_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "student_course_id", + "from", + "transcript_contents", + "group", + "by", + "student_course_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?", + "question": "一个课程在不同成绩单中出现的最大次数是多少?该课程的注册号是多少?", + "question_cspider": "一个课程在不同成绩单中出现的最大次数是多少?该课程的注册号是多少?", + "bleu_from_cspider_question": "BLEU = 41.74, 70.6/48.5/34.4/25.8 (BP=1.000, ratio=1.030, hyp_len=34, ref_len=33)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 55, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 55, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.transcript_date", + ",", + "T1.transcript_id", + "FROM", + "Transcript_Contents", + "AS", + "T1", + "JOIN", + "Transcripts", + "AS", + "T2", + "ON", + "T1.transcript_id", + "=", + "T2.transcript_id", + "GROUP", + "BY", + "T1.transcript_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "transcript_date", + ",", + "t1", + ".", + "transcript_id", + "from", + "transcript_contents", + "as", + "t1", + "join", + "transcripts", + "as", + "t2", + "on", + "t1", + ".", + "transcript_id", + "=", + "t2", + ".", + "transcript_id", + "group", + "by", + "t1", + ".", + "transcript_id", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question_spider": "Show the date of the transcript which shows the least number of results, also list the id.", + "question": "显示成绩数量最少的成绩单的日期,并列出ID。", + "question_cspider": "显示成绩数量最少的成绩单的日期,并列出ID。", + "bleu_from_cspider_question": "BLEU = 56.00, 79.2/65.2/50.0/38.1 (BP=1.000, ratio=1.091, hyp_len=24, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ], + [ + "table_unit", + 9 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 56, + false + ], + null + ], + [ + 0, + 52, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 56, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 56, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.transcript_date", + ",", + "T1.transcript_id", + "FROM", + "Transcript_Contents", + "AS", + "T1", + "JOIN", + "Transcripts", + "AS", + "T2", + "ON", + "T1.transcript_id", + "=", + "T2.transcript_id", + "GROUP", + "BY", + "T1.transcript_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "transcript_date", + ",", + "t1", + ".", + "transcript_id", + "from", + "transcript_contents", + "as", + "t1", + "join", + "transcripts", + "as", + "t2", + "on", + "t1", + ".", + "transcript_id", + "=", + "t2", + ".", + "transcript_id", + "group", + "by", + "t1", + ".", + "transcript_id", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question_spider": "What is the date and id of the transcript with the least number of results?", + "question": "成绩数量最少的成绩单的日期和id是什么?", + "question_cspider": "成绩数量最少的成绩单的日期和id是什么?", + "bleu_from_cspider_question": "BLEU = 66.85, 88.9/76.5/68.8/66.7 (BP=0.895, ratio=0.900, hyp_len=18, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ], + [ + "table_unit", + 9 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 56, + false + ], + null + ], + [ + 0, + 52, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 56, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 56, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.semester_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "WHERE", + "degree_summary_name", + "=", + "'Master", + "'", + "INTERSECT", + "SELECT", + "DISTINCT", + "T2.semester_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "WHERE", + "degree_summary_name", + "=", + "'Bachelor", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "semester_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "where", + "degree_summary_name", + "=", + "value", + "intersect", + "select", + "distinct", + "t2", + ".", + "semester_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "where", + "degree_summary_name", + "=", + "value" + ], + "question_spider": "Find the semester when both Master students and Bachelor students got enrolled in.", + "question": "找到“硕士生”和“本科生”都有注册的那个学期。", + "question_cspider": "找到“硕士生”和“本科生”都有注册的那个学期。", + "bleu_from_cspider_question": "BLEU = 0.00, 60.0/28.6/7.7/0.0 (BP=0.587, ratio=0.652, hyp_len=15, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Master\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Bachelor\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.semester_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "WHERE", + "degree_summary_name", + "=", + "'Master", + "'", + "INTERSECT", + "SELECT", + "DISTINCT", + "T2.semester_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "WHERE", + "degree_summary_name", + "=", + "'Bachelor", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "semester_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "where", + "degree_summary_name", + "=", + "value", + "intersect", + "select", + "distinct", + "t2", + ".", + "semester_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "where", + "degree_summary_name", + "=", + "value" + ], + "question_spider": "What is the id of the semester that had both Masters and Bachelors students enrolled?", + "question": "同时招收了“硕士生”和“本科生”的学期的id是什么?", + "question_cspider": "同时招收了“硕士生”和“本科生”的学期的id是什么?", + "bleu_from_cspider_question": "BLEU = 26.17, 60.9/45.5/28.6/10.0 (BP=0.878, ratio=0.885, hyp_len=23, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Master\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Bachelor\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT current_address_id) FROM Students", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "current_address_id", + ")", + "FROM", + "Students" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "current_address_id", + ")", + "from", + "students" + ], + "question_spider": "How many different addresses do the students currently live?", + "question": "学生现在有多少不同的住址?", + "question_cspider": "学生现在有多少不同的住址?", + "bleu_from_cspider_question": "BLEU = 0.00, 58.8/31.2/6.7/0.0 (BP=1.000, ratio=1.308, hyp_len=17, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 33, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT current_address_id) FROM Students", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "current_address_id", + ")", + "FROM", + "Students" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "current_address_id", + ")", + "from", + "students" + ], + "question_spider": "What are the different addresses that have students living there?", + "question": "学生现在居住的不同地址有哪些?", + "question_cspider": "学生现在居住的不同地址有哪些?", + "bleu_from_cspider_question": "BLEU = 0.00, 86.7/35.7/7.7/0.0 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 33, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", + "query_toks": [ + "SELECT", + "other_student_details", + "FROM", + "Students", + "ORDER", + "BY", + "other_student_details", + "DESC" + ], + "query_toks_no_value": [ + "select", + "other_student_details", + "from", + "students", + "order", + "by", + "other_student_details", + "desc" + ], + "question_spider": "List all the student details in reversed lexicographical order.", + "question": "按照字母顺序倒序列出所有学生的详细资料。", + "question_cspider": "按照字母顺序倒序列出所有学生的详细资料。", + "bleu_from_cspider_question": "BLEU = 50.02, 65.0/52.6/44.4/41.2 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", + "query_toks": [ + "SELECT", + "other_student_details", + "FROM", + "Students", + "ORDER", + "BY", + "other_student_details", + "DESC" + ], + "query_toks_no_value": [ + "select", + "other_student_details", + "from", + "students", + "order", + "by", + "other_student_details", + "desc" + ], + "question_spider": "What other details can you tell me about students in reverse alphabetical order?", + "question": "按字母顺序逆序排列,你能告诉我学生其他的一些细节吗?", + "question_cspider": "按字母顺序逆序排列,你能告诉我学生其他的一些细节吗?", + "bleu_from_cspider_question": "BLEU = 17.80, 57.7/32.0/12.5/4.3 (BP=1.000, ratio=1.000, hyp_len=26, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_description FROM Sections WHERE section_name = 'h'", + "query_toks": [ + "SELECT", + "section_description", + "FROM", + "Sections", + "WHERE", + "section_name", + "=", + "'h", + "'" + ], + "query_toks_no_value": [ + "select", + "section_description", + "from", + "sections", + "where", + "section_name", + "=", + "value" + ], + "question_spider": "Describe the section h.", + "question": "描述“第三”章节。", + "question_cspider": "描述“第三”章节。", + "bleu_from_cspider_question": "BLEU = 0.00, 50.0/20.0/0.0/0.0 (BP=0.607, ratio=0.667, hyp_len=6, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"h\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_description FROM Sections WHERE section_name = 'h'", + "query_toks": [ + "SELECT", + "section_description", + "FROM", + "Sections", + "WHERE", + "section_name", + "=", + "'h", + "'" + ], + "query_toks_no_value": [ + "select", + "section_description", + "from", + "sections", + "where", + "section_name", + "=", + "value" + ], + "question_spider": "What is the description for the section named h?", + "question": "“第三”章节的描述是什么?", + "question_cspider": "“第三”章节的描述是什么?", + "bleu_from_cspider_question": "BLEU = 43.24, 50.0/46.2/41.7/36.4 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"h\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'", + "query_toks": [ + "select", + "t1.first_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1.permanent_address_id", + "=", + "t2.address_id", + "where", + "t2.country", + "=", + "\"haiti\"", + "or", + "t1.cell_mobile_number", + "=", + "\"09700166582\"" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1", + ".", + "permanent_address_id", + "=", + "t2", + ".", + "address_id", + "where", + "t2", + ".", + "country", + "=", + "value", + "or", + "t1", + ".", + "cell_mobile_number", + "=", + "value" + ], + "question_spider": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .", + "question": "找到永久居住在“海地”或手机电话号码是“09700166582”的学生的名字。", + "question_cspider": "找到永久居住在“海地”或手机电话号码是“09700166582”的学生的名字。", + "bleu_from_cspider_question": "BLEU = 54.15, 86.1/65.7/50.0/42.4 (BP=0.920, ratio=0.923, hyp_len=36, ref_len=39)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 34, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"haiti\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"09700166582\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'", + "query_toks": [ + "select", + "t1.first_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1.permanent_address_id", + "=", + "t2.address_id", + "where", + "t2.country", + "=", + "\"haiti\"", + "or", + "t1.cell_mobile_number", + "=", + "\"09700166582\"" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1", + ".", + "permanent_address_id", + "=", + "t2", + ".", + "address_id", + "where", + "t2", + ".", + "country", + "=", + "value", + "or", + "t1", + ".", + "cell_mobile_number", + "=", + "value" + ], + "question_spider": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?", + "question": "永久居住在“海地”或手机号码是“09700166582”的学生的名字是什么?", + "question_cspider": "永久居住在“海地”或手机号码是“09700166582”的��生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 66.81, 94.3/79.4/66.7/56.2 (BP=0.918, ratio=0.921, hyp_len=35, ref_len=38)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 34, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"haiti\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"09700166582\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon ORDER BY title", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "ORDER", + "BY", + "title" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "order", + "by", + "title" + ], + "question_spider": "List the title of all cartoons in alphabetical order.", + "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=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon ORDER BY title", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "ORDER", + "BY", + "title" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "order", + "by", + "title" + ], + "question_spider": "What are the titles of the cartoons sorted alphabetically?", + "question": "按字母顺序排列,卡通的标题是什么?", + "question_cspider": "按字母顺序排列,卡通的标题是什么?", + "bleu_from_cspider_question": "BLEU = 50.72, 70.6/56.2/46.7/35.7 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "WHERE", + "Directed_by", + "=", + "``", + "Ben", + "Jones", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value" + ], + "question_spider": "List all cartoon directed by \"Ben Jones\".", + "question": "列出所有由“黄伟明”导演的卡通。", + "question_cspider": "列出所有由“黄伟明”导演的卡通。", + "bleu_from_cspider_question": "BLEU = 30.06, 55.6/29.4/25.0/20.0 (BP=1.000, ratio=1.125, hyp_len=18, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "WHERE", + "Directed_by", + "=", + "``", + "Ben", + "Jones", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value" + ], + "question_spider": "What are the names of all cartoons directed by Ben Jones?", + "question": "“黄伟明”导演的卡通作品的名字是什么?", + "question_cspider": "“黄伟明”导演的卡通作品的名字是什么?", + "bleu_from_cspider_question": "BLEU = 21.65, 32.1/22.2/19.2/16.0 (BP=1.000, ratio=1.474, hyp_len=28, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Cartoon", + "WHERE", + "Written_by", + "=", + "``", + "Joseph", + "Kuhr", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cartoon", + "where", + "written_by", + "=", + "value" + ], + "question_spider": "How many cartoons were written by \"Joseph Kuhr\"?", + "question": "“李辉”写了多少动画片?", + "question_cspider": "“李辉”写了多少动画片?", + "bleu_from_cspider_question": "BLEU = 27.67, 53.3/28.6/23.1/16.7 (BP=1.000, ratio=1.250, hyp_len=15, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Joseph Kuhr\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Cartoon", + "WHERE", + "Written_by", + "=", + "``", + "Joseph", + "Kuhr", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cartoon", + "where", + "written_by", + "=", + "value" + ], + "question_spider": "What is the number of cartoones written by Joseph Kuhr?", + "question": "“李辉”导演的动画片的数量是多少?", + "question_cspider": "“李辉”导演的动画片的数量是多少?", + "bleu_from_cspider_question": "BLEU = 17.68, 28.6/18.5/15.4/12.0 (BP=1.000, ratio=1.647, hyp_len=28, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Joseph Kuhr\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date", + "query_toks": [ + "SELECT", + "title", + ",", + "Directed_by", + "FROM", + "Cartoon", + "ORDER", + "BY", + "Original_air_date" + ], + "query_toks_no_value": [ + "select", + "title", + ",", + "directed_by", + "from", + "cartoon", + "order", + "by", + "original_air_date" + ], + "question_spider": "list all cartoon titles and their directors ordered by their air date", + "question": "列出所有的卡通片的名字和他们的导演。", + "question_cspider": "列出所有的卡通片的名字和他们的导演。", + "bleu_from_cspider_question": "BLEU = 13.52, 28.6/20.0/10.5/5.6 (BP=1.000, ratio=1.167, hyp_len=21, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date", + "query_toks": [ + "SELECT", + "title", + ",", + "Directed_by", + "FROM", + "Cartoon", + "ORDER", + "BY", + "Original_air_date" + ], + "query_toks_no_value": [ + "select", + "title", + ",", + "directed_by", + "from", + "cartoon", + "order", + "by", + "original_air_date" + ], + "question_spider": "What is the name and directors of all the cartoons that are ordered by air date?", + "question": "按照播出日期升序排序,所有卡通的名字和导演是什么?", + "question_cspider": "按照播出日期排序,所有卡通的名字和导演是什么?", + "bleu_from_cspider_question": "BLEU = 40.71, 71.4/55.0/36.8/27.8 (BP=0.909, ratio=0.913, hyp_len=21, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "WHERE", + "Directed_by", + "=", + "``", + "Ben", + "Jones", + "''", + "OR", + "Directed_by", + "=", + "``", + "Brandon", + "Vietti", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value", + "or", + "directed_by", + "=", + "value" + ], + "question_spider": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\".", + "question": "列出“黄伟明”或“姜文”导演的所有卡通片的标题。", + "question_cspider": "列出“黄伟明”或“姜文”导演的所有卡通片的标题。", + "bleu_from_cspider_question": "BLEU = 26.75, 56.7/37.9/21.4/11.1 (BP=1.000, ratio=1.250, hyp_len=30, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Brandon Vietti\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "WHERE", + "Directed_by", + "=", + "``", + "Ben", + "Jones", + "''", + "OR", + "Directed_by", + "=", + "``", + "Brandon", + "Vietti", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value", + "or", + "directed_by", + "=", + "value" + ], + "question_spider": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?", + "question": "“黄伟明”或“姜文”导演的卡通作品的标题是什么?", + "question_cspider": "“黄伟明”或“姜文”导演的卡通作品的标题是什么?", + "bleu_from_cspider_question": "BLEU = 16.59, 27.0/16.7/14.3/11.8 (BP=1.000, ratio=1.542, hyp_len=37, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Brandon Vietti\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "Country", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "Country", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "country", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "country", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which country has the most of TV Channels? List the country and number of TV Channels it has.", + "question": "哪个国家拥有最多的电视频道?列出这些国家和它们所拥有的电视频道的数量。", + "question_cspider": "哪个国家拥有最多的电视频道?列出这些国家和它们所拥有的电视频道的数量。", + "bleu_from_cspider_question": "BLEU = 42.83, 90.0/65.5/42.9/25.9 (BP=0.846, ratio=0.857, hyp_len=30, ref_len=35)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "Country", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "Country", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "country", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "country", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the country with the most number of TV Channels and how many does it have?", + "question": "电视频道最多的国家是什么?它们有多少个频道?", + "question_cspider": "电视频道最多的国家是什么?它们有多少个频道?", + "bleu_from_cspider_question": "BLEU = 46.92, 100.0/68.8/53.3/42.9 (BP=0.745, ratio=0.773, hyp_len=17, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "series_name", + ")", + ",", + "count", + "(", + "DISTINCT", + "content", + ")", + "FROM", + "TV_Channel", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "series_name", + ")", + ",", + "count", + "(", + "distinct", + "content", + ")", + "from", + "tv_channel" + ], + "question_spider": "List the number of different series names and contents in the TV Channel table.", + "question": "列出电视频道表中不同的系列名称的数量和不同内容的数量。", + "question_cspider": "列出电视频道表中不同的系列名称的数量和不同内容的数量。", + "bleu_from_cspider_question": "BLEU = 47.43, 95.5/71.4/50.0/36.8 (BP=0.797, ratio=0.815, hyp_len=22, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 2, + true + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 5, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "series_name", + ")", + ",", + "count", + "(", + "DISTINCT", + "content", + ")", + "FROM", + "TV_Channel", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "series_name", + ")", + ",", + "count", + "(", + "distinct", + "content", + ")", + "from", + "tv_channel" + ], + "question_spider": "How many different series and contents are listed in the TV Channel table?", + "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=21, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 2, + true + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 5, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "Content", + "FROM", + "TV_Channel", + "WHERE", + "series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "content", + "from", + "tv_channel", + "where", + "series_name", + "=", + "value" + ], + "question_spider": "What is the content of TV Channel with serial name \"Sky Radio\"?", + "question": "电视频道播出的连续剧“潜伏”的内容是什么?", + "question_cspider": "电视频道播出的连续剧“潜伏”的内容是什么?", + "bleu_from_cspider_question": "BLEU = 35.64, 56.0/41.7/30.4/22.7 (BP=1.000, ratio=1.190, hyp_len=25, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "Content", + "FROM", + "TV_Channel", + "WHERE", + "series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "content", + "from", + "tv_channel", + "where", + "series_name", + "=", + "value" + ], + "question_spider": "What is the content of the series Sky Radio?", + "question": "连续剧“潜伏”的内容是什么?", + "question_cspider": "连续剧“潜伏”的内容是什么?", + "bleu_from_cspider_question": "BLEU = 43.55, 53.8/50.0/45.5/40.0 (BP=0.926, ratio=0.929, hyp_len=13, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "Package_Option", + "FROM", + "TV_Channel", + "WHERE", + "series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "package_option", + "from", + "tv_channel", + "where", + "series_name", + "=", + "value" + ], + "question_spider": "What is the Package Option of TV Channel with serial name \"Sky Radio\"?", + "question": "播出电视连续剧“潜伏”的电视频道的套餐选项是什么?", + "question_cspider": "播出电视连续剧“潜伏”的电视频道的套餐选项是什么?", + "bleu_from_cspider_question": "BLEU = 53.67, 59.3/53.8/52.0/50.0 (BP=1.000, ratio=1.080, hyp_len=27, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "Package_Option", + "FROM", + "TV_Channel", + "WHERE", + "series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "package_option", + "from", + "tv_channel", + "where", + "series_name", + "=", + "value" + ], + "question_spider": "What are the Package Options of the TV Channels whose series names are Sky Radio?", + "question": "包含了连续剧“潜伏”的电视频道有哪些套餐选择?", + "question_cspider": "包含了连续剧“潜伏”的电视频道有哪些套餐选择?", + "bleu_from_cspider_question": "BLEU = 17.90, 33.3/23.1/16.0/8.3 (BP=1.000, ratio=1.174, hyp_len=27, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "where", + "language", + "=", + "value" + ], + "question_spider": "How many TV Channel using language English?", + "question": "有多少电视频道使用语言为“英语”?", + "question_cspider": "有多少电视频道使用语言为“英语”?", + "bleu_from_cspider_question": "BLEU = 34.81, 91.7/63.6/40.0/33.3 (BP=0.659, ratio=0.706, hyp_len=12, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "where", + "language", + "=", + "value" + ], + "question_spider": "How many TV Channels use the English language?", + "question": "使用“英语”的电视频道有多少?", + "question_cspider": "使用“英语”的电视频道有多少?", + "bleu_from_cspider_question": "BLEU = 24.98, 100.0/60.0/22.2/12.5 (BP=0.695, ratio=0.733, hyp_len=11, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "LANGUAGE", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question_spider": "List the language used least number of TV Channel. List language and number of TV Channel.", + "question": "列出使用语言数量最少的电视频道所使用的语言和这些电视频道的数量。", + "question_cspider": "列出使用语言数量最少的电视频道所使用的语言和这些电视频道的数量。", + "bleu_from_cspider_question": "BLEU = 51.46, 82.8/64.3/51.9/38.5 (BP=0.902, ratio=0.906, hyp_len=29, ref_len=32)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "LANGUAGE", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question_spider": "What are the languages used by the least number of TV Channels and how many channels use it?", + "question": "电视频道使用的最少的语言是什么?有多少频道使用它?", + "question_cspider": "电视频道使用的最少的语言是什么?有多少频道使用它?", + "bleu_from_cspider_question": "BLEU = 60.53, 95.7/77.3/57.1/45.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "LANGUAGE" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "language" + ], + "question_spider": "List each language and the number of TV Channels using it.", + "question": "列出每种语言和使用它的电视频道的数量。", + "question_cspider": "列出每种语言和使用它的电视频道的数量。", + "bleu_from_cspider_question": "BLEU = 48.09, 76.2/60.0/42.1/27.8 (BP=1.000, ratio=1.105, hyp_len=21, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "LANGUAGE" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "language" + ], + "question_spider": "For each language, list the number of TV Channels that use it.", + "question": "对于每种语言,列出使用它的电视频道的数量。", + "question_cspider": "对于每种语言,列出使用它的电视频道的数量。", + "bleu_from_cspider_question": "BLEU = 67.74, 85.7/70.0/63.2/55.6 (BP=1.000, ratio=1.000, hyp_len=21, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";", + "query_toks": [ + "SELECT", + "T1.series_name", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "Cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.Title", + "=", + "``", + "The", + "Rise", + "of", + "the", + "Blue", + "Beetle", + "!", + "``", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "title", + "=", + "value" + ], + "question_spider": "What is the TV Channel that shows the cartoon \"The Rise of the Blue Beetle!\"? List the TV Channel's series name.", + "question": "播放卡通“黑猫警长”的电视频道是什么?列出电视频道的连续剧的名称。", + "question_cspider": "播放卡通“黑猫警长”的电视频道是什么?列出电视频道的连续剧的名称。", + "bleu_from_cspider_question": "BLEU = 53.39, 68.6/55.9/48.5/43.8 (BP=1.000, ratio=1.061, hyp_len=35, ref_len=33)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"The Rise of the Blue Beetle!\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";", + "query_toks": [ + "SELECT", + "T1.series_name", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "Cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.Title", + "=", + "``", + "The", + "Rise", + "of", + "the", + "Blue", + "Beetle", + "!", + "``", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "title", + "=", + "value" + ], + "question_spider": "What is the series name of the TV Channel that shows the cartoon \"The Rise of the Blue Beetle\"?", + "question": "放映卡通片“黑猫警长”的电视频道播放的连续剧名称是什么?", + "question_cspider": "放映卡通片“黑猫警长”的电视频道播放的连续剧名称是什么?", + "bleu_from_cspider_question": "BLEU = 37.63, 63.0/46.2/32.0/25.0 (BP=0.964, ratio=0.964, hyp_len=27, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"The Rise of the Blue Beetle!\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "T2.Title", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "Cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T1.series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "title", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t1", + ".", + "series_name", + "=", + "value" + ], + "question_spider": "List the title of all Cartoons showed on TV Channel with series name \"Sky Radio\".", + "question": "列出播放连续剧“潜伏”的电视频道播出的卡通片名称。", + "question_cspider": "列出播放连续剧“潜伏”的电视频道播出的卡通片名称。", + "bleu_from_cspider_question": "BLEU = 22.00, 57.1/33.3/15.4/8.0 (BP=1.000, ratio=1.120, hyp_len=28, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "T2.Title", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "Cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T1.series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "title", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t1", + ".", + "series_name", + "=", + "value" + ], + "question_spider": "What is the title of all the cartools that are on the TV Channel with the series name \"Sky Radio\"?", + "question": "播放连续剧“潜伏”的电视频道播出的卡通片标题是什么?", + "question_cspider": "播放连续剧“潜伏”的电视频道播出的卡通片标题是什么?", + "bleu_from_cspider_question": "BLEU = 22.83, 41.2/27.3/18.8/12.9 (BP=1.000, ratio=1.308, hyp_len=34, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Episode FROM TV_series ORDER BY rating", + "query_toks": [ + "SELECT", + "Episode", + "FROM", + "TV_series", + "ORDER", + "BY", + "rating" + ], + "query_toks_no_value": [ + "select", + "episode", + "from", + "tv_series", + "order", + "by", + "rating" + ], + "question_spider": "List the Episode of all TV series sorted by rating.", + "question": "根据收视率升序列出所有电视剧剧集。", + "question_cspider": "根据收视率排序列出所有电视剧剧集。", + "bleu_from_cspider_question": "BLEU = 60.25, 87.5/73.3/57.1/46.2 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Episode FROM TV_series ORDER BY rating", + "query_toks": [ + "SELECT", + "Episode", + "FROM", + "TV_series", + "ORDER", + "BY", + "rating" + ], + "query_toks_no_value": [ + "select", + "episode", + "from", + "tv_series", + "order", + "by", + "rating" + ], + "question_spider": "What are all of the episodes ordered by ratings?", + "question": "按照收视率从低到高排序的所有剧集是什么?", + "question_cspider": "按照收视率排序的所有剧集是什么?", + "bleu_from_cspider_question": "BLEU = 60.66, 85.7/76.9/66.7/54.5 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", + "query_toks": [ + "SELECT", + "Episode", + ",", + "Rating", + "FROM", + "TV_series", + "ORDER", + "BY", + "Rating", + "DESC", + "LIMIT", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "episode", + ",", + "rating", + "from", + "tv_series", + "order", + "by", + "rating", + "desc", + "limit", + "value" + ], + "question_spider": "List top 3 highest Rating TV series. List the TV series's Episode and Rating.", + "question": "列出收视率排名前3位的电视剧。列出电视连续剧的剧集和收视率。", + "question_cspider": "列出收视率排名前3位的电视剧。列出电视连续剧的剧集和收视率。", + "bleu_from_cspider_question": "BLEU = 41.11, 71.0/46.7/34.5/25.0 (BP=1.000, ratio=1.033, hyp_len=31, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", + "query_toks": [ + "SELECT", + "Episode", + ",", + "Rating", + "FROM", + "TV_series", + "ORDER", + "BY", + "Rating", + "DESC", + "LIMIT", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "episode", + ",", + "rating", + "from", + "tv_series", + "order", + "by", + "rating", + "desc", + "limit", + "value" + ], + "question_spider": "What are 3 most highly rated episodes in the TV series table and what were those ratings?", + "question": "在电视连续剧表中收视率最高的3个是什么?收视率是多少?", + "question_cspider": "在电视连续剧表中收视率最高的3个是什么?收视率是多少?", + "bleu_from_cspider_question": "BLEU = 72.54, 85.7/77.8/69.2/60.0 (BP=1.000, ratio=1.037, hyp_len=28, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT max(SHARE) , min(SHARE) FROM TV_series;", + "query_toks": [ + "SELECT", + "max", + "(", + "SHARE", + ")", + ",", + "min", + "(", + "SHARE", + ")", + "FROM", + "TV_series", + ";" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "share", + ")", + ",", + "min", + "(", + "share", + ")", + "from", + "tv_series" + ], + "question_spider": "What is minimum and maximum share of TV series?", + "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=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT max(SHARE) , min(SHARE) FROM TV_series;", + "query_toks": [ + "SELECT", + "max", + "(", + "SHARE", + ")", + ",", + "min", + "(", + "SHARE", + ")", + "FROM", + "TV_series", + ";" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "share", + ")", + ",", + "min", + "(", + "share", + ")", + "from", + "tv_series" + ], + "question_spider": "What is the maximum and minimum share for the TV series?", + "question": "电视连续剧的最大和最小份额是多少?", + "question_cspider": "电视连续剧的最大和最小份额是多少?", + "bleu_from_cspider_question": "BLEU = 66.75, 88.2/75.0/60.0/50.0 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "Air_Date", + "FROM", + "TV_series", + "WHERE", + "Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "air_date", + "from", + "tv_series", + "where", + "episode", + "=", + "value" + ], + "question_spider": "What is the air date of TV series with Episode \"A Love of a Lifetime\"?", + "question": "电视剧的“大宅门”这一集的播出日期是什么时候?", + "question_cspider": "电视剧的“大宅门”这一集的播出日期是什么时候?", + "bleu_from_cspider_question": "BLEU = 21.68, 65.0/31.6/16.7/11.8 (BP=0.861, ratio=0.870, hyp_len=20, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "Air_Date", + "FROM", + "TV_series", + "WHERE", + "Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "air_date", + "from", + "tv_series", + "where", + "episode", + "=", + "value" + ], + "question_spider": "When did the episode \"A Love of a Lifetime\" air?", + "question": "“大宅门”这一集是什么时候播出的?", + "question_cspider": "“大宅门”这一集是什么时候播出的?", + "bleu_from_cspider_question": "BLEU = 0.00, 57.1/16.7/0.0/0.0 (BP=0.240, ratio=0.412, hyp_len=7, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "Weekly_Rank", + "FROM", + "TV_series", + "WHERE", + "Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "weekly_rank", + "from", + "tv_series", + "where", + "episode", + "=", + "value" + ], + "question_spider": "What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"?", + "question": "“一生的爱”这一集的每周排名是多少?", + "question_cspider": "“一生的爱”这一集的每周排名是多少?", + "bleu_from_cspider_question": "BLEU = 52.76, 65.0/57.9/50.0/41.2 (BP=1.000, ratio=1.111, hyp_len=20, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "Weekly_Rank", + "FROM", + "TV_series", + "WHERE", + "Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "weekly_rank", + "from", + "tv_series", + "where", + "episode", + "=", + "value" + ], + "question_spider": "What is the weekly rank for the episode \"A Love of a Lifetime\"?", + "question": "“大宅门”这一集的每周排名是多少?", + "question_cspider": "“大宅门”这一集的每周排名是多少?", + "bleu_from_cspider_question": "BLEU = 46.04, 75.0/46.7/42.9/38.5 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "T1.series_name", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "TV_series", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + "from", + "tv_channel", + "as", + "t1", + "join", + "tv_series", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "episode", + "=", + "value" + ], + "question_spider": "What is the TV Channel of TV series with Episode \"A Love of a Lifetime\"? List the TV Channel's series name.", + "question": "电视连续剧剧集“大宅门”播出的电视频道是什么?列出这个电视频道的连续剧名称。", + "question_cspider": "电视连续剧剧集“大宅门”播出的电视频道是什么?列出这个电视频道的连续剧名称。", + "bleu_from_cspider_question": "BLEU = 47.39, 75.0/64.5/53.3/41.4 (BP=0.829, ratio=0.842, hyp_len=32, ref_len=38)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "T1.series_name", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "TV_series", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + "from", + "tv_channel", + "as", + "t1", + "join", + "tv_series", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "episode", + "=", + "value" + ], + "question_spider": "What is the name of the series that has the episode \"A Love of a Lifetime\"?", + "question": "包含“大宅门”这一集的电视剧叫什么名字?", + "question_cspider": "包含“大宅门”这一集的电视剧所在的电视频道的连续剧的名字是什么?", + "bleu_from_cspider_question": "BLEU = 11.39, 60.0/31.6/16.7/5.9 (BP=0.549, ratio=0.625, hyp_len=20, ref_len=32)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "T2.Episode", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "TV_series", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T1.series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "episode", + "from", + "tv_channel", + "as", + "t1", + "join", + "tv_series", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t1", + ".", + "series_name", + "=", + "value" + ], + "question_spider": "List the Episode of all TV series showed on TV Channel with series name \"Sky Radio\".", + "question": "列出播出电视剧“潜伏”的电视频道所播出的所有电视剧的剧集。", + "question_cspider": "列出播出电视剧“潜伏”的电视频道所播出的所有电视剧的剧集。", + "bleu_from_cspider_question": "BLEU = 30.93, 67.9/48.1/26.9/12.0 (BP=0.965, ratio=0.966, hyp_len=28, ref_len=29)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "T2.Episode", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "TV_series", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T1.series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "episode", + "from", + "tv_channel", + "as", + "t1", + "join", + "tv_series", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t1", + ".", + "series_name", + "=", + "value" + ], + "question_spider": "What is the episode for the TV series named \"Sky Radio\"?", + "question": "播出电视连续剧“潜伏”的电视频道的所有剧集是什么?", + "question_cspider": "播出电视连续剧“潜伏”的电视频道的剧集是什么?", + "bleu_from_cspider_question": "BLEU = 34.56, 70.0/47.4/33.3/23.5 (BP=0.861, ratio=0.870, hyp_len=20, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "Directed_by", + "FROM", + "cartoon", + "GROUP", + "BY", + "Directed_by" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "directed_by", + "from", + "cartoon", + "group", + "by", + "directed_by" + ], + "question_spider": "Find the number of cartoons directed by each of the listed directors.", + "question": "找出每个列出来的导演所导演的卡通作品的数量。", + "question_cspider": "找出每个列出来的导演所导演的卡通作品的数量。", + "bleu_from_cspider_question": "BLEU = 33.26, 82.4/56.2/40.0/21.4 (BP=0.745, ratio=0.773, hyp_len=17, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 21, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "Directed_by", + "FROM", + "cartoon", + "GROUP", + "BY", + "Directed_by" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "directed_by", + "from", + "cartoon", + "group", + "by", + "directed_by" + ], + "question_spider": "How many cartoons did each director create?", + "question": "每个导演创作了多少动画片?", + "question_cspider": "每个导演创作了多少动画片?", + "bleu_from_cspider_question": "BLEU = 51.87, 83.3/54.5/50.0/44.4 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 21, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "select production_code , channel from cartoon order by original_air_date desc limit 1", + "query_toks": [ + "select", + "production_code", + ",", + "channel", + "from", + "cartoon", + "order", + "by", + "original_air_date", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "production_code", + ",", + "channel", + "from", + "cartoon", + "order", + "by", + "original_air_date", + "desc", + "limit", + "value" + ], + "question_spider": "Find the production code and channel of the most recently aired cartoon .", + "question": "找到最近播出的卡通片的制作代码和频道。", + "question_cspider": "找到最近播出的卡通片的制作代码和频道。", + "bleu_from_cspider_question": "BLEU = 47.91, 73.7/55.6/41.2/31.2 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "select production_code , channel from cartoon order by original_air_date desc limit 1", + "query_toks": [ + "select", + "production_code", + ",", + "channel", + "from", + "cartoon", + "order", + "by", + "original_air_date", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "production_code", + ",", + "channel", + "from", + "cartoon", + "order", + "by", + "original_air_date", + "desc", + "limit", + "value" + ], + "question_spider": "What is the produdction code and channel of the most recent cartoon ?", + "question": "最新的动画片的制作代码和频道是什么?", + "question_cspider": "最新的动画片的制作代码和频道是什么?", + "bleu_from_cspider_question": "BLEU = 43.21, 82.4/62.5/40.0/21.4 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", + "query_toks": [ + "SELECT", + "package_option", + ",", + "series_name", + "FROM", + "TV_Channel", + "WHERE", + "hight_definition_TV", + "=", + "``", + "yes", + "''" + ], + "query_toks_no_value": [ + "select", + "package_option", + ",", + "series_name", + "from", + "tv_channel", + "where", + "hight_definition_tv", + "=", + "value" + ], + "question_spider": "Find the package choice and series name of the TV channel that has high definition TV.", + "question": "找到高清晰度电视频道的套餐选择和系列节目名称。", + "question_cspider": "找到高清晰度电视频道的套餐选择和系列节目名称。", + "bleu_from_cspider_question": "BLEU = 37.28, 66.7/47.8/31.8/19.0 (BP=1.000, ratio=1.043, hyp_len=24, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"yes\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", + "query_toks": [ + "SELECT", + "package_option", + ",", + "series_name", + "FROM", + "TV_Channel", + "WHERE", + "hight_definition_TV", + "=", + "``", + "yes", + "''" + ], + "query_toks_no_value": [ + "select", + "package_option", + ",", + "series_name", + "from", + "tv_channel", + "where", + "hight_definition_tv", + "=", + "value" + ], + "question_spider": "What are the package options and the name of the series for the TV Channel that supports high definition TV?", + "question": "支持高清电视的电视频道的套餐选项和系列节目名称是什么?", + "question_cspider": "支持高清电视的电视频道的套餐选项和系列节目名称是什么?", + "bleu_from_cspider_question": "BLEU = 71.53, 92.0/83.3/73.9/63.6 (BP=0.923, ratio=0.926, hyp_len=25, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"yes\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "query_toks": [ + "SELECT", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.written_by", + "=", + "'Todd", + "Casey", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "written_by", + "=", + "value" + ], + "question_spider": "which countries' tv channels are playing some cartoon written by Todd Casey?", + "question": "哪些国家的电视频道在播放“白英”写的漫画?", + "question_cspider": "哪些国家的电视频道在播放“白英”写的漫画?", + "bleu_from_cspider_question": "BLEU = 26.20, 48.3/28.6/22.2/15.4 (BP=1.000, ratio=1.381, hyp_len=29, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Todd Casey\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "query_toks": [ + "SELECT", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.written_by", + "=", + "'Todd", + "Casey", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "written_by", + "=", + "value" + ], + "question_spider": "What are the countries that have cartoons on TV that were written by Todd Casey?", + "question": "在电视上播放“白英”写的漫画的国家有哪些?", + "question_cspider": "在电视上播放“白英”写的漫画的国家有哪些?", + "bleu_from_cspider_question": "BLEU = 0.00, 37.5/12.9/3.3/0.0 (BP=1.000, ratio=1.524, hyp_len=32, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Todd Casey\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "query_toks": [ + "SELECT", + "country", + "FROM", + "TV_Channel", + "EXCEPT", + "SELECT", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.written_by", + "=", + "'Todd", + "Casey", + "'" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "tv_channel", + "except", + "select", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "written_by", + "=", + "value" + ], + "question_spider": "which countries' tv channels are not playing any cartoon written by Todd Casey?", + "question": "哪些国家的电视频道没有播放“白英”写的漫画?", + "question_cspider": "哪些国家的电视频道没有播放“白英”写的漫画?", + "bleu_from_cspider_question": "BLEU = 35.99, 51.6/36.7/31.0/28.6 (BP=1.000, ratio=1.409, hyp_len=31, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Todd Casey\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "tvshow", + "query": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "query_toks": [ + "SELECT", + "country", + "FROM", + "TV_Channel", + "EXCEPT", + "SELECT", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.written_by", + "=", + "'Todd", + "Casey", + "'" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "tv_channel", + "except", + "select", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "written_by", + "=", + "value" + ], + "question_spider": "What are the countries that are not playing cartoons written by Todd Casey?", + "question": "没有播放“白英”写的漫画的国家有哪些?", + "question_cspider": "没有播放“白英”写的漫画的国家有哪些?", + "bleu_from_cspider_question": "BLEU = 0.00, 24.1/7.1/0.0/0.0 (BP=1.000, ratio=1.526, hyp_len=29, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Todd Casey\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", + "query_toks": [ + "SELECT", + "T1.series_name", + ",", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.directed_by", + "=", + "'Michael", + "Chang", + "'", + "INTERSECT", + "SELECT", + "T1.series_name", + ",", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.directed_by", + "=", + "'Ben", + "Jones", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + ",", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "directed_by", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "series_name", + ",", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "directed_by", + "=", + "value" + ], + "question_spider": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?", + "question": "找到正在播放由“黄伟明”和“杨洁”执导的卡通片的电视频道的系列名称和国家。", + "question_cspider": "找到正在播放由“黄伟明”和“杨洁”执导的卡通片的电视频道的系列名称和国家。", + "bleu_from_cspider_question": "BLEU = 47.98, 60.0/48.7/44.7/40.5 (BP=1.000, ratio=1.081, hyp_len=40, ref_len=37)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Michael Chang\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", + "query_toks": [ + "SELECT", + "T1.series_name", + ",", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.directed_by", + "=", + "'Michael", + "Chang", + "'", + "INTERSECT", + "SELECT", + "T1.series_name", + ",", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.directed_by", + "=", + "'Ben", + "Jones", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + ",", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "directed_by", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "series_name", + ",", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "directed_by", + "=", + "value" + ], + "question_spider": "What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang?", + "question": "所有播放由“黄伟明”和“杨洁”导演的卡通片的电视频道的系列名称和国家是什么?", + "question_cspider": "所有播放由“黄伟明”和“杨洁”导演的卡通片的电视频道的系列名称和国家是什么?", + "bleu_from_cspider_question": "BLEU = 21.67, 35.1/24.7/18.1/14.1 (BP=1.000, ratio=1.947, hyp_len=74, ref_len=38)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Michael Chang\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", + "query_toks": [ + "SELECT", + "Pixel_aspect_ratio_PAR", + ",", + "country", + "FROM", + "tv_channel", + "WHERE", + "LANGUAGE", + "!", + "=", + "'English", + "'" + ], + "query_toks_no_value": [ + "select", + "pixel_aspect_ratio_par", + ",", + "country", + "from", + "tv_channel", + "where", + "language", + "!", + "=", + "value" + ], + "question_spider": "find the pixel aspect ratio and nation of the tv channels that do not use English.", + "question": "找出不使用“英语”的电视频道的像素纵横比和国家。", + "question_cspider": "找出不使用“英语”的电视频道的像素纵横比和国家。", + "bleu_from_cspider_question": "BLEU = 45.78, 76.0/54.2/39.1/27.3 (BP=1.000, ratio=1.042, hyp_len=25, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", + "query_toks": [ + "SELECT", + "Pixel_aspect_ratio_PAR", + ",", + "country", + "FROM", + "tv_channel", + "WHERE", + "LANGUAGE", + "!", + "=", + "'English", + "'" + ], + "query_toks_no_value": [ + "select", + "pixel_aspect_ratio_par", + ",", + "country", + "from", + "tv_channel", + "where", + "language", + "!", + "=", + "value" + ], + "question_spider": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?", + "question": "不使用“英语”的所有电视频道的像素宽高比和国家是多少?", + "question_cspider": "不使用“英语”的所有电视频道的像素宽高比和国家是多少?", + "bleu_from_cspider_question": "BLEU = 33.93, 80.8/44.0/25.0/17.4 (BP=0.962, ratio=0.963, hyp_len=26, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", + "query_toks": [ + "SELECT", + "id", + "FROM", + "tv_channel", + "GROUP", + "BY", + "country", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "tv_channel", + "group", + "by", + "country", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "find id of the tv channels that from the countries where have more than two tv channels.", + "question": "有两个以上电视频道的国家的电视频道的ID。", + "question_cspider": "有两个以上电视频道的国家的电视频道的ID。", + "bleu_from_cspider_question": "BLEU = 65.00, 72.4/67.9/63.0/57.7 (BP=1.000, ratio=1.381, hyp_len=29, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + 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": "tvshow", + "query": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", + "query_toks": [ + "SELECT", + "id", + "FROM", + "tv_channel", + "GROUP", + "BY", + "country", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "tv_channel", + "group", + "by", + "country", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "What are the ids of all tv channels that have more than 2 TV channels?", + "question": "拥有超过2个电视频道的所有电视频道的ID是什么?", + "question_cspider": "拥有超过2个电视频道的所有电视频道的ID是什么?", + "bleu_from_cspider_question": "BLEU = 76.60, 100.0/90.5/80.0/68.4 (BP=0.913, ratio=0.917, hyp_len=22, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + 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": "tvshow", + "query": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", + "query_toks": [ + "SELECT", + "id", + "FROM", + "TV_Channel", + "EXCEPT", + "SELECT", + "channel", + "FROM", + "cartoon", + "WHERE", + "directed_by", + "=", + "'Ben", + "Jones", + "'" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "tv_channel", + "except", + "select", + "channel", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value" + ], + "question_spider": "find the id of tv channels that do not play any cartoon directed by Ben Jones.", + "question": "找到没有播放“黄伟明”导演的卡通片的电视频道的ID。", + "question_cspider": "找到没有播放“黄伟明”导演的卡通片的电视频道的ID。", + "bleu_from_cspider_question": "BLEU = 58.65, 75.0/65.2/59.1/57.1 (BP=0.920, ratio=0.923, hyp_len=24, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "tvshow", + "query": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", + "query_toks": [ + "SELECT", + "id", + "FROM", + "TV_Channel", + "EXCEPT", + "SELECT", + "channel", + "FROM", + "cartoon", + "WHERE", + "directed_by", + "=", + "'Ben", + "Jones", + "'" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "tv_channel", + "except", + "select", + "channel", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value" + ], + "question_spider": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?", + "question": "没有播放“黄伟明”导演的卡通片的电视频道id是什么?", + "question_cspider": "没有播放“黄伟明”导演的卡通片的电视频道id是什么?", + "bleu_from_cspider_question": "BLEU = 59.12, 79.2/69.6/59.1/52.4 (BP=0.920, ratio=0.923, hyp_len=24, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "tvshow", + "query": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", + "query_toks": [ + "SELECT", + "package_option", + "FROM", + "TV_Channel", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "channel", + "FROM", + "cartoon", + "WHERE", + "directed_by", + "=", + "'Ben", + "Jones", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "package_option", + "from", + "tv_channel", + "where", + "id", + "not", + "in", + "(", + "select", + "channel", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value", + ")" + ], + "question_spider": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.", + "question": "找到没有播放“黄伟明”导演的任何卡通片的电视频道的套餐选项。", + "question_cspider": "找到没有播放“黄伟明”导演的任何卡通片的电视频道的套餐选项。", + "bleu_from_cspider_question": "BLEU = 42.45, 76.0/62.5/47.8/31.8 (BP=0.819, ratio=0.833, hyp_len=25, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", + "query_toks": [ + "SELECT", + "package_option", + "FROM", + "TV_Channel", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "channel", + "FROM", + "cartoon", + "WHERE", + "directed_by", + "=", + "'Ben", + "Jones", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "package_option", + "from", + "tv_channel", + "where", + "id", + "not", + "in", + "(", + "select", + "channel", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value", + ")" + ], + "question_spider": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?", + "question": "目前没有播放“黄伟明”导演的卡通片的所有电视频道的套餐选择是什么?", + "question_cspider": "目前没有播放“黄伟明”导演的卡通片的所有电视频道的套餐选择是什么?", + "bleu_from_cspider_question": "BLEU = 47.52, 63.9/54.3/44.1/33.3 (BP=1.000, ratio=1.091, hyp_len=36, ref_len=33)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT count(*) FROM poker_player", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "poker_player" + ], + "question_spider": "How many poker players are there?", + "question": "有多少扑克玩家?", + "question_cspider": "有多少扑克玩家?", + "bleu_from_cspider_question": "BLEU = 41.11, 60.0/44.4/37.5/28.6 (BP=1.000, ratio=1.250, hyp_len=10, ref_len=8)", + "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": "poker_player", + "query": "SELECT count(*) FROM poker_player", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "poker_player" + ], + "question_spider": "Count the number of poker players.", + "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=10, ref_len=10)", + "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": "poker_player", + "query": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", + "query_toks": [ + "SELECT", + "Earnings", + "FROM", + "poker_player", + "ORDER", + "BY", + "Earnings", + "DESC" + ], + "query_toks_no_value": [ + "select", + "earnings", + "from", + "poker_player", + "order", + "by", + "earnings", + "desc" + ], + "question_spider": "List the earnings of poker players in descending order.", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", + "query_toks": [ + "SELECT", + "Earnings", + "FROM", + "poker_player", + "ORDER", + "BY", + "Earnings", + "DESC" + ], + "query_toks_no_value": [ + "select", + "earnings", + "from", + "poker_player", + "order", + "by", + "earnings", + "desc" + ], + "question_spider": "What are the earnings of poker players, ordered descending by value?", + "question": "按价值降序排序的扑克玩家的收入。", + "question_cspider": "按价值降序排序的扑克玩家的收入是什么?", + "bleu_from_cspider_question": "BLEU = 48.11, 82.4/62.5/46.7/35.7 (BP=0.889, ratio=0.895, hyp_len=17, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Final_Table_Made , Best_Finish FROM poker_player", + "query_toks": [ + "SELECT", + "Final_Table_Made", + ",", + "Best_Finish", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "final_table_made", + ",", + "best_finish", + "from", + "poker_player" + ], + "question_spider": "List the final tables made and the best finishes of poker players.", + "question": "列出决赛牌桌和扑克玩家的最好成绩。", + "question_cspider": "列出决赛牌桌和扑克玩家的最佳表现。", + "bleu_from_cspider_question": "BLEU = 36.17, 75.0/53.3/35.7/15.4 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Final_Table_Made , Best_Finish FROM poker_player", + "query_toks": [ + "SELECT", + "Final_Table_Made", + ",", + "Best_Finish", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "final_table_made", + ",", + "best_finish", + "from", + "poker_player" + ], + "question_spider": "What are the final tables made and best finishes for all poker players?", + "question": "所有扑克玩家的决赛牌桌和最佳表现是什么?", + "question_cspider": "所有扑克玩家的决赛牌桌和最佳表现是什么?", + "bleu_from_cspider_question": "BLEU = 29.62, 55.6/34.6/24.0/16.7 (BP=1.000, ratio=1.350, hyp_len=27, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT avg(Earnings) FROM poker_player", + "query_toks": [ + "SELECT", + "avg", + "(", + "Earnings", + ")", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "earnings", + ")", + "from", + "poker_player" + ], + "question_spider": "What is the average earnings of poker players?", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT avg(Earnings) FROM poker_player", + "query_toks": [ + "SELECT", + "avg", + "(", + "Earnings", + ")", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "earnings", + ")", + "from", + "poker_player" + ], + "question_spider": "Return the average earnings across all poker players.", + "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=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Money_Rank", + "FROM", + "poker_player", + "ORDER", + "BY", + "Earnings", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "money_rank", + "from", + "poker_player", + "order", + "by", + "earnings", + "desc", + "limit", + "value" + ], + "question_spider": "What is the money rank of the poker player with the highest earnings?", + "question": "收入最高的扑克玩家的财富级别是多少?", + "question_cspider": "收入最高的扑克玩家的财富级别是多少?", + "bleu_from_cspider_question": "BLEU = 66.54, 83.3/70.6/62.5/53.3 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Money_Rank", + "FROM", + "poker_player", + "ORDER", + "BY", + "Earnings", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "money_rank", + "from", + "poker_player", + "order", + "by", + "earnings", + "desc", + "limit", + "value" + ], + "question_spider": "Return the money rank of the player with the greatest earnings.", + "question": "返回收入最高的玩家的财富级别。", + "question_cspider": "返回收入最高的玩家的财富级别。", + "bleu_from_cspider_question": "BLEU = 42.31, 66.7/50.0/38.5/25.0 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", + "query_toks": [ + "SELECT", + "max", + "(", + "Final_Table_Made", + ")", + "FROM", + "poker_player", + "WHERE", + "Earnings", + "<", + "200000" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "final_table_made", + ")", + "from", + "poker_player", + "where", + "earnings", + "<", + "value" + ], + "question_spider": "What is the maximum number of final tables made among poker players with earnings less than 200000?", + "question": "在收入少于200000的扑克玩家中,决赛牌桌的最大数量是多少?", + "question_cspider": "在收入少于200000的扑克玩家中,决赛牌桌的最大数量是多少?", + "bleu_from_cspider_question": "BLEU = 41.86, 74.1/50.0/40.0/37.5 (BP=0.862, ratio=0.871, hyp_len=27, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 200000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", + "query_toks": [ + "SELECT", + "max", + "(", + "Final_Table_Made", + ")", + "FROM", + "poker_player", + "WHERE", + "Earnings", + "<", + "200000" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "final_table_made", + ")", + "from", + "poker_player", + "where", + "earnings", + "<", + "value" + ], + "question_spider": "Return the maximum final tables made across all poker players who have earnings below 200000.", + "question": "返回所有收入低于200000的扑克玩家的决赛牌桌最大值。", + "question_cspider": "返回所有收入低于200000的扑克玩家的决赛牌桌。", + "bleu_from_cspider_question": "BLEU = 73.94, 85.7/74.1/69.2/68.0 (BP=1.000, ratio=1.120, hyp_len=28, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 200000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id" + ], + "question_spider": "What are the names of poker players?", + "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=11, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id" + ], + "question_spider": "Return the names of all the poker players.", + "question": "返回所有扑克玩家的名字。", + "question_cspider": "返回所有扑克玩家的名字。", + "bleu_from_cspider_question": "BLEU = 74.68, 91.7/72.7/70.0/66.7 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "WHERE", + "T2.Earnings", + ">", + "300000" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "where", + "t2", + ".", + "earnings", + ">", + "value" + ], + "question_spider": "What are the names of poker players whose earnings is higher than 300000?", + "question": "收入在300000以上的扑克玩家的名字是什么?", + "question_cspider": "收入在300000以上的扑克玩家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 72.17, 90.9/81.0/70.0/63.2 (BP=0.956, ratio=0.957, hyp_len=22, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 300000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "WHERE", + "T2.Earnings", + ">", + "300000" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "where", + "t2", + ".", + "earnings", + ">", + "value" + ], + "question_spider": "Give the names of poker players who have earnings above 300000.", + "question": "给我收入在300000以上的扑克玩家的名字。", + "question_cspider": "给我收入在300000以上的扑克玩家的名字。", + "bleu_from_cspider_question": "BLEU = 61.55, 85.7/70.0/57.9/50.0 (BP=0.953, ratio=0.955, hyp_len=21, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 300000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Final_Table_Made" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "final_table_made" + ], + "question_spider": "List the names of poker players ordered by the final tables made in ascending order.", + "question": "列出按升序排列的决赛牌桌的扑克玩家的姓名。", + "question_cspider": "列出按升序排列的决赛牌桌的扑克玩家的姓名。", + "bleu_from_cspider_question": "BLEU = 44.70, 94.4/70.6/43.8/26.7 (BP=0.846, ratio=0.857, hyp_len=18, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Final_Table_Made" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "final_table_made" + ], + "question_spider": "What are the names of poker players, ordered ascending by the number of final tables they have made?", + "question": "按照所在的决赛牌桌的数量升序排列的扑克玩家的姓名是什么?", + "question_cspider": "按照所在的决赛牌桌的数量升序排列的扑克玩家的姓名是什么?", + "bleu_from_cspider_question": "BLEU = 28.26, 67.9/40.7/19.2/12.0 (BP=1.000, ratio=1.000, hyp_len=28, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Birth_Date", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Earnings", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "birth_date", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "earnings", + "asc", + "limit", + "value" + ], + "question_spider": "What is the birth date of the poker player with the lowest earnings?", + "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=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Birth_Date", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Earnings", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "birth_date", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "earnings", + "asc", + "limit", + "value" + ], + "question_spider": "Return the birth date of the poker player with the lowest earnings.", + "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=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Money_Rank", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T1.Height", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "money_rank", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t1", + ".", + "height", + "desc", + "limit", + "value" + ], + "question_spider": "What is the money rank of the tallest poker player?", + "question": "身高最高的扑克玩家的财富等级是多少?", + "question_cspider": "身高最高的扑克玩家的财富等级是多少?", + "bleu_from_cspider_question": "BLEU = 65.73, 87.5/80.0/71.4/61.5 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Money_Rank", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T1.Height", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "money_rank", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t1", + ".", + "height", + "desc", + "limit", + "value" + ], + "question_spider": "Return the money rank of the poker player with the greatest height.", + "question": "返回身高最高的扑克玩家的财富等级。", + "question_cspider": "返回身高最高的扑克玩家的财富等级。", + "bleu_from_cspider_question": "BLEU = 42.82, 70.6/50.0/33.3/28.6 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", + "query_toks": [ + "SELECT", + "avg", + "(", + "T2.Earnings", + ")", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "WHERE", + "T1.Height", + ">", + "200" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "t2", + ".", + "earnings", + ")", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "where", + "t1", + ".", + "height", + ">", + "value" + ], + "question_spider": "What is the average earnings of poker players with height higher than 200?", + "question": "身高在200以上的扑克玩家的平均收入是多少?", + "question_cspider": "身高在200以上的扑克玩家的平均收入是��少?", + "bleu_from_cspider_question": "BLEU = 70.72, 90.5/80.0/68.4/61.1 (BP=0.953, ratio=0.955, hyp_len=21, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + 200.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", + "query_toks": [ + "SELECT", + "avg", + "(", + "T2.Earnings", + ")", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "WHERE", + "T1.Height", + ">", + "200" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "t2", + ".", + "earnings", + ")", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "where", + "t1", + ".", + "height", + ">", + "value" + ], + "question_spider": "Give average earnings of poker players who are taller than 200.", + "question": "给出高于200的扑克玩家的平均收入。", + "question_cspider": "给出高于200的扑克玩家的平均收入。", + "bleu_from_cspider_question": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + 200.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Earnings", + "DESC" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "earnings", + "desc" + ], + "question_spider": "What are the names of poker players in descending order of earnings?", + "question": "按照收入降序排列���扑克玩家的名字是什么?", + "question_cspider": "按照收入降序排列的扑克玩家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 46.60, 100.0/66.7/50.0/38.5 (BP=0.779, ratio=0.800, hyp_len=16, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Earnings", + "DESC" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "earnings", + "desc" + ], + "question_spider": "Return the names of poker players sorted by their earnings descending.", + "question": "返回按照收入降序排列的扑克玩家的名字。", + "question_cspider": "返回按照收入降序排列的扑克玩家的名字。", + "bleu_from_cspider_question": "BLEU = 37.43, 83.3/47.1/31.2/20.0 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality", + "query_toks": [ + "SELECT", + "Nationality", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "people", + "GROUP", + "BY", + "Nationality" + ], + "query_toks_no_value": [ + "select", + "nationality", + ",", + "count", + "(", + "*", + ")", + "from", + "people", + "group", + "by", + "nationality" + ], + "question_spider": "What are different nationalities of people and the corresponding number of people from each nation?", + "question": "有哪些不同的民族,来自每个民族的相应人数是多少?", + "question_cspider": "有哪些不同的民族,来自每个民族的相应人数是多少?", + "bleu_from_cspider_question": "BLEU = 41.38, 70.8/47.8/36.4/23.8 (BP=1.000, ratio=1.000, hyp_len=24, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality", + "query_toks": [ + "SELECT", + "Nationality", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "people", + "GROUP", + "BY", + "Nationality" + ], + "query_toks_no_value": [ + "select", + "nationality", + ",", + "count", + "(", + "*", + ")", + "from", + "people", + "group", + "by", + "nationality" + ], + "question_spider": "How many people are there of each nationality?", + "question": "每个民族有多少人?", + "question_cspider": "每个民族有多少人?", + "bleu_from_cspider_question": "BLEU = 51.33, 77.8/62.5/42.9/33.3 (BP=1.000, ratio=1.000, hyp_len=9, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Nationality", + "FROM", + "people", + "GROUP", + "BY", + "Nationality", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "nationality", + "from", + "people", + "group", + "by", + "nationality", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the most common nationality of people?", + "question": "最常见的国籍是什么?", + "question_cspider": "最常见的国籍是什么?", + "bleu_from_cspider_question": "BLEU = 53.32, 66.7/54.5/50.0/44.4 (BP=1.000, ratio=1.200, hyp_len=12, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Nationality", + "FROM", + "people", + "GROUP", + "BY", + "Nationality", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "nationality", + "from", + "people", + "group", + "by", + "nationality", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Give the nationality that is most common across all people.", + "question": "给我在所有人中最常见的国籍。", + "question_cspider": "给我在所有人中最常见的国籍。", + "bleu_from_cspider_question": "BLEU = 18.11, 55.6/37.5/28.6/16.7 (BP=0.574, ratio=0.643, hyp_len=9, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "Nationality", + "FROM", + "people", + "GROUP", + "BY", + "Nationality", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "nationality", + "from", + "people", + "group", + "by", + "nationality", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What are the nationalities that are shared by at least two people?", + "question": "至少有两个人共同所属的国籍有哪些?", + "question_cspider": "至少有两个人共同所属的名族有哪些?", + "bleu_from_cspider_question": "BLEU = 19.45, 75.0/45.5/20.0/11.1 (BP=0.659, ratio=0.706, hyp_len=12, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "Nationality", + "FROM", + "people", + "GROUP", + "BY", + "Nationality", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "nationality", + "from", + "people", + "group", + "by", + "nationality", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Return the nationalities for which there are two or more people.", + "question": "返回有两个或更多人所属的国籍。", + "question_cspider": "返回有两个或更多人所属的国籍。", + "bleu_from_cspider_question": "BLEU = 50.39, 73.3/57.1/46.2/33.3 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC", + "query_toks": [ + "SELECT", + "Name", + ",", + "Birth_Date", + "FROM", + "people", + "ORDER", + "BY", + "Name", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "birth_date", + "from", + "people", + "order", + "by", + "name", + "asc" + ], + "question_spider": "List the names and birth dates of people in ascending alphabetical order of name.", + "question": "按姓名的升序列出所有人的姓名和生日。", + "question_cspider": "按姓名的升序列出所有人的姓名和生日。", + "bleu_from_cspider_question": "BLEU = 31.55, 72.2/41.2/25.0/13.3 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC", + "query_toks": [ + "SELECT", + "Name", + ",", + "Birth_Date", + "FROM", + "people", + "ORDER", + "BY", + "Name", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "birth_date", + "from", + "people", + "order", + "by", + "name", + "asc" + ], + "question_spider": "What are the names and birth dates of people, ordered by their names in alphabetical order?", + "question": "按照名字的字母顺序排列,所有人的姓名和生日是什么?", + "question_cspider": "按照名字的字母顺序排列,所有人的姓名和生日是什么?", + "bleu_from_cspider_question": "BLEU = 38.97, 80.0/41.7/30.4/22.7 (BP=1.000, ratio=1.000, hyp_len=25, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name FROM people WHERE Nationality != \"Russia\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "people", + "WHERE", + "Nationality", + "!", + "=", + "``", + "Russia", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "people", + "where", + "nationality", + "!", + "=", + "value" + ], + "question_spider": "Show names of people whose nationality is not \"Russia\".", + "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=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"Russia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name FROM people WHERE Nationality != \"Russia\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "people", + "WHERE", + "Nationality", + "!", + "=", + "``", + "Russia", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "people", + "where", + "nationality", + "!", + "=", + "value" + ], + "question_spider": "What are the names of people who are not from Russia?", + "question": "不是来自“俄罗斯”的人的名字是什么?", + "question_cspider": "不是来自“俄罗斯”的人的名字是什么?", + "bleu_from_cspider_question": "BLEU = 44.57, 91.7/81.8/70.0/55.6 (BP=0.607, ratio=0.667, hyp_len=12, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"Russia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "people", + "WHERE", + "People_ID", + "NOT", + "IN", + "(", + "SELECT", + "People_ID", + "FROM", + "poker_player", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "people", + "where", + "people_id", + "not", + "in", + "(", + "select", + "people_id", + "from", + "poker_player", + ")" + ], + "question_spider": "List the names of people that are not poker players.", + "question": "列出所有非扑克玩家的名字。", + "question_cspider": "列出不是扑克玩家的人的名字。", + "bleu_from_cspider_question": "BLEU = 79.01, 92.9/76.9/75.0/72.7 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + 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": "poker_player", + "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "people", + "WHERE", + "People_ID", + "NOT", + "IN", + "(", + "SELECT", + "People_ID", + "FROM", + "poker_player", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "people", + "where", + "people_id", + "not", + "in", + "(", + "select", + "people_id", + "from", + "poker_player", + ")" + ], + "question_spider": "What are the names of people who do not play poker?", + "question": "不玩扑克的人叫什么名字?", + "question_cspider": "不玩扑克的人的名字是什么?", + "bleu_from_cspider_question": "BLEU = 48.59, 91.7/63.6/40.0/33.3 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + 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": "poker_player", + "query": "SELECT count(DISTINCT Nationality) FROM people", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "Nationality", + ")", + "FROM", + "people" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "nationality", + ")", + "from", + "people" + ], + "question_spider": "How many distinct nationalities are there?", + "question": "有多少个不同的民族?", + "question_cspider": "有多少个不同的民族?", + "bleu_from_cspider_question": "BLEU = 66.06, 80.0/66.7/62.5/57.1 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 8, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT count(DISTINCT Nationality) FROM people", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "Nationality", + ")", + "FROM", + "people" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "nationality", + ")", + "from", + "people" + ], + "question_spider": "Count the number of different nationalities.", + "question": "统计不同民族的数量。", + "question_cspider": "统计不同民族的数量。", + "bleu_from_cspider_question": "BLEU = 0.00, 60.0/11.1/0.0/0.0 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 8, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT count(*) FROM area_code_state", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "area_code_state" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "area_code_state" + ], + "question_spider": "How many states are there?", + "question": "有多少州?", + "question_cspider": "有多少州?", + "bleu_from_cspider_question": "BLEU = 0.00, 83.3/60.0/25.0/0.0 (BP=1.000, ratio=1.200, hyp_len=6, ref_len=5)", + "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": "voter_1", + "query": "SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC", + "query_toks": [ + "SELECT", + "contestant_number", + ",", + "contestant_name", + "FROM", + "contestants", + "ORDER", + "BY", + "contestant_name", + "DESC" + ], + "query_toks_no_value": [ + "select", + "contestant_number", + ",", + "contestant_name", + "from", + "contestants", + "order", + "by", + "contestant_name", + "desc" + ], + "question_spider": "List the contestant numbers and names, ordered by contestant name descending.", + "question": "按参赛者的姓名降序排列,列出参赛选手的编号和姓名。", + "question_cspider": "按参赛者的姓名降序排列,列出参赛选手的编号和姓名。", + "bleu_from_cspider_question": "BLEU = 53.28, 91.3/68.2/52.4/35.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT vote_id , phone_number , state FROM votes", + "query_toks": [ + "SELECT", + "vote_id", + ",", + "phone_number", + ",", + "state", + "FROM", + "votes" + ], + "query_toks_no_value": [ + "select", + "vote_id", + ",", + "phone_number", + ",", + "state", + "from", + "votes" + ], + "question_spider": "List the vote ids, phone numbers and states of all votes.", + "question": "列出投票ID、电话号码和所有参加投票的州。", + "question_cspider": "列出投票ID、电话号码和所有投票的州。", + "bleu_from_cspider_question": "BLEU = 51.47, 85.0/63.2/44.4/29.4 (BP=1.000, ratio=1.053, hyp_len=20, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT max(area_code) , min(area_code) FROM area_code_state", + "query_toks": [ + "SELECT", + "max", + "(", + "area_code", + ")", + ",", + "min", + "(", + "area_code", + ")", + "FROM", + "area_code_state" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "area_code", + ")", + ",", + "min", + "(", + "area_code", + ")", + "from", + "area_code_state" + ], + "question_spider": "What are the maximum and minimum values of area codes?", + "question": "区域代码的最大值和最小值是多少?", + "question_cspider": "区域代码的最大值和最小值是多少?", + "bleu_from_cspider_question": "BLEU = 74.16, 92.9/84.6/83.3/81.8 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT max(created) FROM votes WHERE state = 'CA'", + "query_toks": [ + "SELECT", + "max", + "(", + "created", + ")", + "FROM", + "votes", + "WHERE", + "state", + "=", + "'CA", + "'" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "created", + ")", + "from", + "votes", + "where", + "state", + "=", + "value" + ], + "question_spider": "What is last date created of votes from the state 'CA'?", + "question": "浙江省最后的投票创建日期是什么时候?", + "question_cspider": "“浙江”省最后的投票创建日期是什么时候?", + "bleu_from_cspider_question": "BLEU = 38.05, 83.3/47.1/31.2/26.7 (BP=0.895, ratio=0.900, hyp_len=18, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"CA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway'", + "query_toks": [ + "SELECT", + "contestant_name", + "FROM", + "contestants", + "WHERE", + "contestant_name", + "!", + "=", + "'Jessie", + "Alloway", + "'" + ], + "query_toks_no_value": [ + "select", + "contestant_name", + "from", + "contestants", + "where", + "contestant_name", + "!", + "=", + "value" + ], + "question_spider": "What are the names of the contestants whose names are not 'Jessie Alloway'", + "question": "那些名字不是“李红”的参赛者的名字是什么?", + "question_cspider": "那些名字不是“李红”的参赛者的名字是什么?", + "bleu_from_cspider_question": "BLEU = 42.26, 51.9/46.2/40.0/33.3 (BP=1.000, ratio=1.286, hyp_len=27, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Jessie Alloway\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT DISTINCT state , created FROM votes", + "query_toks": [ + "SELECT", + "DISTINCT", + "state", + ",", + "created", + "FROM", + "votes" + ], + "query_toks_no_value": [ + "select", + "distinct", + "state", + ",", + "created", + "from", + "votes" + ], + "question_spider": "What are the distinct states and create time of all votes?", + "question": "不同的州和投票的开始时间是什么?", + "question_cspider": "不同的州和投票的开始时间是什么?", + "bleu_from_cspider_question": "BLEU = 24.69, 72.2/41.2/18.8/6.7 (BP=1.000, ratio=1.125, hyp_len=18, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.contestant_number", + ",", + "T1.contestant_name", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "GROUP", + "BY", + "T1.contestant_number", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "contestant_number", + ",", + "t1", + ".", + "contestant_name", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "group", + "by", + "t1", + ".", + "contestant_number", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What are the contestant numbers and names of the contestants who had at least two votes?", + "question": "至少有两张选票的竞选者号码和竞选者名字是什么?", + "question_cspider": "至少有两张选票的参赛者号码和参赛者名字是什么?", + "bleu_from_cspider_question": "BLEU = 29.70, 73.7/44.4/29.4/18.8 (BP=0.810, ratio=0.826, hyp_len=19, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.contestant_number", + ",", + "T1.contestant_name", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "GROUP", + "BY", + "T1.contestant_number", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "contestant_number", + ",", + "t1", + ".", + "contestant_name", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "group", + "by", + "t1", + ".", + "contestant_number", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question_spider": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?", + "question": "在所有得票的竞选者中,得票最少的竞选者的号码和名字是什么?", + "question_cspider": "在所有得票的参赛者中,得票最少的参赛者的号码和名字是什么?", + "bleu_from_cspider_question": "BLEU = 40.18, 78.1/48.4/33.3/20.7 (BP=1.000, ratio=1.103, hyp_len=32, ref_len=29)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "votes", + "WHERE", + "state", + "=", + "'NY", + "'", + "OR", + "state", + "=", + "'CA", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "votes", + "where", + "state", + "=", + "value", + "or", + "state", + "=", + "value" + ], + "question_spider": "What are the number of votes from state 'NY' or 'CA'?", + "question": "来自“江苏”州或“浙江”州的票数是多少?", + "question_cspider": "来自“江苏”州或“浙江”州的票数是多少?", + "bleu_from_cspider_question": "BLEU = 45.40, 76.5/56.2/46.7/42.9 (BP=0.838, ratio=0.850, hyp_len=17, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"NY\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"CA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "contestants", + "WHERE", + "contestant_number", + "NOT", + "IN", + "(", + "SELECT", + "contestant_number", + "FROM", + "votes", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "contestants", + "where", + "contestant_number", + "not", + "in", + "(", + "select", + "contestant_number", + "from", + "votes", + ")" + ], + "question_spider": "How many contestants did not get voted?", + "question": "有多少竞选者没有被投票?", + "question_cspider": "有多少参赛者没有被投票?", + "bleu_from_cspider_question": "BLEU = 53.11, 75.0/63.6/50.0/33.3 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.area_code", + "FROM", + "area_code_state", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.state", + "=", + "T2.state", + "GROUP", + "BY", + "T1.area_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "area_code", + "from", + "area_code_state", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "state", + "=", + "t2", + ".", + "state", + "group", + "by", + "t1", + ".", + "area_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the area code in which the most voters voted?", + "question": "最多选民投票的区号是多少?", + "question_cspider": "最多选民投票的区号是多少?", + "bleu_from_cspider_question": "BLEU = 56.59, 84.6/66.7/45.5/40.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T2.created , T2.state , T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'", + "query_toks": [ + "SELECT", + "T2.created", + ",", + "T2.state", + ",", + "T2.phone_number", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "WHERE", + "T1.contestant_name", + "=", + "'Tabatha", + "Gehling", + "'" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "created", + ",", + "t2", + ".", + "state", + ",", + "t2", + ".", + "phone_number", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "where", + "t1", + ".", + "contestant_name", + "=", + "value" + ], + "question_spider": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?", + "question": "名字叫“王伟”的选手的选票创建日期、州和电话号码是什么?", + "question_cspider": "名字叫“王伟”的选手的选票创建日期、州和电话号码是什么?", + "bleu_from_cspider_question": "BLEU = 40.81, 54.8/43.9/37.5/30.8 (BP=1.000, ratio=1.500, hyp_len=42, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Tabatha Gehling\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss'", + "query_toks": [ + "SELECT", + "T3.area_code", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "JOIN", + "area_code_state", + "AS", + "T3", + "ON", + "T2.state", + "=", + "T3.state", + "WHERE", + "T1.contestant_name", + "=", + "'Tabatha", + "Gehling", + "'", + "INTERSECT", + "SELECT", + "T3.area_code", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "JOIN", + "area_code_state", + "AS", + "T3", + "ON", + "T2.state", + "=", + "T3.state", + "WHERE", + "T1.contestant_name", + "=", + "'Kelly", + "Clauss", + "'" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "area_code", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "join", + "area_code_state", + "as", + "t3", + "on", + "t2", + ".", + "state", + "=", + "t3", + ".", + "state", + "where", + "t1", + ".", + "contestant_name", + "=", + "value", + "intersect", + "select", + "t3", + ".", + "area_code", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "join", + "area_code_state", + "as", + "t3", + "on", + "t2", + ".", + "state", + "=", + "t3", + ".", + "state", + "where", + "t1", + ".", + "contestant_name", + "=", + "value" + ], + "question_spider": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.", + "question": "列出既投票给选手“王伟”又投票给选手“王芳”的选民的地区代码。", + "question_cspider": "列出既投票给选手“王伟”又投票给选手“王芳”的选民的地区代码。", + "bleu_from_cspider_question": "BLEU = 0.00, 37.8/15.9/4.7/0.0 (BP=1.000, ratio=1.452, hyp_len=45, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Tabatha Gehling\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Kelly Clauss\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "select contestant_name from contestants where contestant_name like \"%al%\"", + "query_toks": [ + "select", + "contestant_name", + "from", + "contestants", + "where", + "contestant_name", + "like", + "\"%al%\"" + ], + "query_toks_no_value": [ + "select", + "contestant_name", + "from", + "contestants", + "where", + "contestant_name", + "like", + "value" + ], + "question_spider": "Return the names of the contestants whose names contain the substring 'Al' .", + "question": "返回名字中包含子字符串“勇”的参赛者的名字。", + "question_cspider": "返回名字中包含子字符串“勇”的参赛者的名字。", + "bleu_from_cspider_question": "BLEU = 44.75, 72.7/52.4/40.0/26.3 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"%al%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE IndepYear > 1950", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "IndepYear", + ">", + "1950" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "indepyear", + ">", + "value" + ], + "question_spider": "What are the names of all the countries that became independent after 1950?", + "question": "1950年后所有独立的国家的名字是什么?", + "question_cspider": "1950年后所有独立的国家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 73.84, 100.0/84.2/66.7/52.9 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1950.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE IndepYear > 1950", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "IndepYear", + ">", + "1950" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "indepyear", + ">", + "value" + ], + "question_spider": "Give the names of the nations that were founded after 1950.", + "question": "说出1950后建立的国家的名字。", + "question_cspider": "说出1950后建立的���家的名字。", + "bleu_from_cspider_question": "BLEU = 39.42, 65.0/47.4/33.3/23.5 (BP=1.000, ratio=1.250, hyp_len=20, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1950.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "=", + "``", + "Republic", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "where", + "governmentform", + "=", + "value" + ], + "question_spider": "How many countries have a republic as their form of government?", + "question": "有多少国家拥有“共和制”政体?", + "question_cspider": "有多少国家拥有“共和制”政体?", + "bleu_from_cspider_question": "BLEU = 0.00, 50.0/23.5/6.2/0.0 (BP=1.000, ratio=1.200, hyp_len=18, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "=", + "``", + "Republic", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "where", + "governmentform", + "=", + "value" + ], + "question_spider": "How many countries have governments that are republics?", + "question": "有多少国家有“共和制”政府?", + "question_cspider": "有多少国家有“共和制”政府?", + "bleu_from_cspider_question": "BLEU = 0.00, 71.4/38.5/8.3/0.0 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Region", + "=", + "``", + "Caribbean", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "region", + "=", + "value" + ], + "question_spider": "What is the total surface area of the countries in the Caribbean region?", + "question": "“加勒比”地区国家的总表面积是多少?", + "question_cspider": "“加勒比”地区国家的总表面积是多少?", + "bleu_from_cspider_question": "BLEU = 78.16, 100.0/93.3/85.7/76.9 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Caribbean\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Region", + "=", + "``", + "Caribbean", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "region", + "=", + "value" + ], + "question_spider": "How much surface area do the countires in the Carribean cover together?", + "question": "在“加勒比”的国家的覆盖面积总计是多少?", + "question_cspider": "在“加勒比”的国家的覆盖面积是多少?", + "bleu_from_cspider_question": "BLEU = 0.00, 80.0/42.9/7.7/0.0 (BP=0.819, ratio=0.833, hyp_len=15, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Caribbean\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", + "query_toks": [ + "SELECT", + "Continent", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Anguilla", + "''" + ], + "query_toks_no_value": [ + "select", + "continent", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question_spider": "Which continent is Anguilla in?", + "question": "“安圭拉”在哪个洲?", + "question_cspider": "“安圭拉”在哪个洲?", + "bleu_from_cspider_question": "BLEU = 53.85, 100.0/85.7/66.7/40.0 (BP=0.779, ratio=0.800, hyp_len=8, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Anguilla\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", + "query_toks": [ + "SELECT", + "Continent", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Anguilla", + "''" + ], + "query_toks_no_value": [ + "select", + "continent", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question_spider": "What is the continent name which Anguilla belongs to?", + "question": "“安圭拉”所在的大陆名称是什么?", + "question_cspider": "“安圭拉”所在的大陆名称是什么?", + "bleu_from_cspider_question": "BLEU = 61.89, 92.9/76.9/66.7/54.5 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Anguilla\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", + "query_toks": [ + "SELECT", + "Region", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "city", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Name", + "=", + "``", + "Kabul", + "''" + ], + "query_toks_no_value": [ + "select", + "region", + "from", + "country", + "as", + "t1", + "join", + "city", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question_spider": "Which region is the city Kabul located in?", + "question": "“温州市”的所在地是哪个地区?", + "question_cspider": "“温州市”的所在地是哪个地区?", + "bleu_from_cspider_question": "BLEU = 25.53, 54.5/40.0/33.3/25.0 (BP=0.695, ratio=0.733, hyp_len=11, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kabul\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", + "query_toks": [ + "SELECT", + "Region", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "city", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Name", + "=", + "``", + "Kabul", + "''" + ], + "query_toks_no_value": [ + "select", + "region", + "from", + "country", + "as", + "t1", + "join", + "city", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question_spider": "What region is Kabul in?", + "question": "“温州市”在哪个地区?", + "question_cspider": "“温州市”在哪个地区?", + "bleu_from_cspider_question": "BLEU = 47.03, 66.7/62.5/57.1/50.0 (BP=0.801, ratio=0.818, hyp_len=9, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kabul\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Aruba", + "''", + "ORDER", + "BY", + "Percentage", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value", + "order", + "by", + "percentage", + "desc", + "limit", + "value" + ], + "question_spider": "Which language is the most popular in Aruba?", + "question": "在“阿鲁巴”哪种语言最受欢迎?", + "question_cspider": "在“阿鲁巴”哪种语言最受欢迎?", + "bleu_from_cspider_question": "BLEU = 50.75, 100.0/75.0/54.5/30.0 (BP=0.857, ratio=0.867, hyp_len=13, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Aruba\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Aruba", + "''", + "ORDER", + "BY", + "Percentage", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value", + "order", + "by", + "percentage", + "desc", + "limit", + "value" + ], + "question_spider": "What language is predominantly spoken in Aruba?", + "question": "“阿鲁巴”主要讲什么语言?", + "question_cspider": "“阿鲁巴”主要讲什么语言?", + "bleu_from_cspider_question": "BLEU = 0.00, 61.5/41.7/18.2/0.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Aruba\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\"", + "query_toks": [ + "SELECT", + "Population", + ",", + "LifeExpectancy", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Brazil", + "''" + ], + "query_toks_no_value": [ + "select", + "population", + ",", + "lifeexpectancy", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question_spider": "What are the population and life expectancies in Brazil?", + "question": "“巴西”的人口和预期寿命是多少?", + "question_cspider": "“巴西”的人口和预期寿命是多少?", + "bleu_from_cspider_question": "BLEU = 77.21, 100.0/92.3/83.3/81.8 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Brazil\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\"", + "query_toks": [ + "SELECT", + "Population", + ",", + "LifeExpectancy", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Brazil", + "''" + ], + "query_toks_no_value": [ + "select", + "population", + ",", + "lifeexpectancy", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question_spider": "Give me Brazil’s population and life expectancies.", + "question": "列举出“巴西”的人口数和预期寿命.", + "question_cspider": "列举出“巴西”的人口数和预期寿命.", + "bleu_from_cspider_question": "BLEU = 31.25, 76.9/58.3/36.4/20.0 (BP=0.735, ratio=0.765, hyp_len=13, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Brazil\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Population , Region FROM country WHERE Name = \"Angola\"", + "query_toks": [ + "SELECT", + "Population", + ",", + "Region", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Angola", + "''" + ], + "query_toks_no_value": [ + "select", + "population", + ",", + "region", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question_spider": "What are the region and population of Angola?", + "question": "“安哥拉”的所在区域和人口是多少?", + "question_cspider": "“安哥拉”的所在区域和人口是多少?", + "bleu_from_cspider_question": "BLEU = 44.50, 92.3/66.7/54.5/40.0 (BP=0.735, ratio=0.765, hyp_len=13, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Angola\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Population , Region FROM country WHERE Name = \"Angola\"", + "query_toks": [ + "SELECT", + "Population", + ",", + "Region", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Angola", + "''" + ], + "query_toks_no_value": [ + "select", + "population", + ",", + "region", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question_spider": "What region does Angola belong to and what is its population?", + "question": "“安哥拉”属于哪个地区,人口是多少?", + "question_cspider": "“安哥拉”属于哪个地区,人口是多少?", + "bleu_from_cspider_question": "BLEU = 60.43, 100.0/85.7/69.2/50.0 (BP=0.819, ratio=0.833, hyp_len=15, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Angola\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Region", + "=", + "``", + "Central", + "Africa", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "region", + "=", + "value" + ], + "question_spider": "What is the average expected life expectancy for countries in the region of Central Africa?", + "question": "非洲中部区域各国的平均预期寿命是多少?", + "question_cspider": "“非洲”中部区域各国的平均预期寿命是多少?", + "bleu_from_cspider_question": "BLEU = 52.12, 88.2/62.5/60.0/57.1 (BP=0.790, ratio=0.810, hyp_len=17, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Central Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Region", + "=", + "``", + "Central", + "Africa", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "region", + "=", + "value" + ], + "question_spider": "How long is the people’s average life expectancy in Central Africa?", + "question": "非洲中部的平均预期寿命是多少?", + "question_cspider": "“非洲”中部的平均预期寿命是多少??", + "bleu_from_cspider_question": "BLEU = 48.60, 70.6/50.0/46.7/42.9 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Central Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "ORDER", + "BY", + "LifeExpectancy", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "order", + "by", + "lifeexpectancy", + "limit", + "value" + ], + "question_spider": "What is the name of country that has the shortest life expectancy in Asia?", + "question": "在“亚洲”预期寿命最短的国家是什么?", + "question_cspider": "在“亚洲”预期寿命最短的国家是什么?", + "bleu_from_cspider_question": "BLEU = 53.41, 82.4/62.5/46.7/42.9 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "ORDER", + "BY", + "LifeExpectancy", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "order", + "by", + "lifeexpectancy", + "limit", + "value" + ], + "question_spider": "Give the name of the country in Asia with the lowest life expectancy.", + "question": "给出最短预期寿命的“亚洲”国家名称。", + "question_cspider": "给出最短预期寿命的“亚洲”国家名称。", + "bleu_from_cspider_question": "BLEU = 26.57, 88.2/50.0/20.0/7.1 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "max", + "(", + "GNP", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "max", + "(", + "gnp", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question_spider": "What is the total population and maximum GNP in Asia?", + "question": "“亚洲”的总人口数和最大GNP是多少?", + "question_cspider": "“亚洲”的总人口数和最大GNP是多少?", + "bleu_from_cspider_question": "BLEU = 33.49, 68.4/50.0/29.4/12.5 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "max", + "(", + "GNP", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "max", + "(", + "gnp", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question_spider": "How many people live in Asia, and what is the largest GNP among them?", + "question": "“亚洲”有多少人,其中最大的GNP是多少?", + "question_cspider": "“亚洲”有多少人,其中最大的GNP是多少?", + "bleu_from_cspider_question": "BLEU = 55.49, 72.7/61.9/50.0/42.1 (BP=1.000, ratio=1.048, hyp_len=22, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + "AND", + "GovernmentForm", + "=", + "``", + "Republic", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "governmentform", + "=", + "value" + ], + "question_spider": "What is the average life expectancy in African countries that are republics?", + "question": "非洲共和制国家的平均预期寿命是多少?", + "question_cspider": "“非洲”“共和制”国家的平均预期寿命是多少?", + "bleu_from_cspider_question": "BLEU = 62.30, 81.0/70.0/57.9/55.6 (BP=0.953, ratio=0.955, hyp_len=21, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + "AND", + "GovernmentForm", + "=", + "``", + "Republic", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "governmentform", + "=", + "value" + ], + "question_spider": "Give the average life expectancy for countries in Africa which are republics?", + "question": "给出非洲共和制国家的平均预期寿命", + "question_cspider": "给出“非洲”“共和制”国家的平均预期寿命", + "bleu_from_cspider_question": "BLEU = 40.08, 75.0/52.6/27.8/23.5 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "OR", + "Continent", + "=", + "``", + "Europe", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "or", + "continent", + "=", + "value" + ], + "question_spider": "What is the total surface area of the continents Asia and Europe?", + "question": "亚洲和欧洲大陆的总表面积是多少?", + "question_cspider": "“亚洲”和“欧洲”大陆的总表面积是多少?", + "bleu_from_cspider_question": "BLEU = 58.41, 100.0/80.0/64.3/61.5 (BP=0.779, ratio=0.800, hyp_len=16, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "OR", + "Continent", + "=", + "``", + "Europe", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "or", + "continent", + "=", + "value" + ], + "question_spider": "Give the total surface area covered by countries in Asia or Europe.", + "question": "给出亚洲或欧洲国家覆盖的总表面积。", + "question_cspider": "给出“亚洲”或“欧洲”国家覆盖的总表面积。", + "bleu_from_cspider_question": "BLEU = 52.85, 100.0/75.0/53.3/50.0 (BP=0.790, ratio=0.810, hyp_len=17, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + "FROM", + "city", + "WHERE", + "District", + "=", + "``", + "Gelderland", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + "from", + "city", + "where", + "district", + "=", + "value" + ], + "question_spider": "How many people live in Gelderland district?", + "question": "“西湖”区有多少人居住?", + "question_cspider": "“西湖”区有多少人居住?", + "bleu_from_cspider_question": "BLEU = 55.94, 61.5/58.3/54.5/50.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Gelderland\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + "FROM", + "city", + "WHERE", + "District", + "=", + "``", + "Gelderland", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + "from", + "city", + "where", + "district", + "=", + "value" + ], + "question_spider": "What is the total population of Gelderland district?", + "question": "“西湖”区的总人口是多少?", + "question_cspider": "“西湖”区的总人口是多少?", + "bleu_from_cspider_question": "BLEU = 64.79, 69.2/66.7/63.6/60.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Gelderland\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "GNP", + ")", + ",", + "sum", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "=", + "``", + "US", + "Territory", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "gnp", + ")", + ",", + "sum", + "(", + "population", + ")", + "from", + "country", + "where", + "governmentform", + "=", + "value" + ], + "question_spider": "What is the average GNP and total population in all nations whose government is US territory?", + "question": "美属国家的平均GNP和总人口是多少?", + "question_cspider": "政府为“美国属地”的国家的平均GNP和总人口是多少?", + "bleu_from_cspider_question": "BLEU = 30.59, 56.2/38.7/23.3/17.2 (BP=1.000, ratio=1.231, hyp_len=32, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ], + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"US Territory\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "GNP", + ")", + ",", + "sum", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "=", + "``", + "US", + "Territory", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "gnp", + ")", + ",", + "sum", + "(", + "population", + ")", + "from", + "country", + "where", + "governmentform", + "=", + "value" + ], + "question_spider": "Give the mean GNP and total population of nations which are considered US territory.", + "question": "给出被认为是“美国属地”的国家的平均GNP和总人口。", + "question_cspider": "给出被认为是“美国属地”的国家的平均GNP和总人口。", + "bleu_from_cspider_question": "BLEU = 41.28, 87.0/59.1/38.1/25.0 (BP=0.878, ratio=0.885, hyp_len=23, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ], + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"US Territory\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "LANGUAGE", + ")", + "FROM", + "countrylanguage" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "language", + ")", + "from", + "countrylanguage" + ], + "question_spider": "How many unique languages are spoken in the world?", + "question": "世界上有多少种不同的语言?", + "question_cspider": "世界上有多少种不同的语言?", + "bleu_from_cspider_question": "BLEU = 29.17, 66.7/45.5/30.0/11.1 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "LANGUAGE", + ")", + "FROM", + "countrylanguage" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "language", + ")", + "from", + "countrylanguage" + ], + "question_spider": "What is the number of distinct languages used around the world?", + "question": "世界上使用的不同语言的数量是多少?", + "question_cspider": "世界上使用的不同语言的数量是多少?", + "bleu_from_cspider_question": "BLEU = 0.00, 76.9/33.3/0.0/0.0 (BP=0.735, ratio=0.765, hyp_len=13, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "GovernmentForm", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "governmentform", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question_spider": "How many type of governments are in Africa?", + "question": "“非洲”有多少种类型政府?", + "question_cspider": "“非洲”有多少种类型政府?", + "bleu_from_cspider_question": "BLEU = 30.85, 100.0/75.0/42.9/16.7 (BP=0.641, ratio=0.692, hyp_len=9, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 19, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "GovernmentForm", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "governmentform", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question_spider": "How many different forms of governments are there in Africa?", + "question": "“非洲”有多少种不同形式的政府?", + "question_cspider": "“非洲”有多少种不同形式的政府?", + "bleu_from_cspider_question": "BLEU = 77.21, 100.0/92.3/83.3/81.8 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 19, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "T2.Language", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Aruba", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "t2", + ".", + "language", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value" + ], + "question_spider": "What is the total number of languages used in Aruba?", + "question": "在“阿鲁巴”使用的语言总数是多少?", + "question_cspider": "在“阿鲁巴”使用的语言总数是多少?", + "bleu_from_cspider_question": "BLEU = 69.97, 87.5/80.0/71.4/61.5 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Aruba\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "T2.Language", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Aruba", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "t2", + ".", + "language", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value" + ], + "question_spider": "How many languages are spoken in Aruba?", + "question": "在“阿鲁巴”说多少种语言?", + "question_cspider": "在“阿鲁巴”说多少种语言?", + "bleu_from_cspider_question": "BLEU = 28.15, 70.0/55.6/37.5/14.3 (BP=0.741, ratio=0.769, hyp_len=10, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Aruba\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Afghanistan", + "''", + "AND", + "IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value", + "and", + "isofficial", + "=", + "value" + ], + "question_spider": "How many official languages does Afghanistan have?", + "question": "“阿富汗”有多少官方语言?", + "question_cspider": "“阿富汗”有多少官方语言?", + "bleu_from_cspider_question": "BLEU = 40.29, 81.8/60.0/44.4/25.0 (BP=0.834, ratio=0.846, hyp_len=11, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Afghanistan\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Afghanistan", + "''", + "AND", + "IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value", + "and", + "isofficial", + "=", + "value" + ], + "question_spider": "How many official languages are spoken in Afghanistan?", + "question": "“阿富汗”有几种官方语言?", + "question_cspider": "“阿富汗”有几种官方语言?", + "bleu_from_cspider_question": "BLEU = 0.00, 66.7/45.5/20.0/0.0 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Afghanistan\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Name", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is name of the country that speaks the largest number of languages?", + "question": "使用语言数量最多的国家的名字是什么?", + "question_cspider": "使用语言数量最多的国家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 46.25, 77.8/58.8/37.5/26.7 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + 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": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Name", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Give the name of the nation that uses the greatest amount of languages.", + "question": "给出使用最多语言数量的国家的名字。", + "question_cspider": "给出使用最多语言数量的国家的名字。", + "bleu_from_cspider_question": "BLEU = 64.56, 93.3/78.6/69.2/58.3 (BP=0.875, ratio=0.882, hyp_len=15, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + 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": "world_1", + "query": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Continent", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Continent", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "continent", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "continent", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which continent has the most diverse languages?", + "question": "哪一个大陆有最多不同种的语言?", + "question_cspider": "哪一个大陆有最多不同种的语言?", + "bleu_from_cspider_question": "BLEU = 0.00, 72.7/30.0/11.1/0.0 (BP=0.695, ratio=0.733, hyp_len=11, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Continent", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Continent", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "continent", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "continent", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which continent speaks the most languages?", + "question": "哪个大陆讲的语言种类最多?", + "question_cspider": "哪个大陆讲的语言种类最多?", + "bleu_from_cspider_question": "BLEU = 0.00, 88.9/37.5/0.0/0.0 (BP=0.641, ratio=0.692, hyp_len=9, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Dutch", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + ")" + ], + "question_spider": "How many countries speak both English and Dutch?", + "question": "有多少国家既讲“英语”又讲“荷兰语”?", + "question_cspider": "有多少国家既讲“英语”又讲“荷兰语”?", + "bleu_from_cspider_question": "BLEU = 28.00, 78.6/53.8/33.3/18.2 (BP=0.700, ratio=0.737, hyp_len=14, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "sql", + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Dutch", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + ")" + ], + "question_spider": "What is the number of nations that use English and Dutch?", + "question": "使用“英语”和“荷兰语”的国家的数量是多少?", + "question_cspider": "使用“英语”和“荷兰语”的国家的数量是多少?", + "bleu_from_cspider_question": "BLEU = 36.72, 100.0/68.8/40.0/21.4 (BP=0.745, ratio=0.773, hyp_len=17, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "sql", + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\"", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "French", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value" + ], + "question_spider": "What are the names of nations speak both English and French?", + "question": "既说“英语”又说“法语”的国家的名字是什么?", + "question_cspider": "既说“英语”又说“法语”的国家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 18.13, 83.3/54.5/30.0/22.2 (BP=0.435, ratio=0.545, hyp_len=12, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"French\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\"", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "French", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value" + ], + "question_spider": "Give the names of nations that speak both English and French.", + "question": "给出既说“英语”又说“法语”的国家的名字。", + "question_cspider": "给出既说“英语”又说“法语”的国家的名字。", + "bleu_from_cspider_question": "BLEU = 0.00, 80.0/35.7/7.7/0.0 (BP=0.670, ratio=0.714, hyp_len=15, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"French\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "French", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question_spider": "What are the names of nations where both English and French are official languages?", + "question": "“英语”和“法语”都是官方语言的国家的名字是什么?", + "question_cspider": "“英语”和“法语”都是官方语言的国家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 35.40, 65.2/40.9/33.3/25.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"French\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "French", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question_spider": "Give the names of countries with English and French as official languages.", + "question": "以“英语”和“法语”为官方语言的国家名称。", + "question_cspider": "以“英语”和“法语”为官方语言的国家名称。", + "bleu_from_cspider_question": "BLEU = 43.94, 77.3/52.4/35.0/26.3 (BP=1.000, ratio=1.048, hyp_len=22, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"French\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "DISTINCT", + "Continent", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Chinese", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "continent", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value" + ], + "question_spider": "What is the number of distinct continents where Chinese is spoken?", + "question": "讲汉语的不同洲的数量是多少?", + "question_cspider": "讲“汉语”的不同洲的数量是多少?", + "bleu_from_cspider_question": "BLEU = 0.00, 83.3/45.5/20.0/0.0 (BP=0.717, ratio=0.750, hyp_len=12, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 10, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Chinese\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "DISTINCT", + "Continent", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Chinese", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "continent", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value" + ], + "question_spider": "How many continents speak Chinese?", + "question": "有多少洲说“汉语”?", + "question_cspider": "有多少洲说“汉语”?", + "bleu_from_cspider_question": "BLEU = 0.00, 60.0/22.2/12.5/0.0 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 10, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Chinese\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Region", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "OR", + "T2.Language", + "=", + "``", + "Dutch", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "region", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "or", + "t2", + ".", + "language", + "=", + "value" + ], + "question_spider": "What are the regions that use English or Dutch?", + "question": "使用“英语”或“荷兰语”的地区是什么?", + "question_cspider": "使用“英语”或“荷兰语”的地区是什么?", + "bleu_from_cspider_question": "BLEU = 0.00, 84.6/41.7/9.1/0.0 (BP=0.630, ratio=0.684, hyp_len=13, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Region", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "OR", + "T2.Language", + "=", + "``", + "Dutch", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "region", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "or", + "t2", + ".", + "language", + "=", + "value" + ], + "question_spider": "Which regions speak Dutch or English?", + "question": "哪个地区讲“荷兰语”或“英语”?", + "question_cspider": "哪个地区讲“荷兰语”或“英语”?", + "bleu_from_cspider_question": "BLEU = 0.00, 83.3/36.4/10.0/0.0 (BP=0.717, ratio=0.750, hyp_len=12, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", + "query_toks": [ + "select", + "t1.name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1.code", + "=", + "t2.countrycode", + "where", + "t2.language", + "=", + "\"english\"", + "and", + "isofficial", + "=", + "\"t\"", + "union", + "select", + "t1.name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1.code", + "=", + "t2.countrycode", + "where", + "t2.language", + "=", + "\"dutch\"", + "and", + "isofficial", + "=", + "\"t\"" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "isofficial", + "=", + "value", + "union", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "isofficial", + "=", + "value" + ], + "question_spider": "What are the countries where either English or Dutch is the official language ?", + "question": "“英语”或“荷兰语”是官方语言的国家是什么?", + "question_cspider": "“英语”或“荷兰语”是官方语言的国家是什么?", + "bleu_from_cspider_question": "BLEU = 33.71, 81.0/55.0/31.6/11.1 (BP=0.953, ratio=0.955, hyp_len=21, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"english\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"t\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"dutch\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"t\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\" AND IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "*", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "IsOfficial", + "=", + "``", + "T", + "''", + "UNION", + "SELECT", + "*", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Dutch", + "''", + "AND", + "IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "*", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "isofficial", + "=", + "value", + "union", + "select", + "*", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "isofficial", + "=", + "value" + ], + "question_spider": "Which countries have either English or Dutch as an official language?", + "question": "哪些国家以“英语”或“荷兰语”作为官方语言?", + "question_cspider": "哪些国家以“英语”或“荷兰语”作为官方语言?", + "bleu_from_cspider_question": "BLEU = 46.55, 81.0/60.0/42.1/27.8 (BP=0.953, ratio=0.955, hyp_len=21, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Continent", + "=", + "``", + "Asia", + "''", + "GROUP", + "BY", + "T2.Language", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "continent", + "=", + "value", + "group", + "by", + "t2", + ".", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which language is the most popular on the Asian continent?", + "question": "“亚洲”大陆最流行哪种语言?", + "question_cspider": "“亚洲”大陆最流行哪种语言?", + "bleu_from_cspider_question": "BLEU = 29.42, 71.4/46.2/25.0/9.1 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Continent", + "=", + "``", + "Asia", + "''", + "GROUP", + "BY", + "T2.Language", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "continent", + "=", + "value", + "group", + "by", + "t2", + ".", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the language that is used by the largest number of Asian nations?", + "question": "“亚洲”国家中使用最多的语言是什么?", + "question_cspider": "“亚洲”国家中使用最多的语言是什么?", + "bleu_from_cspider_question": "BLEU = 0.00, 100.0/53.8/8.3/0.0 (BP=0.751, ratio=0.778, hyp_len=14, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.GovernmentForm", + "=", + "``", + "Republic", + "''", + "GROUP", + "BY", + "T2.Language", + "HAVING", + "COUNT", + "(", + "*", + ")", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "governmentform", + "=", + "value", + "group", + "by", + "t2", + ".", + "language", + "having", + "count", + "(", + "*", + ")", + "=", + "value" + ], + "question_spider": "Which languages are spoken by only one country in republic governments?", + "question": "只有一个“共和制”国家讲的语言是哪种语言?", + "question_cspider": "只有一个“共和制”国家讲的语言是哪种语言?", + "bleu_from_cspider_question": "BLEU = 33.36, 68.4/50.0/29.4/18.8 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [ + [ + false, + 2, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.GovernmentForm", + "=", + "``", + "Republic", + "''", + "GROUP", + "BY", + "T2.Language", + "HAVING", + "COUNT", + "(", + "*", + ")", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "governmentform", + "=", + "value", + "group", + "by", + "t2", + ".", + "language", + "having", + "count", + "(", + "*", + ")", + "=", + "value" + ], + "question_spider": "What languages are only used by a single country with a republic government?", + "question": "哪一种语言只由一个“共和制”政府的国家使用?", + "question_cspider": "哪一种语言只由一个“共和制”政府的国家使用?", + "bleu_from_cspider_question": "BLEU = 0.00, 68.2/28.6/5.0/0.0 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [ + [ + false, + 2, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "T1.Population", + "FROM", + "city", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.CountryCode", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "ORDER", + "BY", + "T1.Population", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "population", + "from", + "city", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "countrycode", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "order", + "by", + "t1", + ".", + "population", + "desc", + "limit", + "value" + ], + "question_spider": "Find the city with the largest population that uses English.", + "question": "找到使用“英语”的人口最多的城市。", + "question_cspider": "找到使用“英语”的人口最多的城市。", + "bleu_from_cspider_question": "BLEU = 56.96, 93.3/71.4/53.8/50.0 (BP=0.875, ratio=0.882, hyp_len=15, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "T1.Population", + "FROM", + "city", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.CountryCode", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "ORDER", + "BY", + "T1.Population", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "population", + "from", + "city", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "countrycode", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "order", + "by", + "t1", + ".", + "population", + "desc", + "limit", + "value" + ], + "question_spider": "What is the most populace city that speaks English?", + "question": "说“英语”的人口最多的城市是什么?", + "question_cspider": "说“英语”的人口最多的城市是什么?", + "bleu_from_cspider_question": "BLEU = 51.89, 100.0/64.3/46.2/41.7 (BP=0.875, ratio=0.882, hyp_len=15, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "Population", + ",", + "LifeExpectancy", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "population", + ",", + "lifeexpectancy", + "from", + "country", + "where", + "continent", + "=", + "value", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question_spider": "Find the name, population and expected life length of asian country with the largest area?", + "question": "找出面积最大的“亚洲”国家的名称、人口和预期寿命。", + "question_cspider": "找出面积最大的“亚洲”国家的名称、人口和预期寿命。", + "bleu_from_cspider_question": "BLEU = 54.42, 87.0/68.2/52.4/40.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "Population", + ",", + "LifeExpectancy", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "population", + ",", + "lifeexpectancy", + "from", + "country", + "where", + "continent", + "=", + "value", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question_spider": "What are the name, population, and life expectancy of the largest Asian country by land?", + "question": "面积最大的“亚洲”国家的名称、人口和预期寿命是什么?", + "question_cspider": "面积最大的“亚洲”国家的名称、人口和预期寿命是什么?", + "bleu_from_cspider_question": "BLEU = 44.12, 67.9/51.9/38.5/28.0 (BP=1.000, ratio=1.077, hyp_len=28, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Name", + "NOT", + "IN", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "name", + "not", + "in", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value", + ")" + ], + "question_spider": "What is average life expectancy in the countries where English is not the official language?", + "question": "在“英语”不是官方语言的国家中,平均预期寿命是多少?", + "question_cspider": "在“英语”不是官方语言的国家中,平均预期寿命是多少?", + "bleu_from_cspider_question": "BLEU = 83.42, 100.0/91.3/86.4/85.7 (BP=0.920, ratio=0.923, hyp_len=24, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Name", + "NOT", + "IN", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "name", + "not", + "in", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value", + ")" + ], + "question_spider": "Give the mean life expectancy of countries in which English is not the official language.", + "question": "给出“英语”不“是”官方语言国家的平均预期寿命。", + "question_cspider": "给出“英语”不“是”官方语言国家的平均预期寿命。", + "bleu_from_cspider_question": "BLEU = 54.48, 95.2/70.0/52.6/44.4 (BP=0.867, ratio=0.875, hyp_len=21, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + "FROM", + "country", + "WHERE", + "Name", + "NOT", + "IN", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + "from", + "country", + "where", + "name", + "not", + "in", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + ")" + ], + "question_spider": "What is the total number of people living in the nations that do not use English?", + "question": "生活在不使用“英语”的国家的总人数是多少?", + "question_cspider": "生活在不使用“英语”的国家的总人数是多少?", + "bleu_from_cspider_question": "BLEU = 64.82, 95.0/78.9/61.1/47.1 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + "FROM", + "country", + "WHERE", + "Name", + "NOT", + "IN", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + "from", + "country", + "where", + "name", + "not", + "in", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + ")" + ], + "question_spider": "How many people live in countries that do not speak English?", + "question": "有多少人生活在不讲“英语”的国家?", + "question_cspider": "有多少人生活在不讲“英语”的国家?", + "bleu_from_cspider_question": "BLEU = 60.25, 87.5/73.3/57.1/46.2 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.HeadOfState", + "=", + "``", + "Beatrix", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "headofstate", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question_spider": "What is the official language spoken in the country whose head of state is Beatrix?", + "question": "国家元首是“布什”的国家的官方语言是什么?", + "question_cspider": "国家元首是“布什”的国家的官方语言是什么?", + "bleu_from_cspider_question": "BLEU = 51.25, 68.0/58.3/47.8/36.4 (BP=1.000, ratio=1.190, hyp_len=25, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Beatrix\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.HeadOfState", + "=", + "``", + "Beatrix", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "headofstate", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question_spider": "What is the official language used in the country the name of whose head of state is Beatrix.", + "question": "国家元首是“布什”的国家使用的官方语言是什么?", + "question_cspider": "国家元首是“布什”的国家使用的官方语言是什么?", + "bleu_from_cspider_question": "BLEU = 63.18, 72.0/66.7/60.9/54.5 (BP=1.000, ratio=1.087, hyp_len=25, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Beatrix\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "T2.Language", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "IndepYear", + "<", + "1930", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "t2", + ".", + "language", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "indepyear", + "<", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question_spider": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", + "question": "在1930年前建立的国家中,使用不同的官方语言的总数是多少?", + "question_cspider": "在1930年前建立的国家中,使用不同的官方语言的总数是多少?", + "bleu_from_cspider_question": "BLEU = 54.47, 80.6/63.3/48.3/35.7 (BP=1.000, ratio=1.033, hyp_len=31, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1930.0, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "T2.Language", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "IndepYear", + "<", + "1930", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "t2", + ".", + "language", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "indepyear", + "<", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question_spider": "For the countries founded before 1930, what is the total number of distinct official languages?", + "question": "对于1930年以前成立的国家来说,不同官方语言的总数是多少?", + "question_cspider": "对于1930年以前成立的国家来说,不同官方语言的总数是多少?", + "bleu_from_cspider_question": "BLEU = 45.01, 84.0/62.5/47.8/36.4 (BP=0.819, ratio=0.833, hyp_len=25, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1930.0, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "SurfaceArea", + ">", + "(", + "SELECT", + "min", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Europe", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "surfacearea", + ">", + "(", + "select", + "min", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question_spider": "What are the countries that have greater surface area than any country in Europe?", + "question": "哪些国家的表面积比“欧洲”任何国家都大?", + "question_cspider": "哪些国家的表面积比“欧洲”任何国家都大?", + "bleu_from_cspider_question": "BLEU = 72.65, 90.0/78.9/66.7/58.8 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "SurfaceArea", + ">", + "(", + "SELECT", + "min", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Europe", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "surfacearea", + ">", + "(", + "select", + "min", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question_spider": "Which countries have greater area than that of any country in Europe?", + "question": "面积比“欧洲”任何一个国家都大的是哪个国家?", + "question_cspider": "面积比“欧洲”任何一个国家都大的是哪个国家?", + "bleu_from_cspider_question": "BLEU = 21.34, 94.1/50.0/20.0/7.1 (BP=0.745, ratio=0.773, hyp_len=17, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT max(population) FROM country WHERE Continent = \"Asia\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + "AND", + "population", + "<", + "(", + "SELECT", + "max", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + "<", + "(", + "select", + "max", + "(", + "population", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question_spider": "What are the African countries that have a population less than any country in Asia?", + "question": "哪些“非洲”国家的人口比“亚洲”任何国家都少?", + "question_cspider": "哪些“非洲”国家的人口比“亚洲”任何国家都少?", + "bleu_from_cspider_question": "BLEU = 0.00, 87.5/46.7/7.1/0.0 (BP=0.646, ratio=0.696, hyp_len=16, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ], + "and", + [ + false, + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT min(population) FROM country WHERE Continent = \"Asia\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + "AND", + "population", + "<", + "(", + "SELECT", + "min", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + "<", + "(", + "select", + "min", + "(", + "population", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question_spider": "Which African countries have a smaller population than that of any country in Asia?", + "question": "人口比“亚洲”任何国家都少的“非洲”国家有哪些?", + "question_cspider": "人口比“亚洲”任何国家都少的“非洲”国家有哪些?", + "bleu_from_cspider_question": "BLEU = 20.05, 77.3/38.1/15.0/5.3 (BP=0.913, ratio=0.917, hyp_len=22, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ], + "and", + [ + false, + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT max(population) FROM country WHERE Continent = \"Africa\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "AND", + "population", + ">", + "(", + "SELECT", + "max", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + ">", + "(", + "select", + "max", + "(", + "population", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question_spider": "Which Asian countries have a population that is larger than any country in Africa?", + "question": "哪些“亚洲”国家的人口比“非洲”任何一个国家都多?", + "question_cspider": "哪些“亚洲”国家的人口比“非洲”任何一个国家都多?", + "bleu_from_cspider_question": "BLEU = 30.40, 90.0/52.6/27.8/17.6 (BP=0.779, ratio=0.800, hyp_len=20, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT min(population) FROM country WHERE Continent = \"Africa\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "AND", + "population", + ">", + "(", + "SELECT", + "min", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + ">", + "(", + "select", + "min", + "(", + "population", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question_spider": "What are the Asian countries which have a population larger than that of any country in Africa?", + "question": "人口比“非洲”任何一个国家都多的“亚洲”国家有哪些?", + "question_cspider": "人口比“非洲”任何一个国家都多的“亚洲”国家有哪些?", + "bleu_from_cspider_question": "BLEU = 26.62, 89.5/55.6/23.5/18.8 (BP=0.692, ratio=0.731, hyp_len=19, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "query_toks": [ + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "EXCEPT", + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "countrycode", + "from", + "countrylanguage", + "except", + "select", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "=", + "value" + ], + "question_spider": "What are the country codes for countries that do not speak English?", + "question": "不讲“英语”的国家的国家代码是什么?", + "question_cspider": "不讲“英语”的国家的国家代码是什么?", + "bleu_from_cspider_question": "BLEU = 35.22, 68.2/47.6/30.0/15.8 (BP=1.000, ratio=1.222, hyp_len=22, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "world_1", + "query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "query_toks": [ + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "EXCEPT", + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "countrycode", + "from", + "countrylanguage", + "except", + "select", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "=", + "value" + ], + "question_spider": "Return the country codes for countries that do not speak English.", + "question": "返回那些不讲“英语”国家的国家代码。", + "question_cspider": "返回哪些不讲“英语”国家的国家代码。", + "bleu_from_cspider_question": "BLEU = 46.84, 86.7/64.3/46.2/41.7 (BP=0.819, ratio=0.833, hyp_len=15, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "!", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "!", + "=", + "value" + ], + "question_spider": "What are the country codes of countries where people use languages other than English?", + "question": "那些人们讲“英语”以外的语言的国家的国家代码是什么?", + "question_cspider": "人们使用“英语”以外的语言的国家的国家代码是什么?", + "bleu_from_cspider_question": "BLEU = 53.99, 79.3/64.3/48.1/34.6 (BP=1.000, ratio=1.160, hyp_len=29, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "!", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "!", + "=", + "value" + ], + "question_spider": "Give the country codes for countries in which people speak langauges that are not English.", + "question": "给出那些不使用“英语”语言的国家的国家代码。", + "question_cspider": "给出那些不使用“英语”语言的国家的国家代码。", + "bleu_from_cspider_question": "BLEU = 25.43, 57.7/40.0/20.8/8.7 (BP=1.000, ratio=1.182, hyp_len=26, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "query_toks": [ + "SELECT", + "Code", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "!", + "=", + "``", + "Republic", + "''", + "EXCEPT", + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "code", + "from", + "country", + "where", + "governmentform", + "!", + "=", + "value", + "except", + "select", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "=", + "value" + ], + "question_spider": "What are the codes of the countries that do not speak English and whose government forms are not Republic?", + "question": "不讲“英语”的非“共和制”的国家的国家代码有哪些?", + "question_cspider": "不讲“英语”且政府形式不是“共和制”的国家的国家代码有哪些?", + "bleu_from_cspider_question": "BLEU = 29.94, 74.1/42.3/24.0/16.7 (BP=0.895, ratio=0.900, hyp_len=27, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "world_1", + "query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "query_toks": [ + "SELECT", + "Code", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "!", + "=", + "``", + "Republic", + "''", + "EXCEPT", + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "code", + "from", + "country", + "where", + "governmentform", + "!", + "=", + "value", + "except", + "select", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "=", + "value" + ], + "question_spider": "Return the codes of countries that do not speak English and do not have Republics for governments.", + "question": "返回那些不讲“英语”且没有“共和制”政府的国家的代码。", + "question_cspider": "返回那些不讲“英语”且没有“共和制”政府的国家的代码。", + "bleu_from_cspider_question": "BLEU = 0.00, 94.4/47.1/12.5/0.0 (BP=0.607, ratio=0.667, hyp_len=18, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "city", + "AS", + "T2", + "ON", + "T2.CountryCode", + "=", + "T1.Code", + "WHERE", + "T1.Continent", + "=", + "'Europe", + "'", + "AND", + "T1.Name", + "NOT", + "IN", + "(", + "SELECT", + "T3.Name", + "FROM", + "country", + "AS", + "T3", + "JOIN", + "countrylanguage", + "AS", + "T4", + "ON", + "T3.Code", + "=", + "T4.CountryCode", + "WHERE", + "T4.IsOfficial", + "=", + "'T", + "'", + "AND", + "T4.Language", + "=", + "'English", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "city", + "as", + "t2", + "on", + "t2", + ".", + "countrycode", + "=", + "t1", + ".", + "code", + "where", + "t1", + ".", + "continent", + "=", + "value", + "and", + "t1", + ".", + "name", + "not", + "in", + "(", + "select", + "t3", + ".", + "name", + "from", + "country", + "as", + "t3", + "join", + "countrylanguage", + "as", + "t4", + "on", + "t3", + ".", + "code", + "=", + "t4", + ".", + "countrycode", + "where", + "t4", + ".", + "isofficial", + "=", + "value", + "and", + "t4", + ".", + "language", + "=", + "value", + ")" + ], + "question_spider": "Which cities are in European countries where English is not the official language?", + "question": "在“欧洲”国家,哪些城市不是以“英语”为官方语言?", + "question_cspider": "在“欧洲”国家,哪些城市不是以“英语”为官方语言?", + "bleu_from_cspider_question": "BLEU = 30.90, 81.0/55.0/26.3/16.7 (BP=0.827, ratio=0.840, hyp_len=21, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ], + "and", + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "city", + "AS", + "T2", + "ON", + "T2.CountryCode", + "=", + "T1.Code", + "WHERE", + "T1.Continent", + "=", + "'Europe", + "'", + "AND", + "T1.Name", + "NOT", + "IN", + "(", + "SELECT", + "T3.Name", + "FROM", + "country", + "AS", + "T3", + "JOIN", + "countrylanguage", + "AS", + "T4", + "ON", + "T3.Code", + "=", + "T4.CountryCode", + "WHERE", + "T4.IsOfficial", + "=", + "'T", + "'", + "AND", + "T4.Language", + "=", + "'English", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "city", + "as", + "t2", + "on", + "t2", + ".", + "countrycode", + "=", + "t1", + ".", + "code", + "where", + "t1", + ".", + "continent", + "=", + "value", + "and", + "t1", + ".", + "name", + "not", + "in", + "(", + "select", + "t3", + ".", + "name", + "from", + "country", + "as", + "t3", + "join", + "countrylanguage", + "as", + "t4", + "on", + "t3", + ".", + "code", + "=", + "t4", + ".", + "countrycode", + "where", + "t4", + ".", + "isofficial", + "=", + "value", + "and", + "t4", + ".", + "language", + "=", + "value", + ")" + ], + "question_spider": "What are the names of cities in Europe for which English is not the official language?", + "question": "哪些“欧洲”国家的城市��把“英文”作为其官方语言?", + "question_cspider": "哪些“欧洲”国家的城市不把“英文”为其官方语言?", + "bleu_from_cspider_question": "BLEU = 0.00, 64.7/18.8/0.0/0.0 (BP=0.662, ratio=0.708, hyp_len=17, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ], + "and", + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = \"asia\"", + "query_toks": [ + "select", + "distinct", + "t3.name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1.code", + "=", + "t2.countrycode", + "join", + "city", + "as", + "t3", + "on", + "t1.code", + "=", + "t3.countrycode", + "where", + "t2.isofficial", + "=", + "\"t\"", + "and", + "t2.language", + "=", + "\"chinese\"", + "and", + "t1.continent", + "=", + "\"asia\"" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t3", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "join", + "city", + "as", + "t3", + "on", + "t1", + ".", + "code", + "=", + "t3", + ".", + "countrycode", + "where", + "t2", + ".", + "isofficial", + "=", + "value", + "and", + "t2", + ".", + "language", + "=", + "value", + "and", + "t1", + ".", + "continent", + "=", + "value" + ], + "question_spider": "Which unique cities are in Asian countries where Chinese is the official language ?", + "question": "在官方语言是“中文”的“亚洲”国家有哪些不同的城市?", + "question_cspider": "在官方语言是“中文”的“亚洲”国家有哪些不同的城市?", + "bleu_from_cspider_question": "BLEU = 16.78, 81.8/38.1/10.0/5.3 (BP=0.834, ratio=0.846, hyp_len=22, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"t\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"chinese\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = \"Asia\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "T3.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "JOIN", + "city", + "AS", + "T3", + "ON", + "T1.Code", + "=", + "T3.CountryCode", + "WHERE", + "T2.IsOfficial", + "=", + "'T", + "'", + "AND", + "T2.Language", + "=", + "'Chinese", + "'", + "AND", + "T1.Continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t3", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "join", + "city", + "as", + "t3", + "on", + "t1", + ".", + "code", + "=", + "t3", + ".", + "countrycode", + "where", + "t2", + ".", + "isofficial", + "=", + "value", + "and", + "t2", + ".", + "language", + "=", + "value", + "and", + "t1", + ".", + "continent", + "=", + "value" + ], + "question_spider": "Return the different names of cities that are in Asia and for which Chinese is the official language.", + "question": "返回在“亚洲”,以“中文”为官方语言的不同城市。", + "question_cspider": "返回在“亚洲”,以“中文”为���方语言的城市的不同名称。", + "bleu_from_cspider_question": "BLEU = 46.62, 90.5/70.0/52.6/44.4 (BP=0.751, ratio=0.778, hyp_len=21, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Chinese\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "SurfaceArea", + ",", + "IndepYear", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "surfacearea", + ",", + "indepyear", + "from", + "country", + "order", + "by", + "population", + "limit", + "value" + ], + "question_spider": "What are the name, independence year, and surface area of the country with the smallest population?", + "question": "人口最少的国家的名称、独立年份和表面积是多少?", + "question_cspider": "人口最少的国家的名称、独立年份和表面积是多少?", + "bleu_from_cspider_question": "BLEU = 75.40, 95.5/85.7/75.0/63.2 (BP=0.956, ratio=0.957, hyp_len=22, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "SurfaceArea", + ",", + "IndepYear", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "surfacearea", + ",", + "indepyear", + "from", + "country", + "order", + "by", + "population", + "limit", + "value" + ], + "question_spider": "Give the name, year of independence, and surface area of the country that has the lowest population.", + "question": "给出人口最少的国家的名称、独立年份和表面积。", + "question_cspider": "给出人口最少的国家的名称、独立年份和表面积。", + "bleu_from_cspider_question": "BLEU = 73.90, 90.9/81.0/70.0/57.9 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "population", + ",", + "HeadOfState", + "FROM", + "country", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "population", + ",", + "headofstate", + "from", + "country", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question_spider": "What are the population, name and leader of the country with the largest area?", + "question": "面积最大的国家的人口、名字和领导人是谁?", + "question_cspider": "面积最大的国家的人口、名字和领导人是什么?", + "bleu_from_cspider_question": "BLEU = 86.56, 95.2/90.0/84.2/77.8 (BP=1.000, ratio=1.000, hyp_len=21, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "population", + ",", + "HeadOfState", + "FROM", + "country", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "population", + ",", + "headofstate", + "from", + "country", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question_spider": "Give the name, population, and head of state for the country that has the largest area.", + "question": "给出面积最大的国家的名称、人口和领导人。", + "question_cspider": "给出面积最大的国家的名称、人口和领导人。", + "bleu_from_cspider_question": "BLEU = 61.53, 76.2/65.0/57.9/50.0 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "T2.Language", + ")", + ",", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "t2", + ".", + "language", + ")", + ",", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.", + "question": "返回至少使用3种语言的不同国家名称和语言数量。", + "question_cspider": "返回至少使用3种语言的不同国家名称和语言数量。", + "bleu_from_cspider_question": "BLEU = 38.74, 67.7/50.0/31.0/21.4 (BP=1.000, ratio=1.348, hyp_len=31, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "T2.Language", + ")", + ",", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "t2", + ".", + "language", + ")", + ",", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "What are the names of countries that speak more than 2 languages, as well as how many languages they speak?", + "question": "讲2种以上语言的国家的名称是什么,以及它们讲多少种语言?", + "question_cspider": "讲2种以上语言的国家的名称是什么,以及它们讲多少种语言?", + "bleu_from_cspider_question": "BLEU = 55.05, 69.0/60.7/51.9/42.3 (BP=1.000, ratio=1.036, hyp_len=29, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "District", + "FROM", + "city", + "WHERE", + "Population", + ">", + "(", + "SELECT", + "avg", + "(", + "Population", + ")", + "FROM", + "city", + ")", + "GROUP", + "BY", + "District" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "district", + "from", + "city", + "where", + "population", + ">", + "(", + "select", + "avg", + "(", + "population", + ")", + "from", + "city", + ")", + "group", + "by", + "district" + ], + "question_spider": "Find the number of cities in each district whose population is greater than the average population of cities?", + "question": "找出每个地区其人口大于城市平均人口的城市数量。", + "question_cspider": "找出每个地区其人口大于城市平均人口的城市数量。", + "bleu_from_cspider_question": "BLEU = 83.37, 95.5/90.5/85.0/78.9 (BP=0.956, ratio=0.957, hyp_len=22, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "District", + "FROM", + "city", + "WHERE", + "Population", + ">", + "(", + "SELECT", + "avg", + "(", + "Population", + ")", + "FROM", + "city", + ")", + "GROUP", + "BY", + "District" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "district", + "from", + "city", + "where", + "population", + ">", + "(", + "select", + "avg", + "(", + "population", + ")", + "from", + "city", + ")", + "group", + "by", + "district" + ], + "question_spider": "How many cities in each district have a population that is above the average population across all cities?", + "question": "每个地区有多少城市的人口高于所有城市的平均人口?", + "question_cspider": "每个地区有多少城市的人口高于所有城市的平均人口?", + "bleu_from_cspider_question": "BLEU = 88.95, 96.0/91.7/87.0/81.8 (BP=1.000, ratio=1.042, hyp_len=25, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "GovernmentForm", + "FROM", + "country", + "GROUP", + "BY", + "GovernmentForm", + "HAVING", + "avg", + "(", + "LifeExpectancy", + ")", + ">", + "72" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "governmentform", + "from", + "country", + "group", + "by", + "governmentform", + "having", + "avg", + "(", + "lifeexpectancy", + ")", + ">", + "value" + ], + "question_spider": "Find the government form name and total population for each government form whose average life expectancy is longer than 72.", + "question": "找出每个平均预期寿命超过72岁的政府形式的名称及其对应的总人口。", + "question_cspider": "找出每个平均预期寿命超过72岁的政府形式的名称及其对应的总人口。", + "bleu_from_cspider_question": "BLEU = 36.87, 70.0/48.3/32.1/22.2 (BP=0.936, ratio=0.938, hyp_len=30, ref_len=32)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 5, + 15, + false + ], + null + ], + 72.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "GovernmentForm", + "FROM", + "country", + "GROUP", + "BY", + "GovernmentForm", + "HAVING", + "avg", + "(", + "LifeExpectancy", + ")", + ">", + "72" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "governmentform", + "from", + "country", + "group", + "by", + "governmentform", + "having", + "avg", + "(", + "lifeexpectancy", + ")", + ">", + "value" + ], + "question_spider": "What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?", + "question": "平均预期寿命大于72岁的政府形式及其总人口是多少?", + "question_cspider": "平均预期寿命大于72岁的政府形式及其总人口是多少?", + "bleu_from_cspider_question": "BLEU = 34.11, 50.0/38.5/28.9/24.3 (BP=1.000, ratio=1.600, hyp_len=40, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 5, + 15, + false + ], + null + ], + 72.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "avg", + "(", + "LifeExpectancy", + ")", + ",", + "Continent", + "FROM", + "country", + "GROUP", + "BY", + "Continent", + "HAVING", + "avg", + "(", + "LifeExpectancy", + ")", + "<", + "72" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "lifeexpectancy", + ")", + ",", + "continent", + "from", + "country", + "group", + "by", + "continent", + "having", + "avg", + "(", + "lifeexpectancy", + ")", + "<", + "value" + ], + "question_spider": "Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?", + "question": "找出平均预期寿命短于72岁的每个大洲的平均预期寿命和总人口。", + "question_cspider": "找出平均预期寿命短于72岁的每个大洲的平均预期寿命和总人口。", + "bleu_from_cspider_question": "BLEU = 55.67, 88.5/72.0/58.3/47.8 (BP=0.857, ratio=0.867, hyp_len=26, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 5, + 15, + false + ], + null + ], + 72.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "avg", + "(", + "LifeExpectancy", + ")", + ",", + "Continent", + "FROM", + "country", + "GROUP", + "BY", + "Continent", + "HAVING", + "avg", + "(", + "LifeExpectancy", + ")", + "<", + "72" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "lifeexpectancy", + ")", + ",", + "continent", + "from", + "country", + "group", + "by", + "continent", + "having", + "avg", + "(", + "lifeexpectancy", + ")", + "<", + "value" + ], + "question_spider": "What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?", + "question": "对于平均预期寿命小于72的大洲,不同的大洲以及相应的人口总数和平均预期寿命是什么?", + "question_cspider": "对于平均预期寿命小于72的大洲,不同的大洲以及相应的人口总数和平均预期寿命是什么?", + "bleu_from_cspider_question": "BLEU = 24.42, 78.9/48.6/22.2/5.7 (BP=0.924, ratio=0.927, hyp_len=38, ref_len=41)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 5, + 15, + false + ], + null + ], + 72.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", + "query_toks": [ + "SELECT", + "Name", + ",", + "SurfaceArea", + "FROM", + "country", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "5" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "surfacearea", + "from", + "country", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question_spider": "What are the names and areas of countries with the top 5 largest area?", + "question": "面积世界排名前5的国家的名称和表面积是什么?", + "question_cspider": "世界排名前5大面积的国家的名称和国家地区是什么?", + "bleu_from_cspider_question": "BLEU = 37.02, 78.3/50.0/28.6/20.0 (BP=0.957, ratio=0.958, hyp_len=23, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 5, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", + "query_toks": [ + "SELECT", + "Name", + ",", + "SurfaceArea", + "FROM", + "country", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "5" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "surfacearea", + "from", + "country", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question_spider": "Return the names and surface areas of the 5 largest countries.", + "question": "返回最大5个国家的名称和表面积。", + "question_cspider": "返回最大5个国家的名称和表面积。", + "bleu_from_cspider_question": "BLEU = 48.81, 84.2/61.1/35.3/31.2 (BP=1.000, ratio=1.188, hyp_len=19, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 5, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "DESC", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "order", + "by", + "population", + "desc", + "limit", + "value" + ], + "question_spider": "What are names of countries with the top 3 largest population?", + "question": "人口前3多的国家的名字是什么?", + "question_cspider": "人口前3多的国家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 20.47, 57.1/35.0/15.8/5.6 (BP=1.000, ratio=1.400, hyp_len=21, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "DESC", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "order", + "by", + "population", + "desc", + "limit", + "value" + ], + "question_spider": "Return the names of the 3 most populated countries.", + "question": "返回人口前3多的国家的名字。", + "question_cspider": "返回人口前3多的国家的名字。", + "bleu_from_cspider_question": "BLEU = 21.04, 66.7/35.3/12.5/6.7 (BP=1.000, ratio=1.286, hyp_len=18, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "ASC", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "order", + "by", + "population", + "asc", + "limit", + "value" + ], + "question_spider": "What are the names of the nations with the 3 lowest populations?", + "question": "3个最少人口的国家的名字是什么?", + "question_cspider": "3个最少人口的国家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 61.63, 93.8/66.7/50.0/46.2 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "ASC", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "order", + "by", + "population", + "asc", + "limit", + "value" + ], + "question_spider": "Return the names of the 3 countries with the fewest people.", + "question": "返回3个人口最少的国家的名字。", + "question_cspider": "返回3个人口最少的国家的名字。", + "bleu_from_cspider_question": "BLEU = 0.00, 72.2/35.3/6.2/0.0 (BP=1.000, ratio=1.200, hyp_len=18, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) FROM country WHERE continent = \"Asia\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "country", + "WHERE", + "continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question_spider": "how many countries are in Asia?", + "question": "“亚洲”有多少国家?", + "question_cspider": "“亚洲”有多少国家?", + "bleu_from_cspider_question": "BLEU = 0.00, 88.9/62.5/28.6/0.0 (BP=0.895, ratio=0.900, hyp_len=9, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) FROM country WHERE continent = \"Asia\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "country", + "WHERE", + "continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question_spider": "Count the number of countries in Asia.", + "question": "统计“亚洲”国家的数量。", + "question_cspider": "统计“亚洲”国家的数量。", + "bleu_from_cspider_question": "BLEU = 49.03, 90.0/66.7/50.0/42.9 (BP=0.819, ratio=0.833, hyp_len=10, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "continent", + "=", + "``", + "Europe", + "''", + "AND", + "Population", + "=", + "``", + "80000", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + "=", + "value" + ], + "question_spider": "What are the names of the countries that are in the continent of Europe and have a population of 80000?", + "question": "“欧洲”大陆有“80000”人口的国家叫什么名字?", + "question_cspider": "“欧洲”大陆有“80000”人口的国家叫什么名字?", + "bleu_from_cspider_question": "BLEU = 46.43, 85.0/63.2/50.0/47.1 (BP=0.779, ratio=0.800, hyp_len=20, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"80000\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "continent", + "=", + "``", + "Europe", + "''", + "AND", + "Population", + "=", + "``", + "80000", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + "=", + "value" + ], + "question_spider": "Give the names of countries that are in Europe and have a population equal to 80000.", + "question": "给出“欧洲”人口数是“80000”的国家的名字。", + "question_cspider": "给出“欧洲”人口数是“80000”的国家的名字。", + "bleu_from_cspider_question": "BLEU = 27.41, 75.0/43.5/18.2/9.5 (BP=1.000, ratio=1.000, hyp_len=24, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"80000\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", + "query_toks": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "\"north america\"", + "and", + "surfacearea", + ">", + "3000" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "surfacearea", + ">", + "value" + ], + "question_spider": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?", + "question": "面积大于3000的“北美”洲国家的总人口数和平均表面积是多少?", + "question_cspider": "面积大于3000的“北美”洲国家的总人口数和平均表面积是多少?", + "bleu_from_cspider_question": "BLEU = 61.06, 92.9/77.8/61.5/48.0 (BP=0.898, ratio=0.903, hyp_len=28, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"north america\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + 3000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", + "query_toks": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "\"north america\"", + "and", + "surfacearea", + ">", + "3000" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "surfacearea", + ">", + "value" + ], + "question_spider": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", + "question": "给出面积大于3000的“北美”洲国家的总人口数和平均表面积。", + "question_cspider": "给出面积大于3000的“北美”洲国家的总人口数和平均表面积。", + "bleu_from_cspider_question": "BLEU = 57.07, 83.9/66.7/48.3/39.3 (BP=1.000, ratio=1.033, hyp_len=31, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"north america\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + 3000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000", + "query_toks": [ + "SELECT", + "name", + "FROM", + "city", + "WHERE", + "Population", + "BETWEEN", + "160000", + "AND", + "900000" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "city", + "where", + "population", + "between", + "value", + "and", + "value" + ], + "question_spider": "What are the cities whose population is between 160000 and 900000?", + "question": "人口在160000到900000之间的城市是什么?", + "question_cspider": "人口在160000到900000之间的城市是什么?", + "bleu_from_cspider_question": "BLEU = 37.63, 78.9/61.1/47.1/31.2 (BP=0.729, ratio=0.760, hyp_len=19, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + 160000.0, + 900000.0 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select name from city where population between 160000 and 900000", + "query_toks": [ + "select", + "name", + "from", + "city", + "where", + "population", + "between", + "160000", + "and", + "900000" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "city", + "where", + "population", + "between", + "value", + "and", + "value" + ], + "question_spider": "Return the names of cities that have a population between 160000 and 900000 .", + "question": "返回人口在160000到900000之间的城市的名字。", + "question_cspider": "返回人口在160000到900000之间的城市的名字。", + "bleu_from_cspider_question": "BLEU = 93.05, 96.3/92.3/92.0/91.7 (BP=1.000, ratio=1.000, hyp_len=27, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + 160000.0, + 900000.0 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "LANGUAGE", + "FROM", + "countrylanguage", + "GROUP", + "BY", + "LANGUAGE", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "language", + "from", + "countrylanguage", + "group", + "by", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which language is spoken by the largest number of countries?", + "question": "哪个语言被最多的国家使用?", + "question_cspider": "那个语言被最多的国家使用?", + "bleu_from_cspider_question": "BLEU = 28.18, 58.8/37.5/20.0/14.3 (BP=1.000, ratio=1.308, hyp_len=17, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "LANGUAGE", + "FROM", + "countrylanguage", + "GROUP", + "BY", + "LANGUAGE", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "language", + "from", + "countrylanguage", + "group", + "by", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Give the language that is spoken in the most countries.", + "question": "给出最多国家使用的语言。", + "question_cspider": "给出最多国家使用的语言。", + "bleu_from_cspider_question": "BLEU = 34.90, 56.2/40.0/28.6/23.1 (BP=1.000, ratio=1.333, hyp_len=16, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "CountryCode", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "countrycode", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "group", + "by", + "countrycode" + ], + "question_spider": "What is the language spoken by the largest percentage of people in each country?", + "question": "每个国家中最多人所讲的语言是什么?", + "question_cspider": "每个国家中最大比例的人所讲的语言是什么?", + "bleu_from_cspider_question": "BLEU = 65.67, 82.6/72.7/61.9/50.0 (BP=1.000, ratio=1.150, hyp_len=23, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "CountryCode", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "countrycode", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "group", + "by", + "countrycode" + ], + "question_spider": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?", + "question": "不同国家的国家代码是什么?每个国家被最多数人讲的语言是什么?", + "question_cspider": "不同国家的国家代码是什么?每个国家被最多数人讲的语言是什么?", + "bleu_from_cspider_question": "BLEU = 42.69, 62.2/44.4/37.1/32.4 (BP=1.000, ratio=1.233, hyp_len=37, ref_len=30)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "Spanish", + "''", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "where", + "language", + "=", + "value", + "group", + "by", + "countrycode" + ], + "question_spider": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", + "question": "讲“西班牙语”的人口比例最大的国家的总数是多少?", + "question_cspider": "讲“西班牙语”的人口比例最大的国家的总数是多少?", + "bleu_from_cspider_question": "BLEU = 35.43, 78.9/55.6/41.2/25.0 (BP=0.769, ratio=0.792, hyp_len=19, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Spanish\"", + null + ] + ], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "Spanish", + "''", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "where", + "language", + "=", + "value", + "group", + "by", + "countrycode" + ], + "question_spider": "Count the number of countries for which Spanish is the predominantly spoken language.", + "question": "计算以讲“西班牙语”为主的国家的数目。", + "question_cspider": "计算以讲“西班牙语”为主的国家的数目。", + "bleu_from_cspider_question": "BLEU = 23.63, 66.7/40.0/21.1/5.6 (BP=1.000, ratio=1.105, hyp_len=21, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Spanish\"", + null + ] + ], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "CountryCode", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "Spanish", + "''", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "countrycode", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "where", + "language", + "=", + "value", + "group", + "by", + "countrycode" + ], + "question_spider": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", + "question": "讲“西班牙语”的人口比例最大的国家的代码是什么?", + "question_cspider": "讲“西班牙语”的人口比例最大的国家的代码是什么?", + "bleu_from_cspider_question": "BLEU = 45.78, 83.3/60.9/36.4/23.8 (BP=1.000, ratio=1.000, hyp_len=24, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Spanish\"", + null + ] + ], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "CountryCode", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "Spanish", + "''", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "countrycode", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "where", + "language", + "=", + "value", + "group", + "by", + "countrycode" + ], + "question_spider": "Return the codes of countries for which Spanish is the predominantly spoken language.", + "question": "返回以“西班牙语”为主的国家的代码。", + "question_cspider": "返回以“西班牙语”为主的国家的代码。", + "bleu_from_cspider_question": "BLEU = 33.12, 72.7/52.4/30.0/10.5 (BP=1.000, ratio=1.222, hyp_len=22, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Spanish\"", + null + ] + ], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT count(*) FROM conductor", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "conductor" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "conductor" + ], + "question_spider": "How many conductors are there?", + "question": "那里有多少个指挥家?", + "question_cspider": "那里有多少个指挥家?", + "bleu_from_cspider_question": "BLEU = 0.00, 62.5/28.6/16.7/0.0 (BP=0.779, ratio=0.800, hyp_len=8, ref_len=10)", + "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": "orchestra", + "query": "SELECT count(*) FROM conductor", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "conductor" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "conductor" + ], + "question_spider": "Count the number of conductors.", + "question": "计算指挥家的数量。", + "question_cspider": "计算指挥家的数量。", + "bleu_from_cspider_question": "BLEU = 36.28, 75.0/57.1/33.3/20.0 (BP=0.882, ratio=0.889, hyp_len=8, ref_len=9)", + "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": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Age ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Age", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "age", + "asc" + ], + "question_spider": "List the names of conductors in ascending order of age.", + "question": "列出按年龄升序排列的指挥家的名字。", + "question_cspider": "列出按年限升序排列的指挥家的名字。", + "bleu_from_cspider_question": "BLEU = 0.00, 66.7/27.3/0.0/0.0 (BP=0.659, ratio=0.706, hyp_len=12, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Age ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Age", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "age", + "asc" + ], + "question_spider": "What are the names of conductors, ordered by age?", + "question": "按年龄顺序排列的指挥家名字是什么?", + "question_cspider": "按年龄顺序排列的指挥家名字是什么?", + "bleu_from_cspider_question": "BLEU = 0.00, 73.3/28.6/15.4/0.0 (BP=0.875, ratio=0.882, hyp_len=15, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor WHERE Nationality != 'USA'", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "WHERE", + "Nationality", + "!", + "=", + "'USA", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "where", + "nationality", + "!", + "=", + "value" + ], + "question_spider": "What are the names of conductors whose nationalities are not \"USA\"?", + "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=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor WHERE Nationality != 'USA'", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "WHERE", + "Nationality", + "!", + "=", + "'USA", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "where", + "nationality", + "!", + "=", + "value" + ], + "question_spider": "Return the names of conductors that do not have the nationality \"USA\".", + "question": "返回不是“美国”国籍的指挥人员的姓名。", + "question_cspider": "返回不是“美国”国籍的指挥人员的姓名。", + "bleu_from_cspider_question": "BLEU = 63.12, 88.9/76.5/62.5/46.7 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "ORDER", + "BY", + "Year_of_Founded", + "DESC" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "order", + "by", + "year_of_founded", + "desc" + ], + "question_spider": "What are the record companies of orchestras in descending order of years in which they were founded?", + "question": "按创立年份的降序排列的管弦乐队唱片公司是哪些?", + "question_cspider": "按创立年份的降序排列的管弦乐队唱片公司是哪些?", + "bleu_from_cspider_question": "BLEU = 45.15, 89.5/61.1/47.1/37.5 (BP=0.810, ratio=0.826, hyp_len=19, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "ORDER", + "BY", + "Year_of_Founded", + "DESC" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "order", + "by", + "year_of_founded", + "desc" + ], + "question_spider": "Return the record companies of orchestras, sorted descending by the years in which they were founded.", + "question": "返回按创立年份降序排列的乐团唱片公司的名称。", + "question_cspider": "返回按创立年份降序排列的乐团唱片公司的名称。", + "bleu_from_cspider_question": "BLEU = 30.99, 81.8/42.9/25.0/10.5 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT avg(Attendance) FROM SHOW", + "query_toks": [ + "SELECT", + "avg", + "(", + "Attendance", + ")", + "FROM", + "SHOW" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "attendance", + ")", + "from", + "show" + ], + "question_spider": "What is the average attendance of shows?", + "question": "表演的平均出席率是多少?", + "question_cspider": "表演的平均出席率是多少?", + "bleu_from_cspider_question": "BLEU = 53.67, 81.8/70.0/55.6/37.5 (BP=0.913, ratio=0.917, hyp_len=11, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT avg(Attendance) FROM SHOW", + "query_toks": [ + "SELECT", + "avg", + "(", + "Attendance", + ")", + "FROM", + "SHOW" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "attendance", + ")", + "from", + "show" + ], + "question_spider": "Return the average attendance across all shows.", + "question": "返回所有表演的平均出席率。", + "question_cspider": "返回所有表演的平均出席率。", + "bleu_from_cspider_question": "BLEU = 45.72, 71.4/53.8/41.7/27.3 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", + "query_toks": [ + "SELECT", + "max", + "(", + "SHARE", + ")", + ",", + "min", + "(", + "SHARE", + ")", + "FROM", + "performance", + "WHERE", + "TYPE", + "!", + "=", + "``", + "Live", + "final", + "''" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "share", + ")", + ",", + "min", + "(", + "share", + ")", + "from", + "performance", + "where", + "type", + "!", + "=", + "value" + ], + "question_spider": "What are the maximum and minimum share of performances whose type is not \"Live final\".", + "question": "除“决赛直播”之外的表演最大和最小份额是是什么��", + "question_cspider": "不是“决赛直播”类型的最大和最小份额的表现类型是什么。", + "bleu_from_cspider_question": "BLEU = 34.33, 51.7/39.3/29.6/23.1 (BP=1.000, ratio=1.074, hyp_len=29, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"Live final\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", + "query_toks": [ + "SELECT", + "max", + "(", + "SHARE", + ")", + ",", + "min", + "(", + "SHARE", + ")", + "FROM", + "performance", + "WHERE", + "TYPE", + "!", + "=", + "``", + "Live", + "final", + "''" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "share", + ")", + ",", + "min", + "(", + "share", + ")", + "from", + "performance", + "where", + "type", + "!", + "=", + "value" + ], + "question_spider": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".", + "question": "返回不是“决赛直播”类型的表演的最大和最小份额。", + "question_cspider": "返回不是“决赛直播”类型的表演的最大和最小份额。", + "bleu_from_cspider_question": "BLEU = 52.14, 62.1/53.6/48.1/46.2 (BP=1.000, ratio=1.208, hyp_len=29, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"Live final\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT count(DISTINCT Nationality) FROM conductor", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "Nationality", + ")", + "FROM", + "conductor" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "nationality", + ")", + "from", + "conductor" + ], + "question_spider": "How many different nationalities do conductors have?", + "question": "指挥家有多少个不同的国籍?", + "question_cspider": "指挥家有多少个不同的国籍?", + "bleu_from_cspider_question": "BLEU = 58.20, 100.0/88.9/75.0/57.1 (BP=0.741, ratio=0.769, hyp_len=10, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 4, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT count(DISTINCT Nationality) FROM conductor", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "Nationality", + ")", + "FROM", + "conductor" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "nationality", + ")", + "from", + "conductor" + ], + "question_spider": "Count the number of different nationalities of conductors.", + "question": "统计不同指挥家的国籍数量。", + "question_cspider": "统计指挥家不同的国籍数量。", + "bleu_from_cspider_question": "BLEU = 0.00, 69.2/33.3/9.1/0.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 4, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Year_of_Work", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "year_of_work", + "desc" + ], + "question_spider": "List names of conductors in descending order of years of work.", + "question": "按照工作年限的降序顺序列出指挥家的名字。", + "question_cspider": "按照工作年限的降序顺序列出指挥家的名字。", + "bleu_from_cspider_question": "BLEU = 19.63, 78.6/46.2/25.0/9.1 (BP=0.651, ratio=0.700, hyp_len=14, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Year_of_Work", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "year_of_work", + "desc" + ], + "question_spider": "What are the names of conductors, sorted descending by the number of years they have worked?", + "question": "按工作年限降序排列的指挥家的名字是什么?", + "question_cspider": "按工作年限降序排列的指挥家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 31.64, 76.2/45.0/26.3/11.1 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Year_of_Work", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "year_of_work", + "desc", + "limit", + "value" + ], + "question_spider": "List the name of the conductor with the most years of work.", + "question": "列出工作年限最久的指挥家的姓名。", + "question_cspider": "列出工作年限最长的指挥家的姓名。", + "bleu_from_cspider_question": "BLEU = 74.48, 87.5/80.0/71.4/61.5 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Year_of_Work", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "year_of_work", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the conductor who has worked the greatest number of years?", + "question": "那位工作时间最长的指挥家叫什么名字?", + "question_cspider": "那位工作时间最长的指挥家叫什么名字?", + "bleu_from_cspider_question": "BLEU = 62.11, 94.1/75.0/53.3/50.0 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "T2.Orchestra", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t2", + ".", + "orchestra", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id" + ], + "question_spider": "Show the names of conductors and the orchestras they have conducted.", + "question": "显示指挥家的名字和他们指挥的管弦乐队的名字。", + "question_cspider": "显示指挥家的名字和他们指挥的管弦乐队的名字。", + "bleu_from_cspider_question": "BLEU = 64.17, 100.0/87.5/80.0/78.6 (BP=0.745, ratio=0.773, hyp_len=17, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "T2.Orchestra", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t2", + ".", + "orchestra", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id" + ], + "question_spider": "What are the names of conductors as well as the corresonding orchestras that they have conducted?", + "question": "指挥家的名字以及他们指挥的管弦乐队叫什么?", + "question_cspider": "指挥家的名字以及他们指挥的管弦乐队叫什么?", + "bleu_from_cspider_question": "BLEU = 55.96, 85.0/68.4/50.0/41.2 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "GROUP", + "BY", + "T2.Conductor_ID", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "group", + "by", + "t2", + ".", + "conductor_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Show the names of conductors that have conducted more than one orchestras.", + "question": "显示指挥过超过一支管弦乐队的指挥家的名字。", + "question_cspider": "显示指挥过超过一支管弦乐队的指挥家的名字。", + "bleu_from_cspider_question": "BLEU = 39.35, 76.5/56.2/40.0/35.7 (BP=0.790, ratio=0.810, hyp_len=17, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "GROUP", + "BY", + "T2.Conductor_ID", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "group", + "by", + "t2", + ".", + "conductor_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "What are the names of conductors who have conducted at more than one orchestra?", + "question": "指挥过超过一个管弦乐队的指挥家的名字是什么?", + "question_cspider": "指挥过超过一个管弦乐队的指挥家的名字是什么?", + "bleu_from_cspider_question": "BLEU = 51.16, 75.0/57.9/50.0/47.1 (BP=0.905, ratio=0.909, hyp_len=20, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "GROUP", + "BY", + "T2.Conductor_ID", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "group", + "by", + "t2", + ".", + "conductor_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Show the name of the conductor that has conducted the most number of orchestras.", + "question": "显示指挥过最多的管弦乐队的指挥家的名字。", + "question_cspider": "显示指挥过最多的管弦乐队的指挥家的名字。", + "bleu_from_cspider_question": "BLEU = 61.18, 100.0/86.7/71.4/61.5 (BP=0.779, ratio=0.800, hyp_len=16, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "GROUP", + "BY", + "T2.Conductor_ID", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "group", + "by", + "t2", + ".", + "conductor_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the conductor who has conducted the most orchestras?", + "question": "指挥过最多的管弦乐队的指挥家叫什么名字?", + "question_cspider": "指挥过最多的管弦乐队的指挥家叫什么名字?", + "bleu_from_cspider_question": "BLEU = 52.82, 93.8/73.3/57.1/53.8 (BP=0.779, ratio=0.800, hyp_len=16, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "WHERE", + "Year_of_Founded", + ">", + "2008" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "where", + "year_of_founded", + ">", + "value" + ], + "question_spider": "Please show the name of the conductor that has conducted orchestras founded after 2008.", + "question": "请显示指挥过2008年后成立的管弦乐队的指挥家名字。", + "question_cspider": "请显示指挥过2008年后成立的管弦乐队的指挥家姓名。", + "bleu_from_cspider_question": "BLEU = 67.07, 92.0/79.2/65.2/50.0 (BP=0.961, ratio=0.962, hyp_len=25, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2008.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "WHERE", + "Year_of_Founded", + ">", + "2008" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "where", + "year_of_founded", + ">", + "value" + ], + "question_spider": "What are the names of conductors who have conducted orchestras founded after the year 2008?", + "question": "指挥过2008年后成立的管弦乐队的指挥家叫什么名字?", + "question_cspider": "指挥过2008年后成立的管弦乐队的指挥家叫什么名字?", + "bleu_from_cspider_question": "BLEU = 41.28, 87.0/59.1/38.1/25.0 (BP=0.878, ratio=0.885, hyp_len=23, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2008.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company", + "query_toks": [ + "SELECT", + "Record_Company", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "orchestra", + "GROUP", + "BY", + "Record_Company" + ], + "query_toks_no_value": [ + "select", + "record_company", + ",", + "count", + "(", + "*", + ")", + "from", + "orchestra", + "group", + "by", + "record_company" + ], + "question_spider": "Please show the different record companies and the corresponding number of orchestras.", + "question": "请显示不同唱片公司及相应管弦乐队的数量。", + "question_cspider": "请显示不同唱片公司及相应管弦乐队的数量。", + "bleu_from_cspider_question": "BLEU = 37.03, 84.2/50.0/29.4/18.8 (BP=0.949, ratio=0.950, hyp_len=19, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company", + "query_toks": [ + "SELECT", + "Record_Company", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "orchestra", + "GROUP", + "BY", + "Record_Company" + ], + "query_toks_no_value": [ + "select", + "record_company", + ",", + "count", + "(", + "*", + ")", + "from", + "orchestra", + "group", + "by", + "record_company" + ], + "question_spider": "How many orchestras does each record company manage?", + "question": "每家唱片公司管理多少支管弦乐队?", + "question_cspider": "每家唱片公司管理多少支管弦乐队?", + "bleu_from_cspider_question": "BLEU = 54.60, 85.7/69.2/58.3/45.5 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", + "query_toks": [ + "SELECT", + "Major_Record_Format", + "FROM", + "orchestra", + "GROUP", + "BY", + "Major_Record_Format", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "ASC" + ], + "query_toks_no_value": [ + "select", + "major_record_format", + "from", + "orchestra", + "group", + "by", + "major_record_format", + "order", + "by", + "count", + "(", + "*", + ")", + "asc" + ], + "question_spider": "Please show the record formats of orchestras in ascending order of count.", + "question": "请以数量升序显示管弦乐队的唱片格式。", + "question_cspider": "请以数量升序显示管弦乐队的唱片格式。", + "bleu_from_cspider_question": "BLEU = 0.00, 56.2/26.7/14.3/0.0 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", + "query_toks": [ + "SELECT", + "Major_Record_Format", + "FROM", + "orchestra", + "GROUP", + "BY", + "Major_Record_Format", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "ASC" + ], + "query_toks_no_value": [ + "select", + "major_record_format", + "from", + "orchestra", + "group", + "by", + "major_record_format", + "order", + "by", + "count", + "(", + "*", + ")", + "asc" + ], + "question_spider": "What are the major record formats of orchestras, sorted by their frequency?", + "question": "按频率排列的管弦乐队的主要唱片格式是什么?", + "question_cspider": "按频率排列的管弦乐队的主要唱片格式是什么?", + "bleu_from_cspider_question": "BLEU = 41.47, 75.0/52.6/38.9/23.5 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "GROUP", + "BY", + "Record_Company", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "group", + "by", + "record_company", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "List the record company shared by the most number of orchestras.", + "question": "列出被最多数量的管弦乐队共享的唱片公司。", + "question_cspider": "列出被最多数量的管弦乐队共享的唱片公司。", + "bleu_from_cspider_question": "BLEU = 51.32, 93.3/78.6/61.5/58.3 (BP=0.717, ratio=0.750, hyp_len=15, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + 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": "orchestra", + "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "GROUP", + "BY", + "Record_Company", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "group", + "by", + "record_company", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the record company used by the greatest number of orchestras?", + "question": "管弦乐队合作最多的唱片公司是什么?", + "question_cspider": "管弦乐队使用最多的唱片公司是什么?", + "bleu_from_cspider_question": "BLEU = 38.62, 100.0/69.2/41.7/18.2 (BP=0.807, ratio=0.824, hyp_len=14, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + 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": "orchestra", + "query": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", + "query_toks": [ + "SELECT", + "Orchestra", + "FROM", + "orchestra", + "WHERE", + "Orchestra_ID", + "NOT", + "IN", + "(", + "SELECT", + "Orchestra_ID", + "FROM", + "performance", + ")" + ], + "query_toks_no_value": [ + "select", + "orchestra", + "from", + "orchestra", + "where", + "orchestra_id", + "not", + "in", + "(", + "select", + "orchestra_id", + "from", + "performance", + ")" + ], + "question_spider": "List the names of orchestras that have no performance.", + "question": "列出没有演出过的管弦乐队的名称。", + "question_cspider": "列出没有演出过的管弦乐队的名称。", + "bleu_from_cspider_question": "BLEU = 40.44, 84.6/58.3/45.5/30.0 (BP=0.794, ratio=0.812, hyp_len=13, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + 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": "orchestra", + "query": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", + "query_toks": [ + "SELECT", + "Orchestra", + "FROM", + "orchestra", + "WHERE", + "Orchestra_ID", + "NOT", + "IN", + "(", + "SELECT", + "Orchestra_ID", + "FROM", + "performance", + ")" + ], + "query_toks_no_value": [ + "select", + "orchestra", + "from", + "orchestra", + "where", + "orchestra_id", + "not", + "in", + "(", + "select", + "orchestra_id", + "from", + "performance", + ")" + ], + "question_spider": "What are the orchestras that do not have any performances?", + "question": "没有演出的管弦乐队是什么?", + "question_cspider": "没有演出的管弦乐队是什么?", + "bleu_from_cspider_question": "BLEU = 67.81, 100.0/90.0/77.8/62.5 (BP=0.834, ratio=0.846, hyp_len=11, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + 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": "orchestra", + "query": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "WHERE", + "Year_of_Founded", + "<", + "2003", + "INTERSECT", + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "WHERE", + "Year_of_Founded", + ">", + "2003" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "where", + "year_of_founded", + "<", + "value", + "intersect", + "select", + "record_company", + "from", + "orchestra", + "where", + "year_of_founded", + ">", + "value" + ], + "question_spider": "Show the record companies shared by orchestras founded before 2003 and after 2003.", + "question": "显示2003年前和2003年后成立的管弦乐队所共享的唱片公司。", + "question_cspider": "显示2003年前和2003年后成立的管弦乐队所共享的唱片公司。", + "bleu_from_cspider_question": "BLEU = 61.62, 87.1/70.0/55.2/42.9 (BP=1.000, ratio=1.000, hyp_len=31, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2003.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2003.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "WHERE", + "Year_of_Founded", + "<", + "2003", + "INTERSECT", + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "WHERE", + "Year_of_Founded", + ">", + "2003" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "where", + "year_of_founded", + "<", + "value", + "intersect", + "select", + "record_company", + "from", + "orchestra", + "where", + "year_of_founded", + ">", + "value" + ], + "question_spider": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?", + "question": "2003年之前成立的和2003年以后成��的乐团都合作的唱片公司有哪些?", + "question_cspider": "2003年之前成立的和2003年以后成立的乐团都使用的唱片公司有哪些?", + "bleu_from_cspider_question": "BLEU = 50.13, 85.7/61.8/42.4/28.1 (BP=1.000, ratio=1.000, hyp_len=35, ref_len=35)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2003.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2003.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "orchestra", + "WHERE", + "Major_Record_Format", + "=", + "``", + "CD", + "''", + "OR", + "Major_Record_Format", + "=", + "``", + "DVD", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "orchestra", + "where", + "major_record_format", + "=", + "value", + "or", + "major_record_format", + "=", + "value" + ], + "question_spider": "Find the number of orchestras whose record format is \"CD\" or \"DVD\".", + "question": "找到录音格式为“CD”或“DVD”的管弦乐队的数量。", + "question_cspider": "找到记录格式为“CD”或“DVD”的管弦乐队的数量。", + "bleu_from_cspider_question": "BLEU = 92.76, 96.2/92.0/91.7/91.3 (BP=1.000, ratio=1.000, hyp_len=26, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"CD\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"DVD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "orchestra", + "WHERE", + "Major_Record_Format", + "=", + "``", + "CD", + "''", + "OR", + "Major_Record_Format", + "=", + "``", + "DVD", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "orchestra", + "where", + "major_record_format", + "=", + "value", + "or", + "major_record_format", + "=", + "value" + ], + "question_spider": "Count the number of orchestras that have CD or DVD as their record format.", + "question": "计算以“CD”或“DVD”作为录音格式的管弦乐队的数量。", + "question_cspider": "计算以“CD”或“DVD”作为记录格式的管弦乐队的数量。", + "bleu_from_cspider_question": "BLEU = 59.55, 100.0/81.8/66.7/55.0 (BP=0.805, ratio=0.821, hyp_len=23, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"CD\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"DVD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "Year_of_Founded", + "FROM", + "orchestra", + "AS", + "T1", + "JOIN", + "performance", + "AS", + "T2", + "ON", + "T1.Orchestra_ID", + "=", + "T2.Orchestra_ID", + "GROUP", + "BY", + "T2.Orchestra_ID", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "year_of_founded", + "from", + "orchestra", + "as", + "t1", + "join", + "performance", + "as", + "t2", + "on", + "t1", + ".", + "orchestra_id", + "=", + "t2", + ".", + "orchestra_id", + "group", + "by", + "t2", + ".", + "orchestra_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Show the years in which orchestras that have given more than one performance are founded.", + "question": "显示不止一次演出的管弦乐队成立的年份。", + "question_cspider": "显示不止一次演出的管弦乐队成立的年份。", + "bleu_from_cspider_question": "BLEU = 33.53, 70.0/36.8/27.8/17.6 (BP=1.000, ratio=1.053, hyp_len=20, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 13, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "Year_of_Founded", + "FROM", + "orchestra", + "AS", + "T1", + "JOIN", + "performance", + "AS", + "T2", + "ON", + "T1.Orchestra_ID", + "=", + "T2.Orchestra_ID", + "GROUP", + "BY", + "T2.Orchestra_ID", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "year_of_founded", + "from", + "orchestra", + "as", + "t1", + "join", + "performance", + "as", + "t2", + "on", + "t1", + ".", + "orchestra_id", + "=", + "t2", + ".", + "orchestra_id", + "group", + "by", + "t2", + ".", + "orchestra_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "What are years of founding for orchestras that have had more than a single performance?", + "question": "拥有超过一次演出经历的管弦乐队的创立年份是什么?", + "question_cspider": "拥有超过一次演出经历的管弦乐队的创立年份是什么?", + "bleu_from_cspider_question": "BLEU = 27.57, 66.7/35.0/26.3/16.7 (BP=0.867, ratio=0.875, hyp_len=21, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 13, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Highschooler", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "highschooler" + ], + "question_spider": "How many high schoolers are there?", + "question": "有多少高中生?", + "question_cspider": "有多少高中生?", + "bleu_from_cspider_question": "BLEU = 31.56, 55.6/37.5/28.6/16.7 (BP=1.000, ratio=1.286, hyp_len=9, ref_len=7)", + "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": "network_1", + "query": "SELECT count(*) FROM Highschooler", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "highschooler" + ], + "question_spider": "Count the number of high schoolers.", + "question": "统计高中生的人数。", + "question_cspider": "统计高中生的人数。", + "bleu_from_cspider_question": "BLEU = 75.06, 88.9/75.0/71.4/66.7 (BP=1.000, ratio=1.000, hyp_len=9, ref_len=9)", + "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": "network_1", + "query": "SELECT name , grade FROM Highschooler", + "query_toks": [ + "SELECT", + "name", + ",", + "grade", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "grade", + "from", + "highschooler" + ], + "question_spider": "Show the names and grades of each high schooler.", + "question": "显示每个高中学生的名字和年级。", + "question_cspider": "显示每个高中学生的姓名和年级。", + "bleu_from_cspider_question": "BLEU = 80.52, 100.0/92.3/83.3/72.7 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT name , grade FROM Highschooler", + "query_toks": [ + "SELECT", + "name", + ",", + "grade", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "grade", + "from", + "highschooler" + ], + "question_spider": "What are the names and grades for each high schooler?", + "question": "每个高中生的名字和年级是什么?", + "question_cspider": "每个高中生的名字和年级是什么?", + "bleu_from_cspider_question": "BLEU = 80.03, 93.3/85.7/76.9/66.7 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler" + ], + "question_spider": "Show all the grades of the high schoolers.", + "question": "显示所有高中生的年级。", + "question_cspider": "显示所有高中生的年级。", + "bleu_from_cspider_question": "BLEU = 69.89, 81.8/70.0/66.7/62.5 (BP=1.000, ratio=1.000, hyp_len=11, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler" + ], + "question_spider": "What is the grade of each high schooler?", + "question": "每个高中生的年级是多少?", + "question_cspider": "每个高中生的年级是多少?", + "bleu_from_cspider_question": "BLEU = 73.49, 91.7/81.8/70.0/55.6 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "WHERE", + "name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "where", + "name", + "=", + "value" + ], + "question_spider": "What grade is Kyle in?", + "question": "“小军”在几年级?", + "question_cspider": "“小军”在几年级?", + "bleu_from_cspider_question": "BLEU = 0.00, 50.0/28.6/16.7/0.0 (BP=0.882, ratio=0.889, hyp_len=8, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "WHERE", + "name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "where", + "name", + "=", + "value" + ], + "question_spider": "Return the grade for the high schooler named Kyle.", + "question": "返回高中生“小军”的年级。", + "question_cspider": "返回高中生“小军”的年级。", + "bleu_from_cspider_question": "BLEU = 0.00, 43.8/20.0/7.1/0.0 (BP=1.000, ratio=1.231, hyp_len=16, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT name FROM Highschooler WHERE grade = 10", + "query_toks": [ + "SELECT", + "name", + "FROM", + "Highschooler", + "WHERE", + "grade", + "=", + "10" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "highschooler", + "where", + "grade", + "=", + "value" + ], + "question_spider": "Show the names of all high schoolers in grade 10.", + "question": "显示10年级所有高中生的名字。", + "question_cspider": "显示10年级所有高中生的名字。", + "bleu_from_cspider_question": "BLEU = 39.92, 86.7/57.1/30.8/16.7 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 10.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT name FROM Highschooler WHERE grade = 10", + "query_toks": [ + "SELECT", + "name", + "FROM", + "Highschooler", + "WHERE", + "grade", + "=", + "10" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "highschooler", + "where", + "grade", + "=", + "value" + ], + "question_spider": "What are the names of all high schoolers in grade 10?", + "question": "10年级所有高中生的名字是什么?", + "question_cspider": "10年级所有高中生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 86.57, 93.3/92.9/92.3/91.7 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 10.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", + "query_toks": [ + "SELECT", + "ID", + "FROM", + "Highschooler", + "WHERE", + "name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "highschooler", + "where", + "name", + "=", + "value" + ], + "question_spider": "Show the ID of the high schooler named Kyle.", + "question": "显示名字叫“小军”的高中学生的ID。", + "question_cspider": "显示名字叫“小军”的高中学生的ID。", + "bleu_from_cspider_question": "BLEU = 33.98, 75.0/53.3/35.7/15.4 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", + "query_toks": [ + "SELECT", + "ID", + "FROM", + "Highschooler", + "WHERE", + "name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "highschooler", + "where", + "name", + "=", + "value" + ], + "question_spider": "What is Kyle's id?", + "question": "“小军”的id是什么?", + "question_cspider": "“小军”的id是什么?", + "bleu_from_cspider_question": "BLEU = 25.13, 50.0/33.3/25.0/14.3 (BP=0.905, ratio=0.909, hyp_len=10, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler", + "WHERE", + "grade", + "=", + "9", + "OR", + "grade", + "=", + "10" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "highschooler", + "where", + "grade", + "=", + "value", + "or", + "grade", + "=", + "value" + ], + "question_spider": "How many high schoolers are there in grade 9 or 10?", + "question": "9年级或10年级有多少高中生?", + "question_cspider": "9年级或10年级有多少高中生?", + "bleu_from_cspider_question": "BLEU = 30.59, 71.4/53.8/33.3/9.1 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 9.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 10.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler", + "WHERE", + "grade", + "=", + "9", + "OR", + "grade", + "=", + "10" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "highschooler", + "where", + "grade", + "=", + "value", + "or", + "grade", + "=", + "value" + ], + "question_spider": "Count the number of high schoolers in grades 9 or 10.", + "question": "计算9年级或10年级的高中生人数。", + "question_cspider": "计算9年级或10年级的高中生人数。", + "bleu_from_cspider_question": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 9.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 10.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade , count(*) FROM Highschooler GROUP BY grade", + "query_toks": [ + "SELECT", + "grade", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade" + ], + "query_toks_no_value": [ + "select", + "grade", + ",", + "count", + "(", + "*", + ")", + "from", + "highschooler", + "group", + "by", + "grade" + ], + "question_spider": "Show the number of high schoolers for each grade.", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade , count(*) FROM Highschooler GROUP BY grade", + "query_toks": [ + "SELECT", + "grade", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade" + ], + "query_toks_no_value": [ + "select", + "grade", + ",", + "count", + "(", + "*", + ")", + "from", + "highschooler", + "group", + "by", + "grade" + ], + "question_spider": "How many high schoolers are in each grade?", + "question": "每个年级有多少高中生?", + "question_cspider": "每个年级有多少高中生?", + "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)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "group", + "by", + "grade", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which grade has the most high schoolers?", + "question": "哪个年级的学生最多?", + "question_cspider": "哪个年级的学生最多?", + "bleu_from_cspider_question": "BLEU = 33.50, 69.2/33.3/27.3/20.0 (BP=1.000, ratio=1.300, hyp_len=13, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "group", + "by", + "grade", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Return the grade that has the greatest number of high schoolers.", + "question": "返回高中人数最多的年级。", + "question_cspider": "返回高中人数最多的年级。", + "bleu_from_cspider_question": "BLEU = 76.12, 92.3/83.3/72.7/60.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "4" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "group", + "by", + "grade", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Show me all grades that have at least 4 students.", + "question": "显示所有至少有4名学生的年级。", + "question_cspider": "显示所有至少有4名学生的年级。", + "bleu_from_cspider_question": "BLEU = 69.65, 82.4/75.0/66.7/57.1 (BP=1.000, ratio=1.133, hyp_len=17, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 4.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "4" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "group", + "by", + "grade", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Which grades have 4 or more high schoolers?", + "question": "哪一个年级有4个或更多的高中生?", + "question_cspider": "哪一个年级有4个或更多的高中生?", + "bleu_from_cspider_question": "BLEU = 88.08, 100.0/92.9/92.3/91.7 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 4.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id , count(*) FROM Friend GROUP BY student_id", + "query_toks": [ + "SELECT", + "student_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "GROUP", + "BY", + "student_id" + ], + "query_toks_no_value": [ + "select", + "student_id", + ",", + "count", + "(", + "*", + ")", + "from", + "friend", + "group", + "by", + "student_id" + ], + "question_spider": "Show the student IDs and numbers of friends corresponding to each.", + "question": "显示学生ID和其对应的朋友数量。", + "question_cspider": "显示学生ID和其对应的朋友数量。", + "bleu_from_cspider_question": "BLEU = 42.53, 66.7/50.0/38.5/33.3 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id , count(*) FROM Friend GROUP BY student_id", + "query_toks": [ + "SELECT", + "student_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "GROUP", + "BY", + "student_id" + ], + "query_toks_no_value": [ + "select", + "student_id", + ",", + "count", + "(", + "*", + ")", + "from", + "friend", + "group", + "by", + "student_id" + ], + "question_spider": "How many friends does each student have?", + "question": "每个学生有多少个朋友?", + "question_cspider": "每个学生有多少个朋友?", + "bleu_from_cspider_question": "BLEU = 59.54, 90.0/77.8/62.5/42.9 (BP=0.905, ratio=0.909, hyp_len=10, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id" + ], + "question_spider": "Show the names of high school students and their corresponding number of friends.", + "question": "显示高中生的名字和他们相应的朋友数量。", + "question_cspider": "显示高中生的名字和他们相应的朋友数量。", + "bleu_from_cspider_question": "BLEU = 36.66, 73.7/44.4/29.4/18.8 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id" + ], + "question_spider": "What are the names of the high schoolers and how many friends does each have?", + "question": "高中生的名字是什么,每个人有多少朋友?", + "question_cspider": "高中生的名字是什么,每个人有多少朋友?", + "bleu_from_cspider_question": "BLEU = 51.79, 83.3/64.7/50.0/33.3 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the high schooler who has the greatest number of friends?", + "question": "拥有最多人数朋友的高中生的名字是什么?", + "question_cspider": "拥有最多人数朋友的高中生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 44.42, 93.8/66.7/42.9/30.8 (BP=0.829, ratio=0.842, hyp_len=16, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Return the name of the high school student with the most friends.", + "question": "返回有最多朋友数量的高中生的名字。", + "question_cspider": "返回有最多朋友数量的高中生的名字。", + "bleu_from_cspider_question": "BLEU = 49.90, 92.9/69.2/50.0/45.5 (BP=0.807, ratio=0.824, hyp_len=14, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "3" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Show the names of high schoolers who have at least 3 friends.", + "question": "显示至少有3个朋友的高中生的名字。", + "question_cspider": "显示至少有3个朋友的高中生的名字。", + "bleu_from_cspider_question": "BLEU = 83.26, 94.1/81.2/80.0/78.6 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "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": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "3" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What are the names of high schoolers who have 3 or more friends?", + "question": "有3个或更多朋友的高中生的名字是什么?", + "question_cspider": "有3个或更多朋友的高中生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 94.57, 95.0/94.7/94.4/94.1 (BP=1.000, ratio=1.053, hyp_len=20, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "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": "network_1", + "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "T3.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "JOIN", + "Highschooler", + "AS", + "T3", + "ON", + "T1.friend_id", + "=", + "T3.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "join", + "highschooler", + "as", + "t3", + "on", + "t1", + ".", + "friend_id", + "=", + "t3", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question_spider": "Show the names of all of the high schooler Kyle's friends.", + "question": "显示高中学生“小军”的所有朋友的名字。", + "question_cspider": "显示高中学生“小军”的所有朋友的名字。", + "bleu_from_cspider_question": "BLEU = 34.18, 76.5/50.0/26.7/21.4 (BP=0.889, ratio=0.895, hyp_len=17, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "T3.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "JOIN", + "Highschooler", + "AS", + "T3", + "ON", + "T1.friend_id", + "=", + "T3.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "join", + "highschooler", + "as", + "t3", + "on", + "t1", + ".", + "friend_id", + "=", + "t3", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question_spider": "Return the names of friends of the high school student Kyle.", + "question": "返回名字是“小军”高中学生的朋友的名字。", + "question_cspider": "返回名字是“小军”高中学生的朋友的名字。", + "bleu_from_cspider_question": "BLEU = 42.19, 61.9/50.0/36.8/27.8 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question_spider": "How many friends does the high school student Kyle have?", + "question": "高中生“小军”有多少个朋友?", + "question_cspider": "高中生“小军”有多少个朋友?", + "bleu_from_cspider_question": "BLEU = 22.93, 66.7/36.4/20.0/11.1 (BP=0.846, ratio=0.857, hyp_len=12, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question_spider": "Count the number of friends Kyle has.", + "question": "统计下“小军”的朋友数。", + "question_cspider": "统计下“小军”的朋友数。", + "bleu_from_cspider_question": "BLEU = 19.67, 42.9/23.1/16.7/9.1 (BP=1.000, ratio=1.167, hyp_len=14, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", + "query_toks": [ + "SELECT", + "id", + "FROM", + "Highschooler", + "EXCEPT", + "SELECT", + "student_id", + "FROM", + "Friend" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "highschooler", + "except", + "select", + "student_id", + "from", + "friend" + ], + "question_spider": "Show ids of all students who do not have any friends.", + "question": "显示所有没有朋友的学生的id。", + "question_cspider": "显示所有没有朋友的学生的id。", + "bleu_from_cspider_question": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "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": null + } + } + }, + { + "db_id": "network_1", + "query": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", + "query_toks": [ + "SELECT", + "id", + "FROM", + "Highschooler", + "EXCEPT", + "SELECT", + "student_id", + "FROM", + "Friend" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "highschooler", + "except", + "select", + "student_id", + "from", + "friend" + ], + "question_spider": "What are the ids of high school students who do not have friends?", + "question": "没有朋友的高中生的id是什么?", + "question_cspider": "没有朋友的高中生的id是什么?", + "bleu_from_cspider_question": "BLEU = 67.39, 81.2/73.3/64.3/53.8 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "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": null + } + } + }, + { + "db_id": "network_1", + "query": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", + "query_toks": [ + "SELECT", + "name", + "FROM", + "Highschooler", + "EXCEPT", + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "highschooler", + "except", + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id" + ], + "question_spider": "Show names of all high school students who do not have any friends.", + "question": "显示所有没有任何朋友的高中生的名字。", + "question_cspider": "显示所有没有任何朋友的高中生的名字。", + "bleu_from_cspider_question": "BLEU = 61.64, 93.8/73.3/64.3/53.8 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "network_1", + "query": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", + "query_toks": [ + "SELECT", + "name", + "FROM", + "Highschooler", + "EXCEPT", + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "highschooler", + "except", + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id" + ], + "question_spider": "What are the names of students who have no friends?", + "question": "没有朋友的学生的名字是什么?", + "question_cspider": "没有朋友的学生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 53.55, 92.3/66.7/45.5/40.0 (BP=0.926, ratio=0.929, hyp_len=13, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", + "query_toks": [ + "SELECT", + "student_id", + "FROM", + "Friend", + "INTERSECT", + "SELECT", + "liked_id", + "FROM", + "Likes" + ], + "query_toks_no_value": [ + "select", + "student_id", + "from", + "friend", + "intersect", + "select", + "liked_id", + "from", + "likes" + ], + "question_spider": "Show the ids of high schoolers who have friends and are also liked by someone else.", + "question": "展示一下那些有朋友而且被别人喜欢的高中生的id。", + "question_cspider": "展示一下那些有朋友而且被别人喜欢的高中生的id。", + "bleu_from_cspider_question": "BLEU = 58.72, 85.7/70.0/63.2/55.6 (BP=0.867, ratio=0.875, hyp_len=21, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", + "query_toks": [ + "SELECT", + "student_id", + "FROM", + "Friend", + "INTERSECT", + "SELECT", + "liked_id", + "FROM", + "Likes" + ], + "query_toks_no_value": [ + "select", + "student_id", + "from", + "friend", + "intersect", + "select", + "liked_id", + "from", + "likes" + ], + "question_spider": "What are the ids of students who both have friends and are liked?", + "question": "既有朋友又被人喜欢的学生的id是什么?", + "question_cspider": "既有朋友又被人喜欢的学生的id是什么?", + "bleu_from_cspider_question": "BLEU = 62.90, 84.2/72.2/58.8/43.8 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "INTERSECT", + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.liked_id", + "=", + "T2.id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "intersect", + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "liked_id", + "=", + "t2", + ".", + "id" + ], + "question_spider": "Show name of all students who have some friends and also are liked by someone else.", + "question": "显示所有有朋友和被别人喜欢的学生的名字。", + "question_cspider": "显示所有有朋友和被别人喜欢的学生的名字。", + "bleu_from_cspider_question": "BLEU = 18.36, 65.4/32.0/12.5/4.3 (BP=1.000, ratio=1.300, hyp_len=26, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "INTERSECT", + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.liked_id", + "=", + "T2.id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "intersect", + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "liked_id", + "=", + "t2", + ".", + "id" + ], + "question_spider": "What are the names of high schoolers who both have friends and are liked?", + "question": "那些既有朋友又有人喜欢的高中生的名字是什么?", + "question_cspider": "那些既有朋友又有人喜欢的高中生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 32.80, 78.9/50.0/29.4/18.8 (BP=0.854, ratio=0.864, hyp_len=19, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id , count(*) FROM Likes GROUP BY student_id", + "query_toks": [ + "SELECT", + "student_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "GROUP", + "BY", + "student_id" + ], + "query_toks_no_value": [ + "select", + "student_id", + ",", + "count", + "(", + "*", + ")", + "from", + "likes", + "group", + "by", + "student_id" + ], + "question_spider": "Count the number of likes for each student id.", + "question": "针对每个学生ID,统计其对应的喜欢数量。", + "question_cspider": "针对每个学生ID,统计其对应的喜欢数量。", + "bleu_from_cspider_question": "BLEU = 31.17, 85.7/53.8/41.7/27.3 (BP=0.651, ratio=0.700, hyp_len=14, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 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": "network_1", + "query": "SELECT student_id , count(*) FROM Likes GROUP BY student_id", + "query_toks": [ + "SELECT", + "student_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "GROUP", + "BY", + "student_id" + ], + "query_toks_no_value": [ + "select", + "student_id", + ",", + "count", + "(", + "*", + ")", + "from", + "likes", + "group", + "by", + "student_id" + ], + "question_spider": "How many likes correspond to each student id?", + "question": "有每个学生id对应的喜欢数有多少?", + "question_cspider": "有每个学生id对应的喜欢数有多少?", + "bleu_from_cspider_question": "BLEU = 19.45, 75.0/45.5/20.0/11.1 (BP=0.659, ratio=0.706, hyp_len=12, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 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": "network_1", + "query": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id" + ], + "question_spider": "Show the names of high schoolers who have likes, and numbers of likes for each.", + "question": "显示有赞的高中学生的名字,以及每个人收到的赞的数量。", + "question_cspider": "显示有喜欢的高中学生的名字,以及每个人喜欢的数量。", + "bleu_from_cspider_question": "BLEU = 51.74, 95.7/63.6/47.6/35.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + 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": "network_1", + "query": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id" + ], + "question_spider": "What are the names of high schoolers who have likes, and how many likes does each have?", + "question": "受到赞的高中生叫什么名字?每人有多少赞?", + "question_cspider": "有喜欢的高中生叫什么名字?每人有多少喜欢的?", + "bleu_from_cspider_question": "BLEU = 69.59, 90.5/75.0/68.4/61.1 (BP=0.953, ratio=0.955, hyp_len=21, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + 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": "network_1", + "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the high schooler who has the greatest number of likes?", + "question": "有最多人赞的高中生叫什么名字?", + "question_cspider": "有最多喜欢数的高中生叫什么名字?", + "bleu_from_cspider_question": "BLEU = 67.10, 100.0/84.6/66.7/63.6 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Give the name of the student with the most likes.", + "question": "给出有最多赞的学生的名字。", + "question_cspider": "给出有最多喜欢数的学生的名字。", + "bleu_from_cspider_question": "BLEU = 49.38, 100.0/72.7/50.0/44.4 (BP=0.779, ratio=0.800, hyp_len=12, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Show the names of students who have at least 2 likes.", + "question": "显示至少有2个赞的学生的名字。", + "question_cspider": "显示至少有2个喜欢的学生的名字。", + "bleu_from_cspider_question": "BLEU = 55.63, 86.7/64.3/53.8/41.7 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What are the names of students who have 2 or more likes?", + "question": "有2个或更多赞的学生的名字是什么?", + "question_cspider": "有2个或更多喜欢的学生的名字是什么?", + "bleu_from_cspider_question": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.grade", + ">", + "5", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "grade", + ">", + "value", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", + "question": "显示年级高于5级且至少有2个朋友的学生的名字。", + "question_cspider": "显示年级高于5级且至少有2个朋友的学生的名字。", + "bleu_from_cspider_question": "BLEU = 51.41, 81.0/60.0/47.4/44.4 (BP=0.909, ratio=0.913, hyp_len=21, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 5.0, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.grade", + ">", + "5", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "grade", + ">", + "value", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?", + "question": "那些年级在5岁以上且有2个或更多朋友的高中生叫什么名字?", + "question_cspider": "那些年级在5岁以上且有2个或更多朋友的高中生叫什么名字?", + "bleu_from_cspider_question": "BLEU = 75.94, 95.8/91.3/86.4/85.7 (BP=0.846, ratio=0.857, hyp_len=24, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 5.0, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question_spider": "How many likes does Kyle have?", + "question": "“小军”有多少次赞?", + "question_cspider": "“小军”有多少喜欢?", + "bleu_from_cspider_question": "BLEU = 0.00, 40.0/11.1/0.0/0.0 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question_spider": "Return the number of likes that the high schooler named Kyle has.", + "question": "返回高中生“小军”的赞数。", + "question_cspider": "返回高中生“小军”的喜欢数。", + "bleu_from_cspider_question": "BLEU = 0.00, 52.6/27.8/5.9/0.0 (BP=1.000, ratio=1.357, hyp_len=19, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", + "query_toks": [ + "SELECT", + "avg", + "(", + "grade", + ")", + "FROM", + "Highschooler", + "WHERE", + "id", + "IN", + "(", + "SELECT", + "T1.student_id", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "grade", + ")", + "from", + "highschooler", + "where", + "id", + "in", + "(", + "select", + "t1", + ".", + "student_id", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + ")" + ], + "question_spider": "Find the average grade of all students who have some friends.", + "question": "找出所有有朋友的学生的平均年级。", + "question_cspider": "找出所有有朋友的学生的平均年级。", + "bleu_from_cspider_question": "BLEU = 33.23, 77.8/47.1/25.0/13.3 (BP=1.000, ratio=1.125, hyp_len=18, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + 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": "network_1", + "query": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", + "query_toks": [ + "SELECT", + "avg", + "(", + "grade", + ")", + "FROM", + "Highschooler", + "WHERE", + "id", + "IN", + "(", + "SELECT", + "T1.student_id", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "grade", + ")", + "from", + "highschooler", + "where", + "id", + "in", + "(", + "select", + "t1", + ".", + "student_id", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + ")" + ], + "question_spider": "What is the average grade of students who have friends?", + "question": "有朋友的学生的平均年级是多少?", + "question_cspider": "有朋友的学生的平均年级是多少?", + "bleu_from_cspider_question": "BLEU = 72.42, 86.7/78.6/69.2/58.3 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + 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": "network_1", + "query": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", + "query_toks": [ + "SELECT", + "min", + "(", + "grade", + ")", + "FROM", + "Highschooler", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "T1.student_id", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + ")" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "grade", + ")", + "from", + "highschooler", + "where", + "id", + "not", + "in", + "(", + "select", + "t1", + ".", + "student_id", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + ")" + ], + "question_spider": "Find the minimum grade of students who have no friends.", + "question": "找出没有朋友的学生的最低年级。", + "question_cspider": "找出没有朋友的学生的最低年级。", + "bleu_from_cspider_question": "BLEU = 65.55, 80.0/64.3/61.5/58.3 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + 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": "network_1", + "query": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", + "query_toks": [ + "SELECT", + "min", + "(", + "grade", + ")", + "FROM", + "Highschooler", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "T1.student_id", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + ")" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "grade", + ")", + "from", + "highschooler", + "where", + "id", + "not", + "in", + "(", + "select", + "t1", + ".", + "student_id", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + ")" + ], + "question_spider": "What is the lowest grade of students who do not have any friends?", + "question": "没有任何朋友的最低年级学生是谁?", + "question_cspider": "没有任何朋友的最低年级学生是谁?", + "bleu_from_cspider_question": "BLEU = 64.23, 86.7/71.4/61.5/58.3 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + 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": "dog_kennels", + "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", + "query_toks": [ + "SELECT", + "state", + "FROM", + "Owners", + "INTERSECT", + "SELECT", + "state", + "FROM", + "Professionals" + ], + "query_toks_no_value": [ + "select", + "state", + "from", + "owners", + "intersect", + "select", + "state", + "from", + "professionals" + ], + "question_spider": "Which states have both owners and professionals living there?", + "question": "哪些州既有主人又有专家居住?", + "question_cspider": "哪些州既有主人又有专家居住?", + "bleu_from_cspider_question": "BLEU = 0.00, 50.0/0.0/0.0/0.0 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", + "query_toks": [ + "SELECT", + "state", + "FROM", + "Owners", + "INTERSECT", + "SELECT", + "state", + "FROM", + "Professionals" + ], + "query_toks_no_value": [ + "select", + "state", + "from", + "owners", + "intersect", + "select", + "state", + "from", + "professionals" + ], + "question_spider": "Find the states where both owners and professionals live.", + "question": "找出既有主人又有专家居住的州。", + "question_cspider": "找出既有主人又有专家居住的州。", + "bleu_from_cspider_question": "BLEU = 26.52, 56.2/26.7/21.4/15.4 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs", + "WHERE", + "dog_id", + "IN", + "(", + "SELECT", + "dog_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs", + "where", + "dog_id", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "question_spider": "What is the average age of the dogs who have gone through any treatments?", + "question": "经过治疗的狗的平均年龄是多少?", + "question_cspider": "经过治疗的狗的平均年龄是多少?", + "bleu_from_cspider_question": "BLEU = 78.28, 88.2/81.2/73.3/71.4 (BP=1.000, ratio=1.133, hyp_len=17, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + 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": "dog_kennels", + "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs", + "WHERE", + "dog_id", + "IN", + "(", + "SELECT", + "dog_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs", + "where", + "dog_id", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "question_spider": "Find the average age of the dogs who went through treatments.", + "question": "找出经过治疗的狗的平均年龄。", + "question_cspider": "找出经过治疗的狗的平均年龄。", + "bleu_from_cspider_question": "BLEU = 85.55, 92.9/84.6/83.3/81.8 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + 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": "dog_kennels", + "query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", + "query_toks": [ + "SELECT", + "professional_id", + ",", + "last_name", + ",", + "cell_number", + "FROM", + "Professionals", + "WHERE", + "state", + "=", + "'Indiana", + "'", + "UNION", + "SELECT", + "T1.professional_id", + ",", + "T1.last_name", + ",", + "T1.cell_number", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "professional_id", + ",", + "last_name", + ",", + "cell_number", + "from", + "professionals", + "where", + "state", + "=", + "value", + "union", + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "last_name", + ",", + "t1", + ".", + "cell_number", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.", + "question": "哪些专家住在印第安纳州,或者已经做过两次以上的治疗?列出他或她的ID、姓和手机。", + "question_cspider": "哪些专家住在印第安纳州,或者已经做过两次以上的治疗?列出他或她的ID、姓和手机。", + "bleu_from_cspider_question": "BLEU = 49.88, 71.4/53.7/45.0/35.9 (BP=1.000, ratio=1.050, hyp_len=42, ref_len=40)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Indiana\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", + "query_toks": [ + "SELECT", + "professional_id", + ",", + "last_name", + ",", + "cell_number", + "FROM", + "Professionals", + "WHERE", + "state", + "=", + "'Indiana", + "'", + "UNION", + "SELECT", + "T1.professional_id", + ",", + "T1.last_name", + ",", + "T1.cell_number", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "professional_id", + ",", + "last_name", + ",", + "cell_number", + "from", + "professionals", + "where", + "state", + "=", + "value", + "union", + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "last_name", + ",", + "t1", + ".", + "cell_number", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.", + "question": "找出居住在印第安纳州且曾做过两次以上治疗的专家的ID、姓氏和手机。", + "question_cspider": "找出居住在印第安纳州且曾做过两次以上治疗的专家的ID、姓氏和手机。", + "bleu_from_cspider_question": "BLEU = 53.86, 69.4/57.1/50.0/42.4 (BP=1.000, ratio=1.091, hyp_len=36, ref_len=33)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Indiana\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", + "query_toks": [ + "select", + "name", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + "group", + "by", + "dog_id", + "having", + "sum", + "(", + "cost_of_treatment", + ")", + ">", + "1000", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + "group", + "by", + "dog_id", + "having", + "sum", + "(", + "cost_of_treatment", + ")", + ">", + "value", + ")" + ], + "question_spider": "Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .", + "question": "哪些狗没有花费他们的主人超过1000元的治疗费?列出狗的名字。", + "question_cspider": "哪些狗没有花费他们的主人超过1000元的治疗费?列出狗的名字。", + "bleu_from_cspider_question": "BLEU = 52.19, 92.3/76.0/58.3/39.1 (BP=0.825, ratio=0.839, hyp_len=26, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 45, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 4, + 49, + false + ], + null + ], + 1000.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", + "query_toks": [ + "select", + "name", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + "group", + "by", + "dog_id", + "having", + "sum", + "(", + "cost_of_treatment", + ")", + ">", + "1000", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + "group", + "by", + "dog_id", + "having", + "sum", + "(", + "cost_of_treatment", + ")", + ">", + "value", + ")" + ], + "question_spider": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?", + "question": "主人花了1000元以上来治疗的狗的名字是什么?", + "question_cspider": "主人花了1000元以上来治疗的狗的名字是什么?", + "bleu_from_cspider_question": "BLEU = 19.86, 73.7/44.4/17.6/6.2 (BP=0.810, ratio=0.826, hyp_len=19, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 45, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 4, + 49, + false + ], + null + ], + 1000.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", + "query_toks": [ + "SELECT", + "first_name", + "FROM", + "Professionals", + "UNION", + "SELECT", + "first_name", + "FROM", + "Owners", + "EXCEPT", + "SELECT", + "name", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "first_name", + "from", + "professionals", + "union", + "select", + "first_name", + "from", + "owners", + "except", + "select", + "name", + "from", + "dogs" + ], + "question_spider": "Which first names are used for professionals or owners but are not used as dog names?", + "question": "哪些名字可用于专家或主人,但不用作狗的名字?", + "question_cspider": "哪些名字可用于专家或主人,但不用作狗的名字?", + "bleu_from_cspider_question": "BLEU = 32.34, 72.7/38.1/25.0/15.8 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", + "query_toks": [ + "SELECT", + "first_name", + "FROM", + "Professionals", + "UNION", + "SELECT", + "first_name", + "FROM", + "Owners", + "EXCEPT", + "SELECT", + "name", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "first_name", + "from", + "professionals", + "union", + "select", + "first_name", + "from", + "owners", + "except", + "select", + "name", + "from", + "dogs" + ], + "question_spider": "Find the first names that are used for professionals or owners but are not used as dog names.", + "question": "找出专业人士或主人使用的名字,但不用作狗名的名字。", + "question_cspider": "找出专业人士或主人使用的名字,但不用作狗名的名字。", + "bleu_from_cspider_question": "BLEU = 43.74, 72.7/52.4/45.0/36.8 (BP=0.873, ratio=0.880, hyp_len=22, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", + "query_toks": [ + "SELECT", + "professional_id", + ",", + "role_code", + ",", + "email_address", + "FROM", + "Professionals", + "EXCEPT", + "SELECT", + "T1.professional_id", + ",", + "T1.role_code", + ",", + "T1.email_address", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id" + ], + "query_toks_no_value": [ + "select", + "professional_id", + ",", + "role_code", + ",", + "email_address", + "from", + "professionals", + "except", + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "role_code", + ",", + "t1", + ".", + "email_address", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id" + ], + "question_spider": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.", + "question": "哪些专家没有对狗进行任何治疗?列出专业人员的id、角色和电子邮件。", + "question_cspider": "哪些专家没有对狗进行任何治疗?列出专业人员的id、角色和电子邮件。", + "bleu_from_cspider_question": "BLEU = 75.66, 85.7/76.5/72.7/68.8 (BP=1.000, ratio=1.061, hyp_len=35, ref_len=33)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", + "query_toks": [ + "SELECT", + "professional_id", + ",", + "role_code", + ",", + "email_address", + "FROM", + "Professionals", + "EXCEPT", + "SELECT", + "T1.professional_id", + ",", + "T1.role_code", + ",", + "T1.email_address", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id" + ], + "query_toks_no_value": [ + "select", + "professional_id", + ",", + "role_code", + ",", + "email_address", + "from", + "professionals", + "except", + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "role_code", + ",", + "t1", + ".", + "email_address", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id" + ], + "question_spider": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.", + "question": "请告诉我没有对狗进行任何治疗的专家的id、角色和电子邮件。", + "question_cspider": "请告诉我没有对狗进行任何治疗的专家的id、角色和电子邮件。", + "bleu_from_cspider_question": "BLEU = 68.14, 83.3/72.4/64.3/55.6 (BP=1.000, ratio=1.034, hyp_len=30, ref_len=29)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T2.first_name", + ",", + "T2.last_name", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Owners", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t2", + ".", + "first_name", + ",", + "t2", + ".", + "last_name", + "from", + "dogs", + "as", + "t1", + "join", + "owners", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which owner owns the most dogs? List the owner id, first name and last name.", + "question": "那个主人拥有最多的狗?列出主人的ID、名字和姓氏。", + "question_cspider": "那个主人拥有最多的狗?列出主人的ID、名字和姓氏。", + "bleu_from_cspider_question": "BLEU = 65.86, 80.0/70.8/60.9/54.5 (BP=1.000, ratio=1.000, hyp_len=25, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 21, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T2.first_name", + ",", + "T2.last_name", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Owners", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t2", + ".", + "first_name", + ",", + "t2", + ".", + "last_name", + "from", + "dogs", + "as", + "t1", + "join", + "owners", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Return the owner id, first name and last name of the owner who has the most dogs.", + "question": "返回拥有最多狗的主人的ID、名字和姓氏。", + "question_cspider": "返回拥有最多狗的主人的ID、名字和姓氏。", + "bleu_from_cspider_question": "BLEU = 51.31, 70.8/56.5/45.5/38.1 (BP=1.000, ratio=1.200, hyp_len=24, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 21, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.professional_id", + ",", + "T1.role_code", + ",", + "T1.first_name", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "role_code", + ",", + "t1", + ".", + "first_name", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", + "question": "哪些专家至少做过两次治疗?列出专业人员的ID、角色和名字。", + "question_cspider": "哪些专家至少做过两次治疗?列出专业人员的ID、角色和名字。", + "bleu_from_cspider_question": "BLEU = 57.23, 89.7/75.0/51.9/30.8 (BP=1.000, ratio=1.000, hyp_len=29, ref_len=29)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.professional_id", + ",", + "T1.role_code", + ",", + "T1.first_name", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "role_code", + ",", + "t1", + ".", + "first_name", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "What are the id, role, and first name of the professionals who have performed two or more treatments?", + "question": "进行过两次或更多次治疗的专家的ID、角色和名字是什么?", + "question_cspider": "进行过两次或更多次治疗的专家的ID、角色和名字是什么?", + "bleu_from_cspider_question": "BLEU = 54.48, 76.7/62.1/50.0/37.0 (BP=1.000, ratio=1.111, hyp_len=30, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.breed_name", + "FROM", + "Breeds", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.breed_code", + "=", + "T2.breed_code", + "GROUP", + "BY", + "T1.breed_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "breed_name", + "from", + "breeds", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "breed_code", + "=", + "t2", + ".", + "breed_code", + "group", + "by", + "t1", + ".", + "breed_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the breed with the most dogs?", + "question": "最多数量狗的品种名称叫什么?", + "question_cspider": "被养最多数量狗的品种名称叫什么?", + "bleu_from_cspider_question": "BLEU = 0.00, 76.9/41.7/18.2/0.0 (BP=0.794, ratio=0.812, hyp_len=13, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.breed_name", + "FROM", + "Breeds", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.breed_code", + "=", + "T2.breed_code", + "GROUP", + "BY", + "T1.breed_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "breed_name", + "from", + "breeds", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "breed_code", + "=", + "t2", + ".", + "breed_code", + "group", + "by", + "t1", + ".", + "breed_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which breed do the most dogs have? Give me the breed name.", + "question": "哪些品种下的狗数量最多?给我这些品种的名字。", + "question_cspider": "被喂养最多数量的狗都有哪些品种?给我这个品种的名字。", + "bleu_from_cspider_question": "BLEU = 61.53, 95.0/84.2/77.8/76.5 (BP=0.741, ratio=0.769, hyp_len=20, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T1.last_name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "JOIN", + "Treatments", + "AS", + "T3", + "ON", + "T2.dog_id", + "=", + "T3.dog_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t1", + ".", + "last_name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "join", + "treatments", + "as", + "t3", + "on", + "t2", + ".", + "dog_id", + "=", + "t3", + ".", + "dog_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", + "question": "哪一位主人为他或她的狗支付了最多的治疗费?列出主人的ID和姓氏。", + "question_cspider": "哪一位主人为他或她的狗支付了最多的治疗费?列出主人的ID和姓氏。", + "bleu_from_cspider_question": "BLEU = 63.66, 78.1/67.7/60.0/51.7 (BP=1.000, ratio=1.000, hyp_len=32, ref_len=32)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T1.last_name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "JOIN", + "Treatments", + "AS", + "T3", + "ON", + "T2.dog_id", + "=", + "T3.dog_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t1", + ".", + "last_name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "join", + "treatments", + "as", + "t3", + "on", + "t2", + ".", + "dog_id", + "=", + "t3", + ".", + "dog_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", + "question": "告诉我花在他或她的狗身上最多治疗费的主人的ID和姓氏。", + "question_cspider": "告诉我花在他或她的狗身上最多治疗费的主人的ID和姓氏。", + "bleu_from_cspider_question": "BLEU = 28.64, 77.8/34.6/20.0/12.5 (BP=1.000, ratio=1.000, hyp_len=27, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.treatment_type_description", + "FROM", + "Treatment_types", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.treatment_type_code", + "=", + "T2.treatment_type_code", + "GROUP", + "BY", + "T1.treatment_type_code", + "ORDER", + "BY", + "sum", + "(", + "cost_of_treatment", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "treatment_type_description", + "from", + "treatment_types", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "treatment_type_code", + "=", + "t2", + ".", + "treatment_type_code", + "group", + "by", + "t1", + ".", + "treatment_type_code", + "order", + "by", + "sum", + "(", + "cost_of_treatment", + ")", + "asc", + "limit", + "value" + ], + "question_spider": "What is the description of the treatment type that costs the least money in total?", + "question": "总花费最少的治疗类型的描述是什么?", + "question_cspider": "总花费最少的治疗类型的描述是什么?", + "bleu_from_cspider_question": "BLEU = 71.41, 88.2/68.8/66.7/64.3 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 4, + 49, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.treatment_type_description", + "FROM", + "Treatment_types", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.treatment_type_code", + "=", + "T2.treatment_type_code", + "GROUP", + "BY", + "T1.treatment_type_code", + "ORDER", + "BY", + "sum", + "(", + "cost_of_treatment", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "treatment_type_description", + "from", + "treatment_types", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "treatment_type_code", + "=", + "t2", + ".", + "treatment_type_code", + "group", + "by", + "t1", + ".", + "treatment_type_code", + "order", + "by", + "sum", + "(", + "cost_of_treatment", + ")", + "asc", + "limit", + "value" + ], + "question_spider": "Give me the description of the treatment type whose total cost is the lowest.", + "question": "请给我描述一下总花费最低的治疗类型。", + "question_cspider": "请给我描述一下总花费最低的治疗类型。", + "bleu_from_cspider_question": "BLEU = 48.83, 81.2/60.0/50.0/38.5 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 4, + 49, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T1.zip_code", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "JOIN", + "Treatments", + "AS", + "T3", + "ON", + "T2.dog_id", + "=", + "T3.dog_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "sum", + "(", + "T3.cost_of_treatment", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t1", + ".", + "zip_code", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "join", + "treatments", + "as", + "t3", + "on", + "t2", + ".", + "dog_id", + "=", + "t3", + ".", + "dog_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "sum", + "(", + "t3", + ".", + "cost_of_treatment", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", + "question": "哪一个主人为他们的狗支付了最多的钱?显示主人的ID和邮政编码。", + "question_cspider": "哪一个主人为他们的狗支付了最多的钱?显示主人的ID和邮政编码。", + "bleu_from_cspider_question": "BLEU = 63.01, 80.6/66.7/58.6/50.0 (BP=1.000, ratio=1.000, hyp_len=31, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 4, + 49, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T1.zip_code", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "JOIN", + "Treatments", + "AS", + "T3", + "ON", + "T2.dog_id", + "=", + "T3.dog_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "sum", + "(", + "T3.cost_of_treatment", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t1", + ".", + "zip_code", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "join", + "treatments", + "as", + "t3", + "on", + "t2", + ".", + "dog_id", + "=", + "t3", + ".", + "dog_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "sum", + "(", + "t3", + ".", + "cost_of_treatment", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", + "question": "找出总计为他或她的狗花了最多钱的主人的ID和邮政编码。", + "question_cspider": "找出总计为他或她的狗花了最多钱的主人的ID和邮政编码。", + "bleu_from_cspider_question": "BLEU = 43.19, 73.3/44.8/35.7/29.6 (BP=1.000, ratio=1.111, hyp_len=30, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 4, + 49, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.professional_id", + ",", + "T1.cell_number", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "cell_number", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", + "question": "哪些专家至少做过两种治疗?列出他们的专业ID和手机号码。", + "question_cspider": "哪些专家至少做过两种治疗?列出他们的专业ID和手机号码。", + "bleu_from_cspider_question": "BLEU = 48.23, 76.9/60.0/45.8/34.8 (BP=0.926, ratio=0.929, hyp_len=26, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.professional_id", + ",", + "T1.cell_number", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "cell_number", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question_spider": "Find the id and cell phone of the professionals who operate two or more types of treatments.", + "question": "找出做过两种或更多种治疗的专业人员的ID和手机号码。", + "question_cspider": "找出做过两种或更多种治疗的专业人员的ID和手机号码。", + "bleu_from_cspider_question": "BLEU = 46.32, 75.0/56.5/45.5/33.3 (BP=0.920, ratio=0.923, hyp_len=24, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T1.last_name", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "WHERE", + "cost_of_treatment", + "<", + "(", + "SELECT", + "avg", + "(", + "cost_of_treatment", + ")", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "last_name", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "where", + "cost_of_treatment", + "<", + "(", + "select", + "avg", + "(", + "cost_of_treatment", + ")", + "from", + "treatments", + ")" + ], + "question_spider": "What are the first name and last name of the professionals who have done treatment with cost below average?", + "question": "治疗费用低于平均的专家的名字和姓氏是什么?", + "question_cspider": "治疗费用低于平均的专家的名字和姓氏是什么?", + "bleu_from_cspider_question": "BLEU = 65.86, 80.0/70.8/60.9/54.5 (BP=1.000, ratio=1.190, hyp_len=25, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 49, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 49, + 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": "dog_kennels", + "query": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T1.last_name", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "WHERE", + "cost_of_treatment", + "<", + "(", + "SELECT", + "avg", + "(", + "cost_of_treatment", + ")", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "last_name", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "where", + "cost_of_treatment", + "<", + "(", + "select", + "avg", + "(", + "cost_of_treatment", + ")", + "from", + "treatments", + ")" + ], + "question_spider": "Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.", + "question": "哪些专家的���疗费用低于平均水平?给出名字和姓氏。", + "question_cspider": "哪些专家的治疗费用低于平均水平?给出名字和姓氏。", + "bleu_from_cspider_question": "BLEU = 58.25, 71.0/63.3/55.2/46.4 (BP=1.000, ratio=1.292, hyp_len=31, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 49, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 49, + 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": "dog_kennels", + "query": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", + "query_toks": [ + "SELECT", + "T1.date_of_treatment", + ",", + "T2.first_name", + "FROM", + "Treatments", + "AS", + "T1", + "JOIN", + "Professionals", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "date_of_treatment", + ",", + "t2", + ".", + "first_name", + "from", + "treatments", + "as", + "t1", + "join", + "professionals", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id" + ], + "question_spider": "List the date of each treatment, together with the first name of the professional who operated it.", + "question": "列出每个治疗的日期,以及操作它的专业人员的名字。", + "question_cspider": "列出每个治疗的日期,以及操作它的专业人员的名字。", + "bleu_from_cspider_question": "BLEU = 61.81, 76.9/68.0/58.3/47.8 (BP=1.000, ratio=1.083, hyp_len=26, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ], + [ + "table_unit", + 6 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 46, + false + ], + null + ], + [ + 0, + 33, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", + "query_toks": [ + "SELECT", + "T1.date_of_treatment", + ",", + "T2.first_name", + "FROM", + "Treatments", + "AS", + "T1", + "JOIN", + "Professionals", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "date_of_treatment", + ",", + "t2", + ".", + "first_name", + "from", + "treatments", + "as", + "t1", + "join", + "professionals", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id" + ], + "question_spider": "What are the date and the operating professional's first name of each treatment?", + "question": "每次治疗的日期和操作专业人员的名字是什么?", + "question_cspider": "每次治疗的日期和操作专业人员的名字是什么?", + "bleu_from_cspider_question": "BLEU = 72.00, 85.7/75.0/68.4/61.1 (BP=1.000, ratio=1.000, hyp_len=21, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ], + [ + "table_unit", + 6 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 46, + false + ], + null + ], + [ + 0, + 33, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", + "query_toks": [ + "SELECT", + "T1.cost_of_treatment", + ",", + "T2.treatment_type_description", + "FROM", + "Treatments", + "AS", + "T1", + "JOIN", + "treatment_types", + "AS", + "T2", + "ON", + "T1.treatment_type_code", + "=", + "T2.treatment_type_code" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "cost_of_treatment", + ",", + "t2", + ".", + "treatment_type_description", + "from", + "treatments", + "as", + "t1", + "join", + "treatment_types", + "as", + "t2", + "on", + "t1", + ".", + "treatment_type_code", + "=", + "t2", + ".", + "treatment_type_code" + ], + "question_spider": "List the cost of each treatment and the corresponding treatment type description.", + "question": "列出每种治疗的费用和相应的治疗类型描述。", + "question_cspider": "列出每种治疗的费用和相应的治疗类型描述。", + "bleu_from_cspider_question": "BLEU = 66.78, 81.0/70.0/63.2/55.6 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 47, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", + "query_toks": [ + "SELECT", + "T1.cost_of_treatment", + ",", + "T2.treatment_type_description", + "FROM", + "Treatments", + "AS", + "T1", + "JOIN", + "treatment_types", + "AS", + "T2", + "ON", + "T1.treatment_type_code", + "=", + "T2.treatment_type_code" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "cost_of_treatment", + ",", + "t2", + ".", + "treatment_type_description", + "from", + "treatments", + "as", + "t1", + "join", + "treatment_types", + "as", + "t2", + "on", + "t1", + ".", + "treatment_type_code", + "=", + "t2", + ".", + "treatment_type_code" + ], + "question_spider": "What are the cost and treatment type description of each treatment?", + "question": "每个治疗的费用和治疗类型描述是什么?", + "question_cspider": "每个治疗的费用和治疗类型描述是什么?", + "bleu_from_cspider_question": "BLEU = 89.16, 94.4/88.2/87.5/86.7 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 47, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.last_name", + ",", + "T2.size_code", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "last_name", + ",", + "t2", + ".", + "size_code", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id" + ], + "question_spider": "List each owner's first name, last name, and the size of his for her dog.", + "question": "列出每个主人的名字、姓氏和他的狗的大小。", + "question_cspider": "列出每个主人的名字、姓氏和他的狗的大小。", + "bleu_from_cspider_question": "BLEU = 65.39, 94.4/82.4/68.8/53.3 (BP=0.895, ratio=0.900, hyp_len=18, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.last_name", + ",", + "T2.size_code", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "last_name", + ",", + "t2", + ".", + "size_code", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id" + ], + "question_spider": "What are each owner's first name, last name, and the size of their dog?", + "question": "每个主人的名字、姓氏和他们的狗的大小是什么?", + "question_cspider": "每个主人的名字、姓氏和他们的狗的大小是什么?", + "bleu_from_cspider_question": "BLEU = 49.34, 84.2/66.7/52.9/37.5 (BP=0.854, ratio=0.864, hyp_len=19, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T2.name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t2", + ".", + "name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id" + ], + "question_spider": "List pairs of the owner's first name and the dogs's name.", + "question": "列出主人的名字和狗的名字对。", + "question_cspider": "列出主人的名字和狗的名字对。", + "bleu_from_cspider_question": "BLEU = 65.09, 87.5/66.7/57.1/53.8 (BP=1.000, ratio=1.143, hyp_len=16, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T2.name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t2", + ".", + "name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id" + ], + "question_spider": "What are each owner's first name and their dogs's name?", + "question": "每个主人的名字和他们的狗的名字是什么?", + "question_cspider": "每个主人的名字和他们的狗的名字是什么?", + "bleu_from_cspider_question": "BLEU = 73.43, 100.0/93.3/85.7/76.9 (BP=0.829, ratio=0.842, hyp_len=16, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )", + "query_toks": [ + "SELECT", + "T1.name", + ",", + "T2.date_of_treatment", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.dog_id", + "=", + "T2.dog_id", + "WHERE", + "T1.breed_code", + "=", + "(", + "SELECT", + "breed_code", + "FROM", + "Dogs", + "GROUP", + "BY", + "breed_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t2", + ".", + "date_of_treatment", + "from", + "dogs", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "dog_id", + "=", + "t2", + ".", + "dog_id", + "where", + "t1", + ".", + "breed_code", + "=", + "(", + "select", + "breed_code", + "from", + "dogs", + "group", + "by", + "breed_code", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value", + ")" + ], + "question_spider": "List the names of the dogs of the rarest breed and the treatment dates of them.", + "question": "列出最稀有品种的狗的名字和它们的治疗日期。", + "question_cspider": "列出最稀有品种的狗的名字和它们的治疗日期。", + "bleu_from_cspider_question": "BLEU = 71.22, 89.5/83.3/76.5/68.8 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )", + "query_toks": [ + "SELECT", + "T1.name", + ",", + "T2.date_of_treatment", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.dog_id", + "=", + "T2.dog_id", + "WHERE", + "T1.breed_code", + "=", + "(", + "SELECT", + "breed_code", + "FROM", + "Dogs", + "GROUP", + "BY", + "breed_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t2", + ".", + "date_of_treatment", + "from", + "dogs", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "dog_id", + "=", + "t2", + ".", + "dog_id", + "where", + "t1", + ".", + "breed_code", + "=", + "(", + "select", + "breed_code", + "from", + "dogs", + "group", + "by", + "breed_code", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value", + ")" + ], + "question_spider": "Which dogs are of the rarest breed? Show their names and treatment dates.", + "question": "哪种狗最稀有?显示他们的名字和治疗日期。", + "question_cspider": "哪种狗最稀有?显示他们的名字和治疗日期。", + "bleu_from_cspider_question": "BLEU = 70.45, 87.0/77.3/66.7/55.0 (BP=1.000, ratio=1.150, hyp_len=23, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T2.name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "WHERE", + "T1.state", + "=", + "'Virginia", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t2", + ".", + "name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "where", + "t1", + ".", + "state", + "=", + "value" + ], + "question_spider": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.", + "question": "哪些狗是在“山西”的人拥有的?列出主人的名字和狗的名字。", + "question_cspider": "哪些狗是在“山西”的人拥有的?列出主人的名字和狗的名字。", + "bleu_from_cspider_question": "BLEU = 55.92, 75.0/59.3/50.0/44.0 (BP=1.000, ratio=1.000, hyp_len=28, ref_len=28)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"Virginia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T2.name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "WHERE", + "T1.state", + "=", + "'Virginia", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t2", + ".", + "name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "where", + "t1", + ".", + "state", + "=", + "value" + ], + "question_spider": "Find the first names of owners living in Virginia and the names of dogs they own.", + "question": "找出居住在“山西”的主人的名字和他们拥有的狗的名字。", + "question_cspider": "找出居住在“山西”的主人的名字和他们拥有的狗的名字。", + "bleu_from_cspider_question": "BLEU = 53.94, 71.4/59.3/50.0/40.0 (BP=1.000, ratio=1.077, hyp_len=28, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"Virginia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.date_arrived", + ",", + "T1.date_departed", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.dog_id", + "=", + "T2.dog_id" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "date_arrived", + ",", + "t1", + ".", + "date_departed", + "from", + "dogs", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "dog_id", + "=", + "t2", + ".", + "dog_id" + ], + "question_spider": "What are the arriving date and the departing date of the dogs who have gone through a treatment?", + "question": "接受治疗的狗的住院日期和出院日期是什么?", + "question_cspider": "接受治疗的狗的住院日期和出院日期是什么?", + "bleu_from_cspider_question": "BLEU = 47.98, 70.0/57.9/44.4/29.4 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 30, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.date_arrived", + ",", + "T1.date_departed", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.dog_id", + "=", + "T2.dog_id" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "date_arrived", + ",", + "t1", + ".", + "date_departed", + "from", + "dogs", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "dog_id", + "=", + "t2", + ".", + "dog_id" + ], + "question_spider": "Find the arriving date and the departing date of the dogs that received a treatment.", + "question": "找出接受治疗的狗的住院日期和出院日期。", + "question_cspider": "找出接受治疗的狗的住院日期和出院日期。", + "bleu_from_cspider_question": "BLEU = 45.31, 73.7/55.6/41.2/25.0 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 30, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )", + "query_toks": [ + "SELECT", + "T1.last_name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "WHERE", + "T2.age", + "=", + "(", + "SELECT", + "max", + "(", + "age", + ")", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "last_name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "where", + "t2", + ".", + "age", + "=", + "(", + "select", + "max", + "(", + "age", + ")", + "from", + "dogs", + ")" + ], + "question_spider": "List the last name of the owner owning the youngest dog.", + "question": "列出拥有年纪最小的狗的主人的姓氏。", + "question_cspider": "列出拥有年纪最小的狗的主人的姓氏。", + "bleu_from_cspider_question": "BLEU = 54.43, 93.3/71.4/53.8/41.7 (BP=0.875, ratio=0.882, hyp_len=15, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 26, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 26, + 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": "dog_kennels", + "query": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )", + "query_toks": [ + "SELECT", + "T1.last_name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "WHERE", + "T2.age", + "=", + "(", + "SELECT", + "max", + "(", + "age", + ")", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "last_name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "where", + "t2", + ".", + "age", + "=", + "(", + "select", + "max", + "(", + "age", + ")", + "from", + "dogs", + ")" + ], + "question_spider": "Who owns the youngest dog? Give me his or her last name.", + "question": "谁拥有年纪最小的狗?给我他或她的姓氏。", + "question_cspider": "谁拥有年纪最小的狗?给我他或她的姓氏。", + "bleu_from_cspider_question": "BLEU = 79.47, 100.0/93.8/86.7/78.6 (BP=0.889, ratio=0.895, hyp_len=17, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 26, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 26, + 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": "dog_kennels", + "query": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", + "query_toks": [ + "SELECT", + "email_address", + "FROM", + "Professionals", + "WHERE", + "state", + "=", + "'Hawaii", + "'", + "OR", + "state", + "=", + "'Wisconsin", + "'" + ], + "query_toks_no_value": [ + "select", + "email_address", + "from", + "professionals", + "where", + "state", + "=", + "value", + "or", + "state", + "=", + "value" + ], + "question_spider": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", + "question": "列出居住在“台湾”省或“福建”省的专家的电子邮件。", + "question_cspider": "列出居住在“台湾”省或“福建”省的专家的电子邮件。", + "bleu_from_cspider_question": "BLEU = 34.19, 53.8/40.0/29.2/21.7 (BP=1.000, ratio=1.040, hyp_len=26, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Hawaii\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Wisconsin\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", + "query_toks": [ + "SELECT", + "email_address", + "FROM", + "Professionals", + "WHERE", + "state", + "=", + "'Hawaii", + "'", + "OR", + "state", + "=", + "'Wisconsin", + "'" + ], + "query_toks_no_value": [ + "select", + "email_address", + "from", + "professionals", + "where", + "state", + "=", + "value", + "or", + "state", + "=", + "value" + ], + "question_spider": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?", + "question": "居住在“台湾”省或“福建”省的专家的电子邮件是什么?", + "question_cspider": "居住在“台湾”省或“福建”省的专家的电子邮件是什么?", + "bleu_from_cspider_question": "BLEU = 32.87, 48.1/34.6/28.0/25.0 (BP=1.000, ratio=1.038, hyp_len=27, ref_len=26)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Hawaii\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Wisconsin\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT date_arrived , date_departed FROM Dogs", + "query_toks": [ + "SELECT", + "date_arrived", + ",", + "date_departed", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "date_arrived", + ",", + "date_departed", + "from", + "dogs" + ], + "question_spider": "What are the arriving date and the departing date of all the dogs?", + "question": "所有狗的住院日期和出院日期是什么?", + "question_cspider": "所有狗的住院日期和出院日期是什么?", + "bleu_from_cspider_question": "BLEU = 50.24, 76.5/62.5/46.7/28.6 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 30, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT date_arrived , date_departed FROM Dogs", + "query_toks": [ + "SELECT", + "date_arrived", + ",", + "date_departed", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "date_arrived", + ",", + "date_departed", + "from", + "dogs" + ], + "question_spider": "List the arrival date and the departure date for all the dogs.", + "question": "列出所有狗的住院日期和出院日期。", + "question_cspider": "列出所有狗的住院日期和出院日期。", + "bleu_from_cspider_question": "BLEU = 45.93, 75.0/60.0/42.9/23.1 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 30, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(DISTINCT dog_id) FROM Treatments", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "dog_id", + ")", + "FROM", + "Treatments" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "dog_id", + ")", + "from", + "treatments" + ], + "question_spider": "How many dogs went through any treatments?", + "question": "有多少狗经过治疗?", + "question_cspider": "有多少狗经过治疗?", + "bleu_from_cspider_question": "BLEU = 0.00, 61.5/33.3/18.2/0.0 (BP=1.000, ratio=1.444, hyp_len=13, ref_len=9)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 45, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(DISTINCT dog_id) FROM Treatments", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "dog_id", + ")", + "FROM", + "Treatments" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "dog_id", + ")", + "from", + "treatments" + ], + "question_spider": "Count the number of dogs that went through a treatment.", + "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=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 45, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(DISTINCT professional_id) FROM Treatments", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "professional_id", + ")", + "FROM", + "Treatments" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "professional_id", + ")", + "from", + "treatments" + ], + "question_spider": "How many professionals have performed any treatment to dogs?", + "question": "有多少专家对狗进行过治疗?", + "question_cspider": "有多少专家对狗进行过治疗?", + "bleu_from_cspider_question": "BLEU = 42.95, 70.6/56.2/40.0/21.4 (BP=1.000, ratio=1.308, hyp_len=17, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 46, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(DISTINCT professional_id) FROM Treatments", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "professional_id", + ")", + "FROM", + "Treatments" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "professional_id", + ")", + "from", + "treatments" + ], + "question_spider": "Find the number of professionals who have ever treated dogs.", + "question": "找出曾经治疗过狗的专业人员的数量。", + "question_cspider": "找出曾经治疗过狗的专业人员的数量。", + "bleu_from_cspider_question": "BLEU = 71.18, 93.8/80.0/71.4/61.5 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 46, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", + "query_toks": [ + "SELECT", + "role_code", + ",", + "street", + ",", + "city", + ",", + "state", + "FROM", + "professionals", + "WHERE", + "city", + "LIKE", + "'", + "%", + "West", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "role_code", + ",", + "street", + ",", + "city", + ",", + "state", + "from", + "professionals", + "where", + "city", + "like", + "value" + ], + "question_spider": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.", + "question": "哪些专家居住在一个包含“西”字的城市?列出他或她的角色,街道,城市和州。", + "question_cspider": "哪些专家居住在一个包含“西”字的城市?列出他或她的角色,街道,城市和州。", + "bleu_from_cspider_question": "BLEU = 53.00, 73.8/58.5/47.5/38.5 (BP=1.000, ratio=1.167, hyp_len=42, ref_len=36)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 37, + false + ], + null + ], + "\"%West%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", + "query_toks": [ + "SELECT", + "role_code", + ",", + "street", + ",", + "city", + ",", + "state", + "FROM", + "professionals", + "WHERE", + "city", + "LIKE", + "'", + "%", + "West", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "role_code", + ",", + "street", + ",", + "city", + ",", + "state", + "from", + "professionals", + "where", + "city", + "like", + "value" + ], + "question_spider": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.", + "question": "找出居住在包含子字符串“西”的城市的专家的角色,街道,城市和州。", + "question_cspider": "找出居住在包含子字符串“西”的城市的专家的角色,街道,城市和州。", + "bleu_from_cspider_question": "BLEU = 50.69, 76.3/56.8/44.4/34.3 (BP=1.000, ratio=1.188, hyp_len=38, ref_len=32)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 37, + false + ], + null + ], + "\"%West%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + ",", + "email_address", + "FROM", + "Owners", + "WHERE", + "state", + "LIKE", + "'", + "%", + "North", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + ",", + "email_address", + "from", + "owners", + "where", + "state", + "like", + "value" + ], + "question_spider": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.", + "question": "哪些主人居住在名称中包含子字符串“北”的州?列出他的名字、姓氏和电子邮件。", + "question_cspider": "哪些主人居住在名称中包含子字符串“北”的州?列出他的名字、姓氏和电子邮件。", + "bleu_from_cspider_question": "BLEU = 65.65, 78.0/70.0/61.5/55.3 (BP=1.000, ratio=1.108, hyp_len=41, ref_len=37)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"%North%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + ",", + "email_address", + "FROM", + "Owners", + "WHERE", + "state", + "LIKE", + "'", + "%", + "North", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + ",", + "email_address", + "from", + "owners", + "where", + "state", + "like", + "value" + ], + "question_spider": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", + "question": "返回居住在名称包含子字符串“北”的州的所有者的姓氏、姓氏和电子邮件。", + "question_cspider": "返回居住在名称包含子字符串“北”的州的所有者的姓氏、姓氏和电子邮件。", + "bleu_from_cspider_question": "BLEU = 62.89, 76.9/68.4/59.5/50.0 (BP=1.000, ratio=1.147, hyp_len=39, ref_len=34)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"%North%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Dogs", + "WHERE", + "age", + "<", + "(", + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "age", + "<", + "(", + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs", + ")" + ], + "question_spider": "How many dogs have an age below the average?", + "question": "有多少狗的年龄低于平均年龄?", + "question_cspider": "有多少狗的年龄低于平均年龄?", + "bleu_from_cspider_question": "BLEU = 76.32, 84.6/83.3/81.8/80.0 (BP=0.926, ratio=0.929, hyp_len=13, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 26, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + 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": "dog_kennels", + "query": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Dogs", + "WHERE", + "age", + "<", + "(", + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "age", + "<", + "(", + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs", + ")" + ], + "question_spider": "Count the number of dogs of an age below the average.", + "question": "计算年龄低于平均的狗的数量。", + "question_cspider": "计算年龄低于平均的狗的数量。", + "bleu_from_cspider_question": "BLEU = 61.15, 100.0/76.9/50.0/36.4 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 26, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + 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": "dog_kennels", + "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", + "query_toks": [ + "SELECT", + "cost_of_treatment", + "FROM", + "Treatments", + "ORDER", + "BY", + "date_of_treatment", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "cost_of_treatment", + "from", + "treatments", + "order", + "by", + "date_of_treatment", + "desc", + "limit", + "value" + ], + "question_spider": "How much does the most recent treatment cost?", + "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=11, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", + "query_toks": [ + "SELECT", + "cost_of_treatment", + "FROM", + "Treatments", + "ORDER", + "BY", + "date_of_treatment", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "cost_of_treatment", + "from", + "treatments", + "order", + "by", + "date_of_treatment", + "desc", + "limit", + "value" + ], + "question_spider": "Show me the cost of the most recently performed treatment.", + "question": "给我看看最近执行的治疗费用。", + "question_cspider": "给我看看最近执行的治疗费用。", + "bleu_from_cspider_question": "BLEU = 69.31, 78.6/69.2/66.7/63.6 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Dogs", + "WHERE", + "dog_id", + "NOT", + "IN", + "(", + "SELECT", + "dog_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "question_spider": "How many dogs have not gone through any treatment?", + "question": "有多少狗没有经过任何治疗?", + "question_cspider": "有多少狗没有经过任何治疗?", + "bleu_from_cspider_question": "BLEU = 43.75, 78.6/61.5/41.7/18.2 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + 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": "dog_kennels", + "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "question_spider": "Tell me the number of dogs that have not received any treatment .", + "question": "告诉我没有接受治疗的狗的数量。", + "question_cspider": "告诉��接受治疗的狗的数量。", + "bleu_from_cspider_question": "BLEU = 26.58, 57.1/38.5/25.0/9.1 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + 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": "dog_kennels", + "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Owners", + "WHERE", + "owner_id", + "NOT", + "IN", + "(", + "SELECT", + "owner_id", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "owners", + "where", + "owner_id", + "not", + "in", + "(", + "select", + "owner_id", + "from", + "dogs", + ")" + ], + "question_spider": "How many owners temporarily do not have any dogs?", + "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=11, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 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": "dog_kennels", + "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Owners", + "WHERE", + "owner_id", + "NOT", + "IN", + "(", + "SELECT", + "owner_id", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "owners", + "where", + "owner_id", + "not", + "in", + "(", + "select", + "owner_id", + "from", + "dogs", + ")" + ], + "question_spider": "Find the number of owners who do not own any dogs at this moment.", + "question": "找到在现在不拥有任何狗的主人。", + "question_cspider": "找到在现在不拥有任何狗的主人。", + "bleu_from_cspider_question": "BLEU = 34.82, 50.0/35.3/31.2/26.7 (BP=1.000, ratio=1.200, hyp_len=18, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 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": "dog_kennels", + "query": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Professionals", + "WHERE", + "professional_id", + "NOT", + "IN", + "(", + "SELECT", + "professional_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "professionals", + "where", + "professional_id", + "not", + "in", + "(", + "select", + "professional_id", + "from", + "treatments", + ")" + ], + "question_spider": "How many professionals did not operate any treatment on dogs?", + "question": "有多少专家没有对狗进行任何治疗?", + "question_cspider": "有多少专家没有对狗进行任何治疗?", + "bleu_from_cspider_question": "BLEU = 71.60, 83.3/76.5/68.8/60.0 (BP=1.000, ratio=1.125, hyp_len=18, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + 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": "dog_kennels", + "query": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Professionals", + "WHERE", + "professional_id", + "NOT", + "IN", + "(", + "SELECT", + "professional_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "professionals", + "where", + "professional_id", + "not", + "in", + "(", + "select", + "professional_id", + "from", + "treatments", + ")" + ], + "question_spider": "Find the number of professionals who have not treated any dogs.", + "question": "找出没有治疗过狗的专家的数量。", + "question_cspider": "找出没有治疗过狗的专家的数量。", + "bleu_from_cspider_question": "BLEU = 0.00, 56.2/33.3/14.3/0.0 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + 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": "dog_kennels", + "query": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", + "query_toks": [ + "SELECT", + "name", + ",", + "age", + ",", + "weight", + "FROM", + "Dogs", + "WHERE", + "abandoned_yn", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "age", + ",", + "weight", + "from", + "dogs", + "where", + "abandoned_yn", + "=", + "value" + ], + "question_spider": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", + "question": "列出被遗弃的狗的名字、年龄和体重。1代表是,0代表不。", + "question_cspider": "列出被遗弃的狗的名字、年龄和体重。1代表是,0代表不。", + "bleu_from_cspider_question": "BLEU = 72.17, 88.9/76.9/68.0/58.3 (BP=1.000, ratio=1.000, hyp_len=27, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + 1.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", + "query_toks": [ + "SELECT", + "name", + ",", + "age", + ",", + "weight", + "FROM", + "Dogs", + "WHERE", + "abandoned_yn", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "age", + ",", + "weight", + "from", + "dogs", + "where", + "abandoned_yn", + "=", + "value" + ], + "question_spider": "What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.", + "question": "被遗弃的狗的名字、年龄和体重是多少?注意在表中1表示是,0表示不。", + "question_cspider": "被遗弃的狗的名字、年龄和体重是多少?注意在表中1表示是,0表示不。", + "bleu_from_cspider_question": "BLEU = 60.31, 84.8/65.6/54.8/43.3 (BP=1.000, ratio=1.000, hyp_len=33, ref_len=33)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + 1.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT avg(age) FROM Dogs", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs" + ], + "question_spider": "What is the average age of all the dogs?", + "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=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT avg(age) FROM Dogs", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs" + ], + "question_spider": "Compute the average age of all the dogs.", + "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=11, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT max(age) FROM Dogs", + "query_toks": [ + "SELECT", + "max", + "(", + "age", + ")", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "age", + ")", + "from", + "dogs" + ], + "question_spider": "What is the age of the oldest dog?", + "question": "最老的狗的年龄是多少?", + "question_cspider": "最老的狗的年龄是多少?", + "bleu_from_cspider_question": "BLEU = 24.55, 71.4/50.0/40.0/25.0 (BP=0.565, ratio=0.636, hyp_len=7, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT max(age) FROM Dogs", + "query_toks": [ + "SELECT", + "max", + "(", + "age", + ")", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "age", + ")", + "from", + "dogs" + ], + "question_spider": "Tell me the age of the oldest dog.", + "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=11, ref_len=11)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT charge_type , charge_amount FROM Charges", + "query_toks": [ + "SELECT", + "charge_type", + ",", + "charge_amount", + "FROM", + "Charges" + ], + "query_toks_no_value": [ + "select", + "charge_type", + ",", + "charge_amount", + "from", + "charges" + ], + "question_spider": "How much does each charge type costs? List both charge type and amount.", + "question": "每个收费类型要多少钱?列出费用类型及其金额。", + "question_cspider": "每个收费类型要多少钱?列出费用类型及其金额。", + "bleu_from_cspider_question": "BLEU = 44.27, 73.9/54.5/38.1/25.0 (BP=1.000, ratio=1.045, hyp_len=23, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT charge_type , charge_amount FROM Charges", + "query_toks": [ + "SELECT", + "charge_type", + ",", + "charge_amount", + "FROM", + "Charges" + ], + "query_toks_no_value": [ + "select", + "charge_type", + ",", + "charge_amount", + "from", + "charges" + ], + "question_spider": "List each charge type and its amount.", + "question": "列出每个费用类型及其金额。", + "question_cspider": "列出每个费用类型及其金额。", + "bleu_from_cspider_question": "BLEU = 76.12, 92.3/83.3/72.7/60.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT max(charge_amount) FROM Charges", + "query_toks": [ + "SELECT", + "max", + "(", + "charge_amount", + ")", + "FROM", + "Charges" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "charge_amount", + ")", + "from", + "charges" + ], + "question_spider": "How much does the most expensive charge type costs?", + "question": "最贵的收费类型要多少钱?", + "question_cspider": "最贵的收费类型要多少钱?", + "bleu_from_cspider_question": "BLEU = 29.50, 75.0/45.5/20.0/11.1 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT max(charge_amount) FROM Charges", + "query_toks": [ + "SELECT", + "max", + "(", + "charge_amount", + ")", + "FROM", + "Charges" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "charge_amount", + ")", + "from", + "charges" + ], + "question_spider": "What is the charge amount of the most expensive charge type?", + "question": "最贵的收费类型的金额是多少?", + "question_cspider": "最贵的收费类型的金额是多少?", + "bleu_from_cspider_question": "BLEU = 25.34, 62.5/40.0/21.4/7.7 (BP=1.000, ratio=1.143, hyp_len=16, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT email_address , cell_number , home_phone FROM professionals", + "query_toks": [ + "SELECT", + "email_address", + ",", + "cell_number", + ",", + "home_phone", + "FROM", + "professionals" + ], + "query_toks_no_value": [ + "select", + "email_address", + ",", + "cell_number", + ",", + "home_phone", + "from", + "professionals" + ], + "question_spider": "List the email, cell phone and home phone of all the professionals.", + "question": "列出所有专家的电子邮件、手机号码和家庭电话。", + "question_cspider": "列出所有专家的电子邮件、手机号码和家庭电话。", + "bleu_from_cspider_question": "BLEU = 56.30, 81.8/66.7/50.0/36.8 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT email_address , cell_number , home_phone FROM professionals", + "query_toks": [ + "SELECT", + "email_address", + ",", + "cell_number", + ",", + "home_phone", + "FROM", + "professionals" + ], + "query_toks_no_value": [ + "select", + "email_address", + ",", + "cell_number", + ",", + "home_phone", + "from", + "professionals" + ], + "question_spider": "What are the email, cell phone and home phone of each professional?", + "question": "每个专家的电子邮件、手机号码和家庭电话是什么?", + "question_cspider": "每个专家的电子邮件、手机号码和家庭电话是什么?", + "bleu_from_cspider_question": "BLEU = 58.61, 82.6/68.2/52.4/40.0 (BP=1.000, ratio=1.000, hyp_len=23, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT breed_code , size_code FROM dogs", + "query_toks": [ + "SELECT", + "DISTINCT", + "breed_code", + ",", + "size_code", + "FROM", + "dogs" + ], + "query_toks_no_value": [ + "select", + "distinct", + "breed_code", + ",", + "size_code", + "from", + "dogs" + ], + "question_spider": "What are all the possible breed type and size type combinations?", + "question": "所有品种类型和大小的组合是什么?", + "question_cspider": "所有品种类型和大小的组合是什么?", + "bleu_from_cspider_question": "BLEU = 56.79, 80.0/63.2/50.0/41.2 (BP=1.000, ratio=1.250, hyp_len=20, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT breed_code , size_code FROM dogs", + "query_toks": [ + "SELECT", + "DISTINCT", + "breed_code", + ",", + "size_code", + "FROM", + "dogs" + ], + "query_toks_no_value": [ + "select", + "distinct", + "breed_code", + ",", + "size_code", + "from", + "dogs" + ], + "question_spider": "Find the distinct breed type and size type combinations for dogs.", + "question": "找出不同的狗品种类型和体型的组合。", + "question_cspider": "找出不同的狗品种类型和体型的组合。", + "bleu_from_cspider_question": "BLEU = 45.83, 83.3/52.9/37.5/26.7 (BP=1.000, ratio=1.059, hyp_len=18, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T3.treatment_type_description", + "FROM", + "professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "JOIN", + "Treatment_types", + "AS", + "T3", + "ON", + "T2.treatment_type_code", + "=", + "T3.treatment_type_code" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t3", + ".", + "treatment_type_description", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "join", + "treatment_types", + "as", + "t3", + "on", + "t2", + ".", + "treatment_type_code", + "=", + "t3", + ".", + "treatment_type_code" + ], + "question_spider": "List the first name of all the professionals along with the description of the treatment they have done.", + "question": "列出所有专家的名字以及他们已经做治疗的描述。", + "question_cspider": "列出所有专家的名字以及他们已经做治疗的描述。", + "bleu_from_cspider_question": "BLEU = 55.67, 72.0/62.5/52.2/40.9 (BP=1.000, ratio=1.136, hyp_len=25, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 47, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T3.treatment_type_description", + "FROM", + "professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "JOIN", + "Treatment_types", + "AS", + "T3", + "ON", + "T2.treatment_type_code", + "=", + "T3.treatment_type_code" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t3", + ".", + "treatment_type_description", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "join", + "treatment_types", + "as", + "t3", + "on", + "t2", + ".", + "treatment_type_code", + "=", + "t3", + ".", + "treatment_type_code" + ], + "question_spider": "What are each professional's first name and description of the treatment they have performed?", + "question": "每个专家的名字和所实施的治疗的描述是什么?", + "question_cspider": "每个专家的名字和所实施的治疗的描述是什么?", + "bleu_from_cspider_question": "BLEU = 49.63, 70.8/56.5/45.5/33.3 (BP=1.000, ratio=1.143, hyp_len=24, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 47, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT count(*) FROM singer", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "singer" + ], + "question_spider": "How many singers are there?", + "question": "有多少歌手?", + "question_cspider": "有多少歌手?", + "bleu_from_cspider_question": "BLEU = 68.04, 75.0/71.4/66.7/60.0 (BP=1.000, ratio=1.333, hyp_len=8, ref_len=6)", + "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": "singer", + "query": "SELECT count(*) FROM singer", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "singer" + ], + "question_spider": "What is the count of singers?", + "question": "歌手的总数是多少?", + "question_cspider": "歌手的总数是多少?", + "bleu_from_cspider_question": "BLEU = 59.69, 88.9/75.0/57.1/33.3 (BP=1.000, ratio=1.000, hyp_len=9, ref_len=9)", + "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": "singer", + "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "ORDER", + "BY", + "Net_Worth_Millions", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "order", + "by", + "net_worth_millions", + "asc" + ], + "question_spider": "List the name of singers in ascending order of net worth.", + "question": "按净资产升序排列歌手姓名。", + "question_cspider": "按净资产升序排列歌手姓名。", + "bleu_from_cspider_question": "BLEU = 0.00, 64.3/30.8/8.3/0.0 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "ORDER", + "BY", + "Net_Worth_Millions", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "order", + "by", + "net_worth_millions", + "asc" + ], + "question_spider": "What are the names of singers ordered by ascending net worth?", + "question": "按净资产升序排序的歌手的名字是什么?", + "question_cspider": "按净资产升序排序的歌手的名字是什么?", + "bleu_from_cspider_question": "BLEU = 67.48, 93.3/85.7/76.9/75.0 (BP=0.819, ratio=0.833, hyp_len=15, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Birth_Year , Citizenship FROM singer", + "query_toks": [ + "SELECT", + "Birth_Year", + ",", + "Citizenship", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "birth_year", + ",", + "citizenship", + "from", + "singer" + ], + "question_spider": "What are the birth year and citizenship of singers?", + "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=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Birth_Year , Citizenship FROM singer", + "query_toks": [ + "SELECT", + "Birth_Year", + ",", + "Citizenship", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "birth_year", + ",", + "citizenship", + "from", + "singer" + ], + "question_spider": "What are the birth years and citizenships of the singers?", + "question": "歌手的出生年份和国籍是什么?", + "question_cspider": "歌手的出生年份和国籍是什么?", + "bleu_from_cspider_question": "BLEU = 78.25, 92.9/84.6/75.0/63.6 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Citizenship != \"France\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Citizenship", + "!", + "=", + "``", + "France", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "citizenship", + "!", + "=", + "value" + ], + "question_spider": "List the name of singers whose citizenship is not \"France\".", + "question": "列出国籍不是“法国”的歌手的名字。", + "question_cspider": "列出国籍不是“巴黎”的歌手的名字。", + "bleu_from_cspider_question": "BLEU = 26.78, 82.4/43.8/20.0/7.1 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"France\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Citizenship != \"France\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Citizenship", + "!", + "=", + "``", + "France", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "citizenship", + "!", + "=", + "value" + ], + "question_spider": "What are the names of the singers who are not French citizens?", + "question": "那些不是“法国”公民的歌手的名字是什么?", + "question_cspider": "那些不是“法国”公民的歌手的名字是什么?", + "bleu_from_cspider_question": "BLEU = 63.01, 100.0/86.7/71.4/69.2 (BP=0.779, ratio=0.800, hyp_len=16, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"France\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Birth_Year", + "=", + "1948", + "OR", + "Birth_Year", + "=", + "1949" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "birth_year", + "=", + "value", + "or", + "birth_year", + "=", + "value" + ], + "question_spider": "Show the name of singers whose birth year is either 1948 or 1949?", + "question": "显示出生年份是1948年或1949年的歌手的名字", + "question_cspider": "显示出生年份是1948年或1949年的歌手的名字", + "bleu_from_cspider_question": "BLEU = 91.82, 92.3/92.0/91.7/91.3 (BP=1.000, ratio=1.083, hyp_len=26, ref_len=24)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1948.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1949.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Birth_Year", + "=", + "1948", + "OR", + "Birth_Year", + "=", + "1949" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "birth_year", + "=", + "value", + "or", + "birth_year", + "=", + "value" + ], + "question_spider": "What are the names of the singers whose birth years are either 1948 or 1949?", + "question": "1948年或1949年出生的歌手的名字是什么?", + "question_cspider": "1948年或1949年出生的歌手的名字是什么?", + "bleu_from_cspider_question": "BLEU = 75.62, 88.5/80.0/70.8/65.2 (BP=1.000, ratio=1.130, hyp_len=26, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1948.0, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1949.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "ORDER", + "BY", + "Net_Worth_Millions", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "order", + "by", + "net_worth_millions", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the singer with the largest net worth?", + "question": "拥有身家最富有歌手叫什么名字?", + "question_cspider": "拥有最大净资产的歌手叫什么名字?", + "bleu_from_cspider_question": "BLEU = 55.70, 84.6/75.0/63.6/60.0 (BP=0.794, ratio=0.812, hyp_len=13, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "ORDER", + "BY", + "Net_Worth_Millions", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "order", + "by", + "net_worth_millions", + "desc", + "limit", + "value" + ], + "question_spider": "What is the name of the singer who is worth the most?", + "question": "最富裕的歌手叫什么名字?", + "question_cspider": "最富裕的歌手叫什么名字?", + "bleu_from_cspider_question": "BLEU = 66.52, 76.9/66.7/63.6/60.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship", + "query_toks": [ + "SELECT", + "Citizenship", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship" + ], + "query_toks_no_value": [ + "select", + "citizenship", + ",", + "count", + "(", + "*", + ")", + "from", + "singer", + "group", + "by", + "citizenship" + ], + "question_spider": "Show different citizenship of singers and the number of singers of each citizenship.", + "question": "显示歌手的不同国籍和每个国籍的歌手人数。", + "question_cspider": "显示歌手的不同国籍和每个国籍的歌手人数。", + "bleu_from_cspider_question": "BLEU = 72.00, 85.7/75.0/68.4/61.1 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship", + "query_toks": [ + "SELECT", + "Citizenship", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship" + ], + "query_toks_no_value": [ + "select", + "citizenship", + ",", + "count", + "(", + "*", + ")", + "from", + "singer", + "group", + "by", + "citizenship" + ], + "question_spider": "For each citizenship, how many singers are from that country?", + "question": "对于每一个国籍,有多少歌手来自那个国家?", + "question_cspider": "对于每一个国籍,有多少歌手来自那个国家?", + "bleu_from_cspider_question": "BLEU = 36.75, 93.3/64.3/46.2/25.0 (BP=0.717, ratio=0.750, hyp_len=15, ref_len=20)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Citizenship", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "citizenship", + "from", + "singer", + "group", + "by", + "citizenship", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "Please show the most common citizenship of singers.", + "question": "请显示歌手最常见的国籍。", + "question_cspider": "请显示歌手最常见的国籍。", + "bleu_from_cspider_question": "BLEU = 61.15, 71.4/61.5/58.3/54.5 (BP=1.000, ratio=1.167, hyp_len=14, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "select citizenship from singer group by citizenship order by count(*) desc limit 1", + "query_toks": [ + "select", + "citizenship", + "from", + "singer", + "group", + "by", + "citizenship", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "citizenship", + "from", + "singer", + "group", + "by", + "citizenship", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question_spider": "What is the most common singer citizenship ?", + "question": "歌手最常见的国籍是什么?", + "question_cspider": "歌手最常见的国籍是什么?", + "bleu_from_cspider_question": "BLEU = 68.34, 100.0/81.8/60.0/44.4 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", + "query_toks": [ + "SELECT", + "Citizenship", + ",", + "max", + "(", + "Net_Worth_Millions", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship" + ], + "query_toks_no_value": [ + "select", + "citizenship", + ",", + "max", + "(", + "net_worth_millions", + ")", + "from", + "singer", + "group", + "by", + "citizenship" + ], + "question_spider": "Show different citizenships and the maximum net worth of singers of each citizenship.", + "question": "显示不同的国籍和每个国籍歌手的最大身家。", + "question_cspider": "显示不同的国籍和每个国籍歌手的最大净资产。", + "bleu_from_cspider_question": "BLEU = 67.31, 83.3/73.9/63.6/52.4 (BP=1.000, ratio=1.143, hyp_len=24, ref_len=21)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", + "query_toks": [ + "SELECT", + "Citizenship", + ",", + "max", + "(", + "Net_Worth_Millions", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship" + ], + "query_toks_no_value": [ + "select", + "citizenship", + ",", + "max", + "(", + "net_worth_millions", + ")", + "from", + "singer", + "group", + "by", + "citizenship" + ], + "question_spider": "For each citizenship, what is the maximum net worth?", + "question": "对于每个国籍来说,最大的身家是多少?", + "question_cspider": "对于每个国籍来说,最大的净资产是多少?", + "bleu_from_cspider_question": "BLEU = 50.80, 87.5/73.3/57.1/38.5 (BP=0.829, ratio=0.842, hyp_len=16, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", + "query_toks": [ + "SELECT", + "T2.Title", + ",", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "title", + ",", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id" + ], + "question_spider": "Show titles of songs and names of singers.", + "question": "显示歌曲名和歌手的名字。", + "question_cspider": "显示歌曲名和歌手的名字。", + "bleu_from_cspider_question": "BLEU = 32.65, 75.0/45.5/30.0/11.1 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", + "query_toks": [ + "SELECT", + "T2.Title", + ",", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "title", + ",", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id" + ], + "question_spider": "What are the song titles and singer names?", + "question": "歌曲名和歌手名字是什么?", + "question_cspider": "歌曲名和歌手名字是什么?", + "bleu_from_cspider_question": "BLEU = 47.59, 84.6/66.7/45.5/20.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "WHERE", + "T2.Sales", + ">", + "300000" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "where", + "t2", + ".", + "sales", + ">", + "value" + ], + "question_spider": "Show distinct names of singers that have songs with sales more than 300000.", + "question": "显示销量超过300000的不同歌手的名字。", + "question_cspider": "显示销量超过300000首的不同歌手的名字。", + "bleu_from_cspider_question": "BLEU = 55.11, 87.0/63.6/47.6/35.0 (BP=1.000, ratio=1.045, hyp_len=23, ref_len=22)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 300000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "WHERE", + "T2.Sales", + ">", + "300000" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "where", + "t2", + ".", + "sales", + ">", + "value" + ], + "question_spider": "what are the different names of the singers that have sales more than 300000?", + "question": "销量超过300000的歌手的不同的名字是什么?", + "question_cspider": "销售超过300000的歌手的不同的名字是什么?", + "bleu_from_cspider_question": "BLEU = 37.14, 80.0/63.2/38.9/17.6 (BP=0.861, ratio=0.870, hyp_len=20, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 300000.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "GROUP", + "BY", + "T1.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t1", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "Show the names of singers that have more than one song.", + "question": "显示有不止一首歌曲的歌手的名字。", + "question_cspider": "显示有不止一首歌曲的歌手的名字。", + "bleu_from_cspider_question": "BLEU = 35.55, 83.3/54.5/40.0/33.3 (BP=0.717, ratio=0.750, hyp_len=12, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "GROUP", + "BY", + "T1.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t1", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question_spider": "What are the names of the singers that have more than one songs?", + "question": "那些有不止一首歌的歌手的名字是什么?", + "question_cspider": "那些有不止一首歌的歌手的名字是什么?", + "bleu_from_cspider_question": "BLEU = 56.39, 81.2/66.7/57.1/53.8 (BP=0.882, ratio=0.889, hyp_len=16, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1.0, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "sum", + "(", + "T2.Sales", + ")", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "GROUP", + "BY", + "T1.Name" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "sum", + "(", + "t2", + ".", + "sales", + ")", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t1", + ".", + "name" + ], + "question_spider": "Show the names of singers and the total sales of their songs.", + "question": "显示歌手的名字和他们的歌曲的总销量。", + "question_cspider": "显示歌手的名字和他们的歌曲的总销售。", + "bleu_from_cspider_question": "BLEU = 48.79, 76.5/56.2/46.7/35.7 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 4, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "sum", + "(", + "T2.Sales", + ")", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "GROUP", + "BY", + "T1.Name" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "sum", + "(", + "t2", + ".", + "sales", + ")", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t1", + ".", + "name" + ], + "question_spider": "For each singer name, what is the total sales for their songs?", + "question": "对于每个歌手的名字,他们的歌曲的总销量是多少?", + "question_cspider": "对于每个歌手的名字,他们的歌曲的总销量是多少?", + "bleu_from_cspider_question": "BLEU = 83.96, 91.7/87.0/81.8/76.2 (BP=1.000, ratio=1.043, hyp_len=24, ref_len=23)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 4, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Singer_ID", + "NOT", + "IN", + "(", + "SELECT", + "Singer_ID", + "FROM", + "song", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "singer_id", + "not", + "in", + "(", + "select", + "singer_id", + "from", + "song", + ")" + ], + "question_spider": "List the name of singers that do not have any song.", + "question": "列出没有歌曲的歌手的名字。", + "question_cspider": "列出没有歌曲的歌手的名字。", + "bleu_from_cspider_question": "BLEU = 77.05, 92.3/75.0/72.7/70.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Singer_ID", + "NOT", + "IN", + "(", + "SELECT", + "Singer_ID", + "FROM", + "song", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "singer_id", + "not", + "in", + "(", + "select", + "singer_id", + "from", + "song", + ")" + ], + "question_spider": "What is the sname of every sing that does not have any song?", + "question": "没有发行过任何歌曲的歌手的名字是什么?", + "question_cspider": "没有任何歌曲的歌手的名字是什么?", + "bleu_from_cspider_question": "BLEU = 49.79, 76.5/56.2/40.0/35.7 (BP=1.000, ratio=1.062, hyp_len=17, ref_len=16)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", + "query_toks": [ + "SELECT", + "Citizenship", + "FROM", + "singer", + "WHERE", + "Birth_Year", + "<", + "1945", + "INTERSECT", + "SELECT", + "Citizenship", + "FROM", + "singer", + "WHERE", + "Birth_Year", + ">", + "1955" + ], + "query_toks_no_value": [ + "select", + "citizenship", + "from", + "singer", + "where", + "birth_year", + "<", + "value", + "intersect", + "select", + "citizenship", + "from", + "singer", + "where", + "birth_year", + ">", + "value" + ], + "question_spider": "Show the citizenship shared by singers with birth year before 1945 and after 1955.", + "question": "显示1945年前和1955年后出生的歌手所共有的国籍。", + "question_cspider": "显示1945年前和1955年后出生的歌手所共有的国籍。", + "bleu_from_cspider_question": "BLEU = 38.33, 71.9/48.4/30.0/20.7 (BP=1.000, ratio=1.185, hyp_len=32, ref_len=27)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1945.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1955.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", + "query_toks": [ + "SELECT", + "Citizenship", + "FROM", + "singer", + "WHERE", + "Birth_Year", + "<", + "1945", + "INTERSECT", + "SELECT", + "Citizenship", + "FROM", + "singer", + "WHERE", + "Birth_Year", + ">", + "1955" + ], + "query_toks_no_value": [ + "select", + "citizenship", + "from", + "singer", + "where", + "birth_year", + "<", + "value", + "intersect", + "select", + "citizenship", + "from", + "singer", + "where", + "birth_year", + ">", + "value" + ], + "question_spider": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?", + "question": "在1945年之前和1955年之后出生的歌手所共有的国籍是什么?", + "question_cspider": "在1945年之前和1955年之后出生的歌手所共有的国籍是什么?", + "bleu_from_cspider_question": "BLEU = 68.34, 82.9/73.5/63.6/56.2 (BP=1.000, ratio=1.129, hyp_len=35, ref_len=31)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1945.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1955.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "real_estate_properties", + "query": "SELECT count(*) FROM Other_Available_Features", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Other_Available_Features" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "other_available_features" + ], + "question_spider": "How many available features are there in total?", + "question": "一共有多少个可用的特性?", + "question_cspider": "一共有多少个可用的特性?", + "bleu_from_cspider_question": "BLEU = 53.88, 72.7/60.0/55.6/50.0 (BP=0.913, ratio=0.917, hyp_len=11, ref_len=12)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "real_estate_properties", + "query": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = \"AirCon\"", + "query_toks": [ + "SELECT", + "T2.feature_type_name", + "FROM", + "Other_Available_Features", + "AS", + "T1", + "JOIN", + "Ref_Feature_Types", + "AS", + "T2", + "ON", + "T1.feature_type_code", + "=", + "T2.feature_type_code", + "WHERE", + "T1.feature_name", + "=", + "``", + "AirCon", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "feature_type_name", + "from", + "other_available_features", + "as", + "t1", + "join", + "ref_feature_types", + "as", + "t2", + "on", + "t1", + ".", + "feature_type_code", + "=", + "t2", + ".", + "feature_type_code", + "where", + "t1", + ".", + "feature_name", + "=", + "value" + ], + "question_spider": "What is the feature type name of feature AirCon?", + "question": "“春秋航空公司”的特征类型名称是什么?", + "question_cspider": "“春秋航空公司”的特征类型名称是什么?", + "bleu_from_cspider_question": "BLEU = 37.75, 47.4/38.9/35.3/31.2 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"AirCon\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "real_estate_properties", + "query": "SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code", + "query_toks": [ + "SELECT", + "T2.property_type_description", + "FROM", + "Properties", + "AS", + "T1", + "JOIN", + "Ref_Property_Types", + "AS", + "T2", + "ON", + "T1.property_type_code", + "=", + "T2.property_type_code", + "GROUP", + "BY", + "T1.property_type_code" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "property_type_description", + "from", + "properties", + "as", + "t1", + "join", + "ref_property_types", + "as", + "t2", + "on", + "t1", + ".", + "property_type_code", + "=", + "t2", + ".", + "property_type_code", + "group", + "by", + "t1", + ".", + "property_type_code" + ], + "question_spider": "Show the property type descriptions of properties belonging to that code.", + "question": "显示属于该代码的属性的类型说明。", + "question_cspider": "显示属于该代码的属性的属性类型说明。", + "bleu_from_cspider_question": "BLEU = 83.05, 88.9/82.4/81.2/80.0 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "real_estate_properties", + "query": "SELECT property_name FROM Properties WHERE property_type_code = \"House\" UNION SELECT property_name FROM Properties WHERE property_type_code = \"Apartment\" AND room_count > 1", + "query_toks": [ + "SELECT", + "property_name", + "FROM", + "Properties", + "WHERE", + "property_type_code", + "=", + "``", + "House", + "''", + "UNION", + "SELECT", + "property_name", + "FROM", + "Properties", + "WHERE", + "property_type_code", + "=", + "``", + "Apartment", + "''", + "AND", + "room_count", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "property_name", + "from", + "properties", + "where", + "property_type_code", + "=", + "value", + "union", + "select", + "property_name", + "from", + "properties", + "where", + "property_type_code", + "=", + "value", + "and", + "room_count", + ">", + "value" + ], + "question_spider": "What are the names of properties that are either houses or apartments with more than 1 room?", + "question": "拥有超过1间房间的房子或公寓的属性名称是什么?", + "question_cspider": "超过1个房间的“房子”或“公寓”的属性名称是什么?", + "bleu_from_cspider_question": "BLEU = 46.11, 78.3/54.5/42.9/35.0 (BP=0.917, ratio=0.920, hyp_len=23, ref_len=25)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"House\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Apartment\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + 1.0, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + } +] \ No newline at end of file