| [ | |
| { | |
| "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)", | |
| "question_toks": [ | |
| "有", | |
| "几", | |
| "位", | |
| "老", | |
| "师", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "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)", | |
| "question_toks": [ | |
| "教", | |
| "师", | |
| "总", | |
| "数", | |
| "是", | |
| "多", | |
| "少", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "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)", | |
| "question_toks": [ | |
| "按", | |
| "年", | |
| "龄", | |
| "升", | |
| "序", | |
| "列", | |
| "出", | |
| "教", | |
| "师", | |
| "姓", | |
| "名", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "按", | |
| "年", | |
| "龄", | |
| "升", | |
| "序", | |
| "排", | |
| "列", | |
| "的", | |
| "老", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "老", | |
| "师", | |
| "的", | |
| "年", | |
| "龄", | |
| "和", | |
| "家", | |
| "乡", | |
| "是", | |
| "几", | |
| "岁", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "每", | |
| "个", | |
| "老", | |
| "师", | |
| "的", | |
| "年", | |
| "龄", | |
| "和", | |
| "家", | |
| "乡", | |
| "是", | |
| "多", | |
| "少", | |
| "?" | |
| ], | |
| "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": "列出家乡不是“Little Lever Urban District”的教师的姓名。", | |
| "question_cspider": "列出家乡不是“Little Lever Urban District”的教师的姓名。", | |
| "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)", | |
| "question_toks": [ | |
| "列", | |
| "出", | |
| "其", | |
| "家", | |
| "乡", | |
| "不", | |
| "是", | |
| "`", | |
| "`", | |
| "小", | |
| "杠", | |
| "杆", | |
| "市", | |
| "区", | |
| "'", | |
| "'", | |
| "的", | |
| "老", | |
| "师", | |
| "的", | |
| "姓", | |
| "名", | |
| "。" | |
| ], | |
| "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": "家乡不是“Little Lever Urban District”的老师叫什么名字?", | |
| "question_cspider": "家乡不是“Little Lever Urban District”的老师叫什么名字?", | |
| "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)", | |
| "question_toks": [ | |
| "他", | |
| "们", | |
| "的", | |
| "家", | |
| "乡", | |
| "不", | |
| "是", | |
| "`", | |
| "`", | |
| "小", | |
| "杠", | |
| "杆", | |
| "市", | |
| "区", | |
| "'", | |
| "'", | |
| "的", | |
| "老", | |
| "师", | |
| "叫", | |
| "什", | |
| "么", | |
| "名", | |
| "字", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "3", | |
| "2", | |
| "岁", | |
| "或", | |
| "3", | |
| "3", | |
| "岁", | |
| "的", | |
| "老", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "吗", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "3", | |
| "2", | |
| "岁", | |
| "或", | |
| "3", | |
| "3", | |
| "岁", | |
| "的", | |
| "老", | |
| "师", | |
| "叫", | |
| "什", | |
| "么", | |
| "名", | |
| "字", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "最", | |
| "年", | |
| "轻", | |
| "的", | |
| "老", | |
| "师", | |
| "的", | |
| "家", | |
| "乡", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "最", | |
| "小", | |
| "的", | |
| "老", | |
| "师", | |
| "是", | |
| "哪", | |
| "里", | |
| "人", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "不", | |
| "同", | |
| "的", | |
| "教", | |
| "师", | |
| "家", | |
| "乡", | |
| "以", | |
| "及", | |
| "每", | |
| "个", | |
| "家", | |
| "乡", | |
| "的", | |
| "老", | |
| "师", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "每", | |
| "个", | |
| "家", | |
| "乡", | |
| "有", | |
| "多", | |
| "少", | |
| "老", | |
| "师", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "列", | |
| "出", | |
| "最", | |
| "常", | |
| "见", | |
| "的", | |
| "教", | |
| "师", | |
| "之", | |
| "乡", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "教", | |
| "师", | |
| "最", | |
| "常", | |
| "去", | |
| "的", | |
| "家", | |
| "乡", | |
| "是", | |
| "哪", | |
| "里", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "至", | |
| "少", | |
| "有", | |
| "两", | |
| "个", | |
| "老", | |
| "师", | |
| "共", | |
| "享", | |
| "的", | |
| "家", | |
| "乡", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "至", | |
| "少", | |
| "有", | |
| "两", | |
| "名", | |
| "老", | |
| "师", | |
| "来", | |
| "自", | |
| "哪", | |
| "些", | |
| "城", | |
| "镇", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "老", | |
| "师", | |
| "的", | |
| "姓", | |
| "名", | |
| "和", | |
| "他", | |
| "们", | |
| "安", | |
| "排", | |
| "教", | |
| "的", | |
| "课", | |
| "程", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "每", | |
| "个", | |
| "老", | |
| "师", | |
| "叫", | |
| "什", | |
| "么", | |
| "名", | |
| "字", | |
| ",", | |
| "他", | |
| "们", | |
| "教", | |
| "什", | |
| "么", | |
| "课", | |
| "程", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "以", | |
| "教", | |
| "师", | |
| "姓", | |
| "名", | |
| "的", | |
| "字", | |
| "母", | |
| "升", | |
| "序", | |
| "显", | |
| "示", | |
| "教", | |
| "师", | |
| "姓", | |
| "名", | |
| "及", | |
| "其", | |
| "安", | |
| "排", | |
| "的", | |
| "课", | |
| "程", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "老", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "他", | |
| "们", | |
| "按", | |
| "老", | |
| "师", | |
| "名", | |
| "字", | |
| "的", | |
| "字", | |
| "母", | |
| "升", | |
| "序", | |
| "排", | |
| "列", | |
| "的", | |
| "课", | |
| "程", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "数", | |
| "学", | |
| "课", | |
| "程", | |
| "的", | |
| "老", | |
| "师", | |
| "姓", | |
| "名", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "教", | |
| "授", | |
| "数", | |
| "学", | |
| "课", | |
| "程", | |
| "的", | |
| "人", | |
| "的", | |
| "名", | |
| "字", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "老", | |
| "师", | |
| "的", | |
| "姓", | |
| "名", | |
| "和", | |
| "他", | |
| "们", | |
| "所", | |
| "教", | |
| "课", | |
| "程", | |
| "的", | |
| "数", | |
| "量", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "老", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "是", | |
| "什", | |
| "么", | |
| ",", | |
| "他", | |
| "们", | |
| "教", | |
| "多", | |
| "少", | |
| "课", | |
| "程", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "至", | |
| "少", | |
| "教", | |
| "授", | |
| "两", | |
| "门", | |
| "课", | |
| "程", | |
| "的", | |
| "教", | |
| "师", | |
| "姓", | |
| "名", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "至", | |
| "少", | |
| "教", | |
| "授", | |
| "两", | |
| "门", | |
| "课", | |
| "程", | |
| "的", | |
| "老", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "列", | |
| "出", | |
| "尚", | |
| "未", | |
| "安", | |
| "排", | |
| "教", | |
| "课", | |
| "的", | |
| "老", | |
| "师", | |
| "的", | |
| "姓", | |
| "名", | |
| "。" | |
| ], | |
| "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)", | |
| "question_toks": [ | |
| "未", | |
| "安", | |
| "排", | |
| "课", | |
| "程", | |
| "的", | |
| "老", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "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 | |
| } | |
| } | |
| ] |