| [ | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty" | |
| ], | |
| "question_spider": "How many faculty do we have?", | |
| "question": "我们有多少教员?", | |
| "question_cspider": "我们有多少教员?", | |
| "Harold": "BLEU = 54.11, 75.0/57.1/50.0/40.0 (BP=1.000, ratio=1.000, hyp_len=8, ref_len=8)", | |
| "question_toks": [ | |
| "我", | |
| "们", | |
| "有", | |
| "多", | |
| "少", | |
| "老", | |
| "师", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty" | |
| ], | |
| "question_spider": "What is the total number of faculty members?", | |
| "question": "全体教员的总数是多少?", | |
| "question_cspider": "全体教员的总数是多少?", | |
| "Harold": "BLEU = 48.88, 77.8/62.5/57.1/50.0 (BP=0.801, ratio=0.818, hyp_len=9, ref_len=11)", | |
| "question_toks": [ | |
| "教", | |
| "职", | |
| "工", | |
| "总", | |
| "数", | |
| "是", | |
| "多", | |
| "少", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT rank FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "rank", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "rank", | |
| "from", | |
| "faculty" | |
| ], | |
| "question_spider": "What ranks do we have for faculty?", | |
| "question": "我们有什么等级的教员?", | |
| "question_cspider": "我们有什么等级的教员?", | |
| "Harold": "BLEU = 0.00, 54.5/20.0/0.0/0.0 (BP=1.000, ratio=1.000, hyp_len=11, ref_len=11)", | |
| "question_toks": [ | |
| "我", | |
| "们", | |
| "的", | |
| "教", | |
| "师", | |
| "职", | |
| "级", | |
| "是", | |
| "多", | |
| "少", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT rank FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "rank", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "rank", | |
| "from", | |
| "faculty" | |
| ], | |
| "question_spider": "Find the list of distinct ranks for faculty.", | |
| "question": "找出不同等级的教员。", | |
| "question_cspider": "找出不同等级的教员。", | |
| "Harold": "BLEU = 0.00, 58.3/9.1/0.0/0.0 (BP=1.000, ratio=1.200, hyp_len=12, ref_len=10)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "教", | |
| "师", | |
| "的", | |
| "不", | |
| "同", | |
| "职", | |
| "级", | |
| "列", | |
| "表", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT building FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "building", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "building", | |
| "from", | |
| "faculty" | |
| ], | |
| "question_spider": "Show all the distinct buildings that have faculty rooms.", | |
| "question": "显示所有有教学室的不同建筑。", | |
| "question_cspider": "显示所有有教学室的不同建筑。", | |
| "Harold": "BLEU = 68.65, 87.5/73.3/64.3/53.8 (BP=1.000, ratio=1.143, hyp_len=16, ref_len=14)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "具", | |
| "有", | |
| "教", | |
| "学", | |
| "室", | |
| "的", | |
| "不", | |
| "同", | |
| "建", | |
| "筑", | |
| "物", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT building FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "building", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "building", | |
| "from", | |
| "faculty" | |
| ], | |
| "question_spider": "What buildings have faculty offices?", | |
| "question": "什么建筑有教学办公室?", | |
| "question_cspider": "什么建筑有教学办公室?", | |
| "Harold": "BLEU = 26.13, 61.5/41.7/18.2/10.0 (BP=1.000, ratio=1.182, hyp_len=13, ref_len=11)", | |
| "question_toks": [ | |
| "哪", | |
| "些", | |
| "建", | |
| "筑", | |
| "物", | |
| "设", | |
| "有", | |
| "教", | |
| "师", | |
| "办", | |
| "公", | |
| "室", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , Fname , Lname FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty" | |
| ], | |
| "question_spider": "Show the rank, first name, and last name for all the faculty.", | |
| "question": "显示所有教员的等级、名字和姓氏。", | |
| "question_cspider": "显示所有教员的等级、名字和姓氏。", | |
| "Harold": "BLEU = 55.33, 81.2/60.0/50.0/38.5 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "教", | |
| "师", | |
| "的", | |
| "级", | |
| "别", | |
| ",", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , Fname , Lname FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty" | |
| ], | |
| "question_spider": "What are the rank, first name, and last name of the faculty members?", | |
| "question": "教员的职称、名字和姓氏是什么?", | |
| "question_cspider": "教员的职称、名字和姓氏是什么?", | |
| "Harold": "BLEU = 54.16, 76.5/56.2/46.7/42.9 (BP=1.000, ratio=1.133, hyp_len=17, ref_len=15)", | |
| "question_toks": [ | |
| "教", | |
| "职", | |
| "员", | |
| "工", | |
| "的", | |
| "职", | |
| "等", | |
| ",", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| ",", | |
| "phone", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'F", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| ",", | |
| "phone", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Show the first name, last name, and phone number for all female faculty members.", | |
| "question": "显示所有“F”教员的姓名、姓氏和电话号码。", | |
| "question_cspider": "显示所有“F”教员的姓名、姓氏和电话号码。", | |
| "Harold": "BLEU = 48.25, 84.2/55.6/47.1/37.5 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "女", | |
| "教", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| ",", | |
| "姓", | |
| "氏", | |
| "和", | |
| "电", | |
| "话", | |
| "号", | |
| "码", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| ",", | |
| "phone", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'F", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| ",", | |
| "phone", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "What are the first name, last name, and phone number of all the female faculty members?", | |
| "question": "所有“F”教员的名字、姓氏和电话号码是什么?", | |
| "question_cspider": "所有“F”教员的名字、姓氏和电话号码是什么?", | |
| "Harold": "BLEU = 57.32, 90.0/68.4/55.6/47.1 (BP=0.905, ratio=0.909, hyp_len=20, ref_len=22)", | |
| "question_toks": [ | |
| "所", | |
| "有", | |
| "女", | |
| "教", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| ",", | |
| "姓", | |
| "氏", | |
| "和", | |
| "电", | |
| "话", | |
| "号", | |
| "码", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty WHERE Sex = “M”", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'M", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Show ids for all the male faculty.", | |
| "question": "显示所有“M”性教师的ID。", | |
| "question_cspider": "显示所有“M”性教师的ID。", | |
| "Harold": "BLEU = 63.58, 100.0/81.8/70.0/55.6 (BP=0.846, ratio=0.857, hyp_len=12, ref_len=14)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "男", | |
| "性", | |
| "教", | |
| "师", | |
| "的", | |
| "I", | |
| "D", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty WHERE Sex = “M”", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'M", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "What are the faculty ids of all the male faculty members?", | |
| "question": "所有“M”性教职员工的教师ID是什么?", | |
| "question_cspider": "所有“M”性教职员工的教师ID是什么?", | |
| "Harold": "BLEU = 35.21, 78.6/53.8/41.7/36.4 (BP=0.700, ratio=0.737, hyp_len=14, ref_len=19)", | |
| "question_toks": [ | |
| "所", | |
| "有", | |
| "男", | |
| "老", | |
| "师", | |
| "的", | |
| "老", | |
| "师", | |
| "I", | |
| "D", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = \"Professor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'F", | |
| "'", | |
| "AND", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "and", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "How many female Professors do we have?", | |
| "question": "我们有多少“F”“Professor”?", | |
| "question_cspider": "我们有多少“F”“Professor”?", | |
| "Harold": "BLEU = 35.64, 90.0/55.6/37.5/28.6 (BP=0.741, ratio=0.769, hyp_len=10, ref_len=13)", | |
| "question_toks": [ | |
| "我", | |
| "们", | |
| "有", | |
| "多", | |
| "少", | |
| "位", | |
| "女", | |
| "教", | |
| "授", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = \"Professor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'F", | |
| "'", | |
| "AND", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "and", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Count the number of female Professors we have.", | |
| "question": "统计一下我们有多少“F”“Professor”。", | |
| "question_cspider": "统计一下我们有多少“F”“Professor”。", | |
| "Harold": "BLEU = 0.00, 57.1/15.4/0.0/0.0 (BP=0.807, ratio=0.824, hyp_len=14, ref_len=17)", | |
| "question_toks": [ | |
| "计", | |
| "算", | |
| "我", | |
| "们", | |
| "拥", | |
| "有", | |
| "的", | |
| "女", | |
| "教", | |
| "授", | |
| "的", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT phone , room , building FROM Faculty WHERE Fname = \"Jerry\" AND Lname = \"Prince\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "phone", | |
| ",", | |
| "room", | |
| ",", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Fname", | |
| "=", | |
| "``", | |
| "Jerry", | |
| "''", | |
| "AND", | |
| "Lname", | |
| "=", | |
| "``", | |
| "Prince", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "phone", | |
| ",", | |
| "room", | |
| ",", | |
| "building", | |
| "from", | |
| "faculty", | |
| "where", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Show the phone, room, and building for the faculty named Jerry Prince.", | |
| "question": "展示教师名为“Jerry Prince”的电话,房间,和建筑。", | |
| "question_cspider": "展示教师名为“Jerry Prince”的电话,房间,和建筑。", | |
| "Harold": "BLEU = 18.91, 40.5/25.0/14.3/8.8 (BP=1.000, ratio=1.609, hyp_len=37, ref_len=23)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "名", | |
| "为", | |
| "杰", | |
| "里", | |
| "·", | |
| "普", | |
| "林", | |
| "斯", | |
| "(", | |
| "J", | |
| "e", | |
| "r", | |
| "r", | |
| "y", | |
| " ", | |
| "P", | |
| "r", | |
| "i", | |
| "n", | |
| "c", | |
| "e", | |
| ")", | |
| "的", | |
| "教", | |
| "师", | |
| "的", | |
| "电", | |
| "话", | |
| ",", | |
| "房", | |
| "间", | |
| "和", | |
| "建", | |
| "筑", | |
| "物", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Jerry\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Prince\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT phone , room , building FROM Faculty WHERE Fname = \"Jerry\" AND Lname = \"Prince\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "phone", | |
| ",", | |
| "room", | |
| ",", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Fname", | |
| "=", | |
| "``", | |
| "Jerry", | |
| "''", | |
| "AND", | |
| "Lname", | |
| "=", | |
| "``", | |
| "Prince", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "phone", | |
| ",", | |
| "room", | |
| ",", | |
| "building", | |
| "from", | |
| "faculty", | |
| "where", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "What are the phone, room, and building of the faculty member called Jerry Prince?", | |
| "question": "教师“Jerry Prince”的电话、房间和建筑是什么?", | |
| "question_cspider": "教师“Jerry Prince”的电话、房间和建筑是什么?", | |
| "Harold": "BLEU = 34.61, 63.6/47.6/30.0/15.8 (BP=1.000, ratio=1.048, hyp_len=22, ref_len=21)", | |
| "question_toks": [ | |
| "教", | |
| "师", | |
| "杰", | |
| "里", | |
| "·", | |
| "普", | |
| "林", | |
| "斯", | |
| "的", | |
| "电", | |
| "话", | |
| ",", | |
| "房", | |
| "间", | |
| "和", | |
| "建", | |
| "筑", | |
| "物", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Jerry\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Prince\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty WHERE Rank = \"Professor\" AND building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "AND", | |
| "building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "How many Professors are in building NEB?", | |
| "question": "“NEB”楼有多少“Professor”?", | |
| "question_cspider": "“Mergenthaler”楼有多少“Professor”?", | |
| "Harold": "BLEU = 0.00, 42.9/23.1/8.3/0.0 (BP=1.000, ratio=1.077, hyp_len=14, ref_len=13)", | |
| "question_toks": [ | |
| "正", | |
| "在", | |
| "建", | |
| "立", | |
| "N", | |
| "E", | |
| "B", | |
| "的", | |
| "教", | |
| "授", | |
| "有", | |
| "多", | |
| "少", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty WHERE Rank = \"Professor\" AND building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "AND", | |
| "building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Count the number of Professors who have office in building NEB.", | |
| "question": "统计在“NEB”楼拥有办公室的“Professor”的数量。", | |
| "question_cspider": "统计在“Mergenthaler”楼拥有办公室的“Professor”的数量。", | |
| "Harold": "BLEU = 0.00, 47.1/6.2/0.0/0.0 (BP=0.745, ratio=0.773, hyp_len=17, ref_len=22)", | |
| "question_toks": [ | |
| "计", | |
| "算", | |
| "在", | |
| "N", | |
| "E", | |
| "B", | |
| "大", | |
| "楼", | |
| "中", | |
| "任", | |
| "职", | |
| "的", | |
| "教", | |
| "授", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT fname , lname FROM Faculty WHERE Rank = \"Instructor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "fname", | |
| ",", | |
| "lname", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Instructor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Show the first name and last name for all the instructors.", | |
| "question": "显示所有“Instructor”的名字和姓氏。", | |
| "question_cspider": "显示所有“Instructor”的名字和姓氏。", | |
| "Harold": "BLEU = 57.48, 84.6/75.0/63.6/50.0 (BP=0.857, ratio=0.867, hyp_len=13, ref_len=15)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "讲", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Instructor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT fname , lname FROM Faculty WHERE Rank = \"Instructor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "fname", | |
| ",", | |
| "lname", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Instructor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "What are the first name and last name of all the instructors?", | |
| "question": "所有“Instructor”的名字和姓氏是什么?", | |
| "question_cspider": "所有“Instructor”的名字和姓氏是什么?", | |
| "Harold": "BLEU = 63.04, 85.7/76.9/66.7/63.6 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", | |
| "question_toks": [ | |
| "所", | |
| "有", | |
| "讲", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Instructor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building , count(*) FROM Faculty GROUP BY building", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "building" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "building" | |
| ], | |
| "question_spider": "Show all the buildings along with the number of faculty members the buildings have.", | |
| "question": "显示所有的建筑物以及建筑物的教职员数。", | |
| "question_cspider": "显示所有的建筑物以及建筑物的教职员数。", | |
| "Harold": "BLEU = 66.26, 94.4/76.5/62.5/53.3 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "建", | |
| "筑", | |
| "物", | |
| "以", | |
| "及", | |
| "建", | |
| "筑", | |
| "物", | |
| "的", | |
| "教", | |
| "员", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building , count(*) FROM Faculty GROUP BY building", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "building" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "building" | |
| ], | |
| "question_spider": "How many faculty members does each building have? List the result with the name of the building.", | |
| "question": "每个建筑有多少教员?以建筑物的名称列出结果。", | |
| "question_cspider": "每个建筑有多少教员?以建筑物的名称列出结果。", | |
| "Harold": "BLEU = 34.99, 87.5/56.5/31.8/9.5 (BP=1.000, ratio=1.091, hyp_len=24, ref_len=22)", | |
| "question_toks": [ | |
| "每", | |
| "个", | |
| "建", | |
| "筑", | |
| "物", | |
| "有", | |
| "多", | |
| "少", | |
| "名", | |
| "教", | |
| "员", | |
| "?", | |
| "列", | |
| "出", | |
| "结", | |
| "果", | |
| "以", | |
| "及", | |
| "建", | |
| "筑", | |
| "物", | |
| "名", | |
| "称", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "building", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "building", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "Which building has most faculty members?", | |
| "question": "哪一栋楼的教员最多?", | |
| "question_cspider": "哪一栋楼的教员最多?", | |
| "Harold": "BLEU = 0.00, 66.7/36.4/20.0/0.0 (BP=1.000, ratio=1.200, hyp_len=12, ref_len=10)", | |
| "question_toks": [ | |
| "哪", | |
| "个", | |
| "大", | |
| "楼", | |
| "的", | |
| "教", | |
| "职", | |
| "员", | |
| "工", | |
| "最", | |
| "多", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "building", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "building", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "Find the building that has the largest number of faculty members.", | |
| "question": "找出拥有最多教员的建筑。", | |
| "question_cspider": "找出拥有最多教员的建筑。", | |
| "Harold": "BLEU = 0.00, 61.5/25.0/9.1/0.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "教", | |
| "师", | |
| "人", | |
| "数", | |
| "最", | |
| "多", | |
| "的", | |
| "建", | |
| "筑", | |
| "物", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building FROM Faculty WHERE rank = \"Professor\" GROUP BY building HAVING count(*) >= 10", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "GROUP", | |
| "BY", | |
| "building", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "10" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "building", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Show all the buildings that have at least 10 professors.", | |
| "question": "展示所有至少有10位“Professor”的建筑。", | |
| "question_cspider": "展示所有至少有10位“Professor”的建筑。", | |
| "Harold": "BLEU = 37.57, 88.2/50.0/26.7/21.4 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "至", | |
| "少", | |
| "有", | |
| "1", | |
| "0", | |
| "位", | |
| "教", | |
| "授", | |
| "的", | |
| "所", | |
| "有", | |
| "建", | |
| "筑", | |
| "物", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 10, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building FROM Faculty WHERE rank = \"Professor\" GROUP BY building HAVING count(*) >= 10", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "GROUP", | |
| "BY", | |
| "building", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "10" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "building", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "In which buildings are there at least ten professors?", | |
| "question": "在哪栋楼里至少有十位“Professor”?", | |
| "question_cspider": "在哪栋楼里至少有十位“Professor”?", | |
| "Harold": "BLEU = 32.38, 66.7/42.9/23.1/16.7 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", | |
| "question_toks": [ | |
| "在", | |
| "哪", | |
| "些", | |
| "建", | |
| "筑", | |
| "物", | |
| "中", | |
| "至", | |
| "少", | |
| "有", | |
| "十", | |
| "位", | |
| "教", | |
| "授", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 10, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , count(*) FROM Faculty GROUP BY rank", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank" | |
| ], | |
| "question_spider": "For each faculty rank, show the number of faculty members who have it.", | |
| "question": "对于每一个教职员工等级,显示该等级有教职员工的人数。", | |
| "question_cspider": "对于每一个教职员工等级,显示该等级有教职员工的人数。", | |
| "Harold": "BLEU = 0.00, 73.9/27.3/9.5/0.0 (BP=0.878, ratio=0.885, hyp_len=23, ref_len=26)", | |
| "question_toks": [ | |
| "对", | |
| "于", | |
| "每", | |
| "个", | |
| "教", | |
| "师", | |
| "级", | |
| "别", | |
| ",", | |
| "请", | |
| "显", | |
| "示", | |
| "拥", | |
| "有", | |
| "该", | |
| "级", | |
| "别", | |
| "的", | |
| "教", | |
| "师", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| 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": "activity_1", | |
| "query": "SELECT rank , count(*) FROM Faculty GROUP BY rank", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank" | |
| ], | |
| "question_spider": "How many faculty members do we have for each faculty rank?", | |
| "question": "我们每个教员等级有多少教员?", | |
| "question_cspider": "我们每个教员等级有多少教员?", | |
| "Harold": "BLEU = 0.00, 73.3/35.7/15.4/0.0 (BP=1.000, ratio=1.071, hyp_len=15, ref_len=14)", | |
| "question_toks": [ | |
| "每", | |
| "个", | |
| "教", | |
| "师", | |
| "级", | |
| "别", | |
| "我", | |
| "们", | |
| "有", | |
| "多", | |
| "少", | |
| "名", | |
| "教", | |
| "师", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| 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": "activity_1", | |
| "query": "SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank", | |
| ",", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| ",", | |
| "sex" | |
| ], | |
| "question_spider": "Show all the ranks and the number of male and female faculty for each rank.", | |
| "question": "显示所有等级和各等级的男女教师人数。", | |
| "question_cspider": "显示所有等级和各等级的男女教师人数。", | |
| "Harold": "BLEU = 48.51, 68.2/57.1/45.0/31.6 (BP=1.000, ratio=1.222, hyp_len=22, ref_len=18)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "等", | |
| "级", | |
| "以", | |
| "及", | |
| "每", | |
| "个", | |
| "等", | |
| "级", | |
| "的", | |
| "男", | |
| "女", | |
| "教", | |
| "职", | |
| "员", | |
| "工", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank", | |
| ",", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| ",", | |
| "sex" | |
| ], | |
| "question_spider": "How many faculty members do we have for each rank and gender?", | |
| "question": "我们每个年级有多少教员和性别?", | |
| "question_cspider": "我们每个年级有多少教员和性别?", | |
| "Harold": "BLEU = 0.00, 72.2/35.3/12.5/0.0 (BP=1.000, ratio=1.200, hyp_len=18, ref_len=15)", | |
| "question_toks": [ | |
| "每", | |
| "个", | |
| "职", | |
| "位", | |
| "和", | |
| "性", | |
| "别", | |
| "我", | |
| "们", | |
| "有", | |
| "多", | |
| "少", | |
| "名", | |
| "教", | |
| "职", | |
| "员", | |
| "工", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "Which rank has the smallest number of faculty members?", | |
| "question": "哪一个教职员工人数最少?", | |
| "question_cspider": "哪一个教职员工人数最少?", | |
| "Harold": "BLEU = 62.63, 78.6/61.5/58.3/54.5 (BP=1.000, ratio=1.167, hyp_len=14, ref_len=12)", | |
| "question_toks": [ | |
| "哪", | |
| "个", | |
| "级", | |
| "别", | |
| "的", | |
| "教", | |
| "职", | |
| "员", | |
| "工", | |
| "人", | |
| "数", | |
| "最", | |
| "少", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "Find the faculty rank that has the least members.", | |
| "question": "找出最少人数的教员级别。", | |
| "question_cspider": "找出最少人数的教员级别。", | |
| "Harold": "BLEU = 0.00, 66.7/18.2/0.0/0.0 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "成", | |
| "员", | |
| "最", | |
| "少", | |
| "的", | |
| "教", | |
| "师", | |
| "职", | |
| "级", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT sex , count(*) FROM Faculty WHERE rank = \"AsstProf\" GROUP BY sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "``", | |
| "AsstProf", | |
| "''", | |
| "GROUP", | |
| "BY", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "sex" | |
| ], | |
| "question_spider": "Show the number of male and female assistant professors.", | |
| "question": "显示男女“AsstProf”的数量。", | |
| "question_cspider": "显示男女“AsstProf”的数量。", | |
| "Harold": "BLEU = 38.87, 91.7/54.5/40.0/22.2 (BP=0.846, ratio=0.857, hyp_len=12, ref_len=14)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "男", | |
| "女", | |
| "助", | |
| "理", | |
| "教", | |
| "授", | |
| "的", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AsstProf\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT sex , count(*) FROM Faculty WHERE rank = \"AsstProf\" GROUP BY sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "``", | |
| "AsstProf", | |
| "''", | |
| "GROUP", | |
| "BY", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "sex" | |
| ], | |
| "question_spider": "How many male and female assistant professors do we have?", | |
| "question": "我们有多少男女“AsstProf”?", | |
| "question_cspider": "我们有多少男女“AsstProf”?", | |
| "Harold": "BLEU = 41.21, 75.0/46.7/35.7/23.1 (BP=1.000, ratio=1.143, hyp_len=16, ref_len=14)", | |
| "question_toks": [ | |
| "我", | |
| "们", | |
| "有", | |
| "多", | |
| "少", | |
| "位", | |
| "男", | |
| "性", | |
| "和", | |
| "女", | |
| "性", | |
| "助", | |
| "理", | |
| "教", | |
| "授", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AsstProf\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = \"Linda\" AND T2.lname = \"Smith\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T2.fname", | |
| "=", | |
| "``", | |
| "Linda", | |
| "''", | |
| "AND", | |
| "T2.lname", | |
| "=", | |
| "``", | |
| "Smith", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t2", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "What are the first name and last name of Linda Smith's advisor?", | |
| "question": "“Linda Smith”的导师的名字和姓氏是什么?", | |
| "question_cspider": "“Linda Smith”的导师的名字和姓氏是什么?", | |
| "Harold": "BLEU = 48.42, 55.6/52.9/50.0/46.7 (BP=0.946, ratio=0.947, hyp_len=18, ref_len=19)", | |
| "question_toks": [ | |
| "琳", | |
| "达", | |
| "·", | |
| "史", | |
| "密", | |
| "斯", | |
| "顾", | |
| "问", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Linda\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Smith\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = \"Linda\" AND T2.lname = \"Smith\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T2.fname", | |
| "=", | |
| "``", | |
| "Linda", | |
| "''", | |
| "AND", | |
| "T2.lname", | |
| "=", | |
| "``", | |
| "Smith", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t2", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Who is the advisor of Linda Smith? Give me the first name and last name.", | |
| "question": "谁是“Linda Smith”的导师?给我名字和姓氏。", | |
| "question_cspider": "谁是“Linda Smith”的导师?给我名字和姓氏。", | |
| "Harold": "BLEU = 37.63, 57.1/40.0/31.6/27.8 (BP=1.000, ratio=1.050, hyp_len=21, ref_len=20)", | |
| "question_toks": [ | |
| "谁", | |
| "是", | |
| "琳", | |
| "达", | |
| "·", | |
| "史", | |
| "密", | |
| "斯", | |
| "的", | |
| "顾", | |
| "问", | |
| "?", | |
| "请", | |
| "给", | |
| "我", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Linda\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Smith\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = \"Professor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.StuID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T1.rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t1", | |
| ".", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Show the ids of students whose advisors are professors.", | |
| "question": "显示导师是“Professor”的学生的ID。", | |
| "question_cspider": "显示导师是“Professor”的学生的ID。", | |
| "Harold": "BLEU = 45.04, 73.3/57.1/38.5/33.3 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "其", | |
| "顾", | |
| "问", | |
| "为", | |
| "教", | |
| "授", | |
| "的", | |
| "学", | |
| "生", | |
| "的", | |
| "I", | |
| "D", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = \"Professor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.StuID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T1.rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t1", | |
| ".", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Which students have professors as their advisors? Find their student ids.", | |
| "question": "哪些学生有“Professor”作为他们的导师?找出他们的学生ID。", | |
| "question_cspider": "哪些学生有“Professor”作为他们的导师?找出他们的学生ID。", | |
| "Harold": "BLEU = 34.50, 90.5/60.0/36.8/22.2 (BP=0.751, ratio=0.778, hyp_len=21, ref_len=27)", | |
| "question_toks": [ | |
| "哪", | |
| "些", | |
| "学", | |
| "生", | |
| "有", | |
| "教", | |
| "授", | |
| "作", | |
| "为", | |
| "导", | |
| "师", | |
| "?", | |
| "查", | |
| "找", | |
| "他", | |
| "们", | |
| "的", | |
| "学", | |
| "生", | |
| "证", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = \"Michael\" AND T1.lname = \"Goodrich\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.fname", | |
| ",", | |
| "T2.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Michael", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Goodrich", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Show first name and last name for all the students advised by Michael Goodrich.", | |
| "question": "显示“Michael Goodrich”指导的所有学生的名字和姓氏。", | |
| "question_cspider": "显示“Michael Goodrich”指导的所有学生的名字和姓氏。", | |
| "Harold": "BLEU = 49.34, 58.3/52.2/45.5/42.9 (BP=1.000, ratio=1.091, hyp_len=24, ref_len=22)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "迈", | |
| "克", | |
| "尔", | |
| "·", | |
| "古", | |
| "德", | |
| "里", | |
| "奇", | |
| "建", | |
| "议", | |
| "的", | |
| "所", | |
| "有", | |
| "学", | |
| "生", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Michael\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Goodrich\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = \"Michael\" AND T1.lname = \"Goodrich\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.fname", | |
| ",", | |
| "T2.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Michael", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Goodrich", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Which students are advised by Michael Goodrich? Give me their first and last names.", | |
| "question": "“Michael Goodrich”指导哪些学生?给我他们的名字和姓氏。", | |
| "question_cspider": "“Michael Goodrich”指导哪些学生?给我他们的名字和姓氏。", | |
| "Harold": "BLEU = 59.07, 61.5/60.0/58.3/56.5 (BP=1.000, ratio=1.083, hyp_len=26, ref_len=24)", | |
| "question_toks": [ | |
| "迈", | |
| "克", | |
| "尔", | |
| "·", | |
| "古", | |
| "德", | |
| "里", | |
| "奇", | |
| "建", | |
| "议", | |
| "哪", | |
| "些", | |
| "学", | |
| "生", | |
| "?", | |
| "给", | |
| "我", | |
| "他", | |
| "们", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Michael\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Goodrich\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FacID", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "facid", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid" | |
| ], | |
| "question_spider": "Show the faculty id of each faculty member, along with the number of students he or she advises.", | |
| "question": "显示教员的教员ID和他或她指导的学生人数。", | |
| "question_cspider": "显示教员的教员ID和他或她指导的学生人数。", | |
| "Harold": "BLEU = 26.33, 55.6/34.6/20.0/12.5 (BP=1.000, ratio=1.286, hyp_len=27, ref_len=21)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "每", | |
| "位", | |
| "教", | |
| "职", | |
| "员", | |
| "工", | |
| "的", | |
| "教", | |
| "职", | |
| "编", | |
| "号", | |
| ",", | |
| "以", | |
| "及", | |
| "他", | |
| "或", | |
| "她", | |
| "建", | |
| "议", | |
| "的", | |
| "学", | |
| "生", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| 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": "activity_1", | |
| "query": "SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FacID", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "facid", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid" | |
| ], | |
| "question_spider": "What are the faculty id and the number of students each faculty has?", | |
| "question": "每个教员的教员ID和每个教员的学生人数是多少?", | |
| "question_cspider": "每个教员的教员ID和每个教员的学生人数是多少?", | |
| "Harold": "BLEU = 17.48, 55.0/31.6/16.7/5.9 (BP=0.861, ratio=0.870, hyp_len=20, ref_len=23)", | |
| "question_toks": [ | |
| "教", | |
| "职", | |
| "编", | |
| "号", | |
| "是", | |
| "多", | |
| "少", | |
| "?", | |
| "每", | |
| "个", | |
| "教", | |
| "职", | |
| "员", | |
| "工", | |
| "有", | |
| "多", | |
| "少", | |
| "学", | |
| "生", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| 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": "activity_1", | |
| "query": "SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.rank" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "rank" | |
| ], | |
| "question_spider": "Show all the faculty ranks and the number of students advised by each rank.", | |
| "question": "显示所有教员等级和每个等级指导的学生人数。", | |
| "question_cspider": "显示所有教员等级和每个等级指导的学生人数。", | |
| "Harold": "BLEU = 41.58, 68.2/47.6/35.0/26.3 (BP=1.000, ratio=1.048, hyp_len=22, ref_len=21)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "教", | |
| "师", | |
| "级", | |
| "别", | |
| "以", | |
| "及", | |
| "每", | |
| "个", | |
| "级", | |
| "别", | |
| "建", | |
| "议", | |
| "的", | |
| "学", | |
| "生", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| 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": "activity_1", | |
| "query": "SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.rank" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "rank" | |
| ], | |
| "question_spider": "How many students are advised by each rank of faculty? List the rank and the number of students.", | |
| "question": "每一位教职工等级有多少指导学生?列出等级和学生人数。", | |
| "question_cspider": "每一位教职工等级有多少指导学生?列出等级和学生人数。", | |
| "Harold": "BLEU = 26.67, 75.0/43.5/22.7/9.5 (BP=0.920, ratio=0.923, hyp_len=24, ref_len=26)", | |
| "question_toks": [ | |
| "每", | |
| "个", | |
| "教", | |
| "授", | |
| "级", | |
| "别", | |
| "建", | |
| "议", | |
| "多", | |
| "少", | |
| "学", | |
| "生", | |
| "?", | |
| "列", | |
| "出", | |
| "学", | |
| "生", | |
| "的", | |
| "等", | |
| "级", | |
| "和", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| 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": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "What are the first and last name of the faculty who has the most students?", | |
| "question": "拥有最多学生的教师的名字和姓氏是什么?", | |
| "question_cspider": "拥有最多学生的教师的名字和姓氏是什么?", | |
| "Harold": "BLEU = 65.00, 100.0/75.0/66.7/57.1 (BP=0.889, ratio=0.895, hyp_len=17, ref_len=19)", | |
| "question_toks": [ | |
| "拥", | |
| "有", | |
| "最", | |
| "多", | |
| "学", | |
| "生", | |
| "的", | |
| "教", | |
| "师", | |
| "的", | |
| "姓", | |
| "和", | |
| "名", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| 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": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "Give me the the first and last name of the faculty who advises the most students.", | |
| "question": "请给出我给指导最多学生的老师的名字和姓氏。", | |
| "question_cspider": "请给出我给指导最多学生的老师的名字和姓氏。", | |
| "Harold": "BLEU = 66.19, 88.9/76.5/75.0/73.3 (BP=0.846, ratio=0.857, hyp_len=18, ref_len=21)", | |
| "question_toks": [ | |
| "给", | |
| "我", | |
| "建", | |
| "议", | |
| "最", | |
| "多", | |
| "学", | |
| "生", | |
| "的", | |
| "老", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| 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": "activity_1", | |
| "query": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FacID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Show the ids for all the faculty members who have at least 2 students.", | |
| "question": "为所有有至少2名学生的教职工的ID 。", | |
| "question_cspider": "为所有有至少2名学生的教职工的ID 。", | |
| "Harold": "BLEU = 25.15, 77.8/41.2/18.8/6.7 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "至", | |
| "少", | |
| "有", | |
| "2", | |
| "个", | |
| "学", | |
| "生", | |
| "的", | |
| "所", | |
| "有", | |
| "教", | |
| "师", | |
| "的", | |
| "I", | |
| "D", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FacID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Which faculty members advise two ore more students? Give me their faculty ids.", | |
| "question": "哪个教职工指导两个以上的学生?给我他们的教职工ID。", | |
| "question_cspider": "哪个教职工指导两个以上的学生?给我他们的教职工ID。", | |
| "Harold": "BLEU = 32.59, 57.7/36.0/25.0/21.7 (BP=1.000, ratio=1.000, hyp_len=26, ref_len=26)", | |
| "question_toks": [ | |
| "哪", | |
| "些", | |
| "教", | |
| "职", | |
| "员", | |
| "工", | |
| "建", | |
| "议", | |
| "两", | |
| "个", | |
| "或", | |
| "更", | |
| "多", | |
| "学", | |
| "生", | |
| "?", | |
| "给", | |
| "我", | |
| "他", | |
| "们", | |
| "的", | |
| "老", | |
| "师", | |
| "编", | |
| "号", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "EXCEPT", | |
| "SELECT", | |
| "advisor", | |
| "FROM", | |
| "Student" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "except", | |
| "select", | |
| "advisor", | |
| "from", | |
| "student" | |
| ], | |
| "question_spider": "Show ids for the faculty members who don't advise any student.", | |
| "question": "显示不指导任何学生的教职工的ID 。", | |
| "question_cspider": "显示不指导任何学生的教职工的ID 。", | |
| "Harold": "BLEU = 50.47, 81.2/66.7/50.0/30.8 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "不", | |
| "建", | |
| "议", | |
| "任", | |
| "何", | |
| "学", | |
| "生", | |
| "的", | |
| "教", | |
| "员", | |
| "的", | |
| "I", | |
| "D", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| 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, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "EXCEPT", | |
| "SELECT", | |
| "advisor", | |
| "FROM", | |
| "Student" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "except", | |
| "select", | |
| "advisor", | |
| "from", | |
| "student" | |
| ], | |
| "question_spider": "What are the ids of the faculty members who do not advise any student.", | |
| "question": "不指导任何学生的教职工的ID是什么?", | |
| "question_cspider": "不指导任何学生的教职工的ID是什么?", | |
| "Harold": "BLEU = 42.09, 66.7/47.1/37.5/26.7 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", | |
| "question_toks": [ | |
| "不", | |
| "建", | |
| "议", | |
| "任", | |
| "何", | |
| "学", | |
| "生", | |
| "的", | |
| "教", | |
| "员", | |
| "的", | |
| "身", | |
| "份", | |
| "证", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| 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, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT activity_name FROM Activity", | |
| "query_toks": [ | |
| "SELECT", | |
| "activity_name", | |
| "FROM", | |
| "Activity" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "activity_name", | |
| "from", | |
| "activity" | |
| ], | |
| "question_spider": "What activities do we have?", | |
| "question": "我们有什么活动?", | |
| "question_cspider": "我们有什么活动?", | |
| "Harold": "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", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT activity_name FROM Activity", | |
| "query_toks": [ | |
| "SELECT", | |
| "activity_name", | |
| "FROM", | |
| "Activity" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "activity_name", | |
| "from", | |
| "activity" | |
| ], | |
| "question_spider": "List all the activities we have.", | |
| "question": "列出我们所有的活动。", | |
| "question_cspider": "列出我们所有的活动。", | |
| "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", | |
| "question_toks": [ | |
| "列", | |
| "出", | |
| "我", | |
| "们", | |
| "所", | |
| "有", | |
| "的", | |
| "活", | |
| "动", | |
| "。" | |
| ], | |
| "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": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Activity", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Activity" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "activity" | |
| ], | |
| "question_spider": "How many activities do we have?", | |
| "question": "我们有多少活动?", | |
| "question_cspider": "我们有多少活动?", | |
| "Harold": "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", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Activity", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Activity" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "activity" | |
| ], | |
| "question_spider": "Find the number of activities available.", | |
| "question": "找出可用的活动数。", | |
| "question_cspider": "找出可用的活动数。", | |
| "Harold": "BLEU = 75.06, 88.9/75.0/71.4/66.7 (BP=1.000, ratio=1.000, hyp_len=9, ref_len=9)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "可", | |
| "用", | |
| "的", | |
| "活", | |
| "动", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(DISTINCT FacID) FROM Faculty_participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "DISTINCT", | |
| "FacID", | |
| ")", | |
| "FROM", | |
| "Faculty_participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "facid", | |
| ")", | |
| "from", | |
| "faculty_participates_in" | |
| ], | |
| "question_spider": "How many faculty members participate in an activity?", | |
| "question": "有多少教职工参加一项活动?", | |
| "question_cspider": "有多少教职工参加一项活动?", | |
| "Harold": "BLEU = 59.23, 84.6/66.7/54.5/40.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", | |
| "question_toks": [ | |
| "有", | |
| "多", | |
| "少", | |
| "名", | |
| "教", | |
| "员", | |
| "参", | |
| "加", | |
| "一", | |
| "项", | |
| "活", | |
| "动", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(DISTINCT FacID) FROM Faculty_participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "DISTINCT", | |
| "FacID", | |
| ")", | |
| "FROM", | |
| "Faculty_participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "facid", | |
| ")", | |
| "from", | |
| "faculty_participates_in" | |
| ], | |
| "question_spider": "Give me the number of faculty members who participate in an activity", | |
| "question": "给我参加活动的教职工人数", | |
| "question_cspider": "给我参加活动的教职工人数", | |
| "Harold": "BLEU = 67.04, 83.3/72.7/60.0/55.6 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", | |
| "question_toks": [ | |
| "请", | |
| "给", | |
| "我", | |
| "参", | |
| "加", | |
| "活", | |
| "动", | |
| "的", | |
| "教", | |
| "师", | |
| "人", | |
| "数" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "EXCEPT", | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty_participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "except", | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty_participates_in" | |
| ], | |
| "question_spider": "Show the ids of the faculty who don't participate in any activity.", | |
| "question": "显示不参与任何活动的教职工的ID。", | |
| "question_cspider": "显示不参与任何活动的教职工的ID。", | |
| "Harold": "BLEU = 57.57, 87.5/73.3/57.1/38.5 (BP=0.939, ratio=0.941, hyp_len=16, ref_len=17)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "不", | |
| "参", | |
| "加", | |
| "任", | |
| "何", | |
| "活", | |
| "动", | |
| "的", | |
| "教", | |
| "师", | |
| "的", | |
| "I", | |
| "D", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| 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, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "EXCEPT", | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty_participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "except", | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty_participates_in" | |
| ], | |
| "question_spider": "Which faculty do not participate in any activity? Find their faculty ids.", | |
| "question": "哪些教职工不参与任何活动?找出他们的教职工ID。", | |
| "question_cspider": "哪些教职工不参与任何活动?找出他们的教职工ID。", | |
| "Harold": "BLEU = 28.51, 66.7/40.0/26.3/16.7 (BP=0.867, ratio=0.875, hyp_len=21, ref_len=24)", | |
| "question_toks": [ | |
| "哪", | |
| "个", | |
| "系", | |
| "不", | |
| "参", | |
| "加", | |
| "任", | |
| "何", | |
| "活", | |
| "动", | |
| "?", | |
| "查", | |
| "找", | |
| "他", | |
| "们", | |
| "的", | |
| "教", | |
| "师", | |
| "编", | |
| "号", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| 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, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty_participates_in", | |
| "INTERSECT", | |
| "SELECT", | |
| "advisor", | |
| "FROM", | |
| "Student" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty_participates_in", | |
| "intersect", | |
| "select", | |
| "advisor", | |
| "from", | |
| "student" | |
| ], | |
| "question_spider": "Show the ids of all the faculty members who participate in an activity and advise a student.", | |
| "question": "请出示所有参加活动且指导学生的教职员工的ID。", | |
| "question_cspider": "请出示所有参加活动且指导学生的教职员工的ID。", | |
| "Harold": "BLEU = 19.05, 66.7/30.4/13.6/4.8 (BP=1.000, ratio=1.043, hyp_len=24, ref_len=23)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "参", | |
| "加", | |
| "活", | |
| "动", | |
| "的", | |
| "所", | |
| "有", | |
| "教", | |
| "员", | |
| "的", | |
| "I", | |
| "D", | |
| ",", | |
| "并", | |
| "为", | |
| "学", | |
| "生", | |
| "提", | |
| "供", | |
| "建", | |
| "议", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty_participates_in", | |
| "INTERSECT", | |
| "SELECT", | |
| "advisor", | |
| "FROM", | |
| "Student" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty_participates_in", | |
| "intersect", | |
| "select", | |
| "advisor", | |
| "from", | |
| "student" | |
| ], | |
| "question_spider": "What are ids of the faculty members who not only participate in an activity but also advise a student.", | |
| "question": "哪些是既参加活动又指导学生的教职工的ID?", | |
| "question_cspider": "哪些是既参加活动又指导学生的教职工的ID?", | |
| "Harold": "BLEU = 0.00, 41.9/20.0/3.4/0.0 (BP=1.000, ratio=1.476, hyp_len=31, ref_len=21)", | |
| "question_toks": [ | |
| "不", | |
| "仅", | |
| "参", | |
| "加", | |
| "一", | |
| "项", | |
| "活", | |
| "动", | |
| "而", | |
| "且", | |
| "还", | |
| "向", | |
| "学", | |
| "生", | |
| "提", | |
| "供", | |
| "建", | |
| "议", | |
| "的", | |
| "教", | |
| "职", | |
| "员", | |
| "工", | |
| "的", | |
| "身", | |
| "分", | |
| "证", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Mark", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Giuliano", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "How many activities does Mark Giuliano participate in?", | |
| "question": "“Mark Giuliano”参加了多少活动?", | |
| "question_cspider": "“Mark Giuliano”参加了多少活动?", | |
| "Harold": "BLEU = 34.67, 40.0/36.8/33.3/29.4 (BP=1.000, ratio=1.333, hyp_len=20, ref_len=15)", | |
| "question_toks": [ | |
| "M", | |
| "a", | |
| "r", | |
| "k", | |
| " ", | |
| "G", | |
| "i", | |
| "u", | |
| "l", | |
| "i", | |
| "a", | |
| "n", | |
| "o", | |
| "参", | |
| "加", | |
| "了", | |
| "多", | |
| "少", | |
| "活", | |
| "动", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mark\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Giuliano\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Mark", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Giuliano", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Find the number of activities Mark Giuliano is involved in.", | |
| "question": "找出“Mark Giuliano”参与的活动数量。", | |
| "question_cspider": "找出“Mark Giuliano”参与的活动数量。", | |
| "Harold": "BLEU = 32.21, 40.9/33.3/30.0/26.3 (BP=1.000, ratio=1.294, hyp_len=22, ref_len=17)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "M", | |
| "a", | |
| "r", | |
| "k", | |
| " ", | |
| "G", | |
| "i", | |
| "u", | |
| "l", | |
| "i", | |
| "a", | |
| "n", | |
| "o", | |
| "参", | |
| "与", | |
| "的", | |
| "活", | |
| "动", | |
| "数", | |
| "量", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mark\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Giuliano\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.activity_name", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "Activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T3.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Mark", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Giuliano", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t3", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Show the names of all the activities Mark Giuliano participates in.", | |
| "question": "显示“Mark Giuliano”参与的所有活动的名称。", | |
| "question_cspider": "显示“Mark Giuliano”参与的所有活动的名称。", | |
| "Harold": "BLEU = 34.96, 48.0/37.5/30.4/27.3 (BP=1.000, ratio=1.250, hyp_len=25, ref_len=20)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "M", | |
| "a", | |
| "r", | |
| "k", | |
| " ", | |
| "G", | |
| "i", | |
| "u", | |
| "l", | |
| "i", | |
| "a", | |
| "n", | |
| "o", | |
| "参", | |
| "加", | |
| "的", | |
| "所", | |
| "有", | |
| "活", | |
| "动", | |
| "的", | |
| "名", | |
| "称", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mark\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Giuliano\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.activity_name", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "Activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T3.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Mark", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Giuliano", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t3", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "What are the names of the activities Mark Giuliano is involved in", | |
| "question": "“Mark Giuliano”参与的活动的名称是什么?", | |
| "question_cspider": "“Mark Giuliano”参与的活动的名称是什么?", | |
| "Harold": "BLEU = 43.94, 47.8/45.5/42.9/40.0 (BP=1.000, ratio=1.211, hyp_len=23, ref_len=19)", | |
| "question_toks": [ | |
| "M", | |
| "a", | |
| "r", | |
| "k", | |
| " ", | |
| "G", | |
| "i", | |
| "u", | |
| "l", | |
| "i", | |
| "a", | |
| "n", | |
| "o", | |
| "参", | |
| "与", | |
| "的", | |
| "活", | |
| "动", | |
| "的", | |
| "名", | |
| "称", | |
| "是", | |
| "什", | |
| "么" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mark\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Giuliano\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "T1.FacID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "t1", | |
| ".", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid" | |
| ], | |
| "question_spider": "Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.", | |
| "question": "显示所有参加某项活动的教职员工的名字和姓氏,以及他们参加的活动数量。", | |
| "question_cspider": "显示所有参加某项活动的教职员工的名字和姓氏,以及他们参加的活动数量。", | |
| "Harold": "BLEU = 63.31, 96.7/79.3/64.3/55.6 (BP=0.875, ratio=0.882, hyp_len=30, ref_len=34)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "参", | |
| "加", | |
| "某", | |
| "项", | |
| "活", | |
| "动", | |
| "的", | |
| "所", | |
| "有", | |
| "教", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| ",", | |
| "以", | |
| "及", | |
| "参", | |
| "加", | |
| "的", | |
| "活", | |
| "动", | |
| "数", | |
| "量", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "T1.FacID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "t1", | |
| ".", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid" | |
| ], | |
| "question_spider": "What is the first and last name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in.", | |
| "question": "参加至少一项活动的教职员工的名字和姓氏是什么?对于他们中的每一个人,也显示他们参加的活动的数量。", | |
| "question_cspider": "参加至少一项活动的教职员工的名字和姓氏是什么?对于他们中的每一个人,也显示他们参加的活动的数量。", | |
| "Harold": "BLEU = 55.01, 92.7/70.0/59.0/47.4 (BP=0.843, ratio=0.854, hyp_len=41, ref_len=48)", | |
| "question_toks": [ | |
| "参", | |
| "加", | |
| "至", | |
| "少", | |
| "一", | |
| "项", | |
| "活", | |
| "动", | |
| "的", | |
| "教", | |
| "师", | |
| "的", | |
| "姓", | |
| "和", | |
| "名", | |
| "是", | |
| "什", | |
| "么", | |
| "?", | |
| "对", | |
| "于", | |
| "他", | |
| "们", | |
| "每", | |
| "个", | |
| "人", | |
| ",", | |
| "还", | |
| "请", | |
| "显", | |
| "示", | |
| "他", | |
| "们", | |
| "参", | |
| "加", | |
| "的", | |
| "活", | |
| "动", | |
| "数", | |
| "量", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid" | |
| ], | |
| "question_spider": "Show all the activity names and the number of faculty involved in each activity.", | |
| "question": "显示所有活动名称和参与每个活动的教职工人数。", | |
| "question_cspider": "显示所有活动名称和参与每个活动的教职工人数。", | |
| "Harold": "BLEU = 56.30, 81.8/66.7/50.0/36.8 (BP=1.000, ratio=1.000, hyp_len=22, ref_len=22)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "活", | |
| "动", | |
| "名", | |
| "称", | |
| "和", | |
| "每", | |
| "个", | |
| "活", | |
| "动", | |
| "中", | |
| "涉", | |
| "及", | |
| "的", | |
| "教", | |
| "师", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 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": "activity_1", | |
| "query": "SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid" | |
| ], | |
| "question_spider": "How many faculty members participate in each activity? Return the activity names and the number of faculty members.", | |
| "question": "有多少教职工参加每一项活动?返回活动名称和教职工人数。", | |
| "question_cspider": "有多少教职工参加每一项活动?返回活动名称和教职工人数。", | |
| "Harold": "BLEU = 44.14, 84.0/58.3/39.1/27.3 (BP=0.923, ratio=0.926, hyp_len=25, ref_len=27)", | |
| "question_toks": [ | |
| "每", | |
| "个", | |
| "活", | |
| "动", | |
| "有", | |
| "多", | |
| "少", | |
| "名", | |
| "教", | |
| "员", | |
| "参", | |
| "加", | |
| "?", | |
| "返", | |
| "回", | |
| "活", | |
| "动", | |
| "名", | |
| "称", | |
| "和", | |
| "教", | |
| "师", | |
| "人", | |
| "数", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 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": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "What is the first and last name of the faculty participating in the most activities?", | |
| "question": "参加最多活动的教职工的姓名是什么?", | |
| "question_cspider": "参加最多活动的教职工的姓名是什么?", | |
| "Harold": "BLEU = 66.75, 88.2/75.0/60.0/50.0 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", | |
| "question_toks": [ | |
| "参", | |
| "加", | |
| "最", | |
| "多", | |
| "活", | |
| "动", | |
| "的", | |
| "教", | |
| "师", | |
| "的", | |
| "姓", | |
| "和", | |
| "名", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| 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": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "Find the first and last name of the faculty who is involved in the largest number of activities.", | |
| "question": "找出参与最多数量的活动的教员的名字和姓氏。", | |
| "question_cspider": "找出参与最多数量的活动的教员的名字和姓氏。", | |
| "Harold": "BLEU = 51.89, 88.9/70.6/56.2/40.0 (BP=0.846, ratio=0.857, hyp_len=18, ref_len=21)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "参", | |
| "与", | |
| "最", | |
| "多", | |
| "活", | |
| "动", | |
| "的", | |
| "教", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| 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": "activity_1", | |
| "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "What is the name of the activity that has the most faculty members involved in?", | |
| "question": "教职工参与最多的活动名称是什么?", | |
| "question_cspider": "教职工参与最多的活动名称是什么?", | |
| "Harold": "BLEU = 56.81, 81.2/66.7/50.0/38.5 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", | |
| "question_toks": [ | |
| "参", | |
| "与", | |
| "人", | |
| "数", | |
| "最", | |
| "多", | |
| "的", | |
| "活", | |
| "动", | |
| "的", | |
| "名", | |
| "称", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| 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": "activity_1", | |
| "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "Which activity has the most faculty members participating in? Find the activity name.", | |
| "question": "哪些活动是教职工最多参加的活动?查出活动名称。", | |
| "question_cspider": "哪些活动是教职工最多参加的活动?查出活动名称。", | |
| "Harold": "BLEU = 29.48, 80.0/52.6/27.8/11.8 (BP=0.861, ratio=0.870, hyp_len=20, ref_len=23)", | |
| "question_toks": [ | |
| "教", | |
| "员", | |
| "参", | |
| "加", | |
| "最", | |
| "多", | |
| "的", | |
| "活", | |
| "动", | |
| "是", | |
| "什", | |
| "么", | |
| "?", | |
| "查", | |
| "找", | |
| "活", | |
| "动", | |
| "名", | |
| "称", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| 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": "activity_1", | |
| "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Student", | |
| "EXCEPT", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "stuid", | |
| "from", | |
| "student", | |
| "except", | |
| "select", | |
| "stuid", | |
| "from", | |
| "participates_in" | |
| ], | |
| "question_spider": "Show the ids of the students who don't participate in any activity.", | |
| "question": "显示不参与任何活动的学生的ID。", | |
| "question_cspider": "显示不参与任何活动的学生的ID。", | |
| "Harold": "BLEU = 81.54, 93.8/86.7/78.6/69.2 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "不", | |
| "参", | |
| "加", | |
| "任", | |
| "何", | |
| "活", | |
| "动", | |
| "的", | |
| "学", | |
| "生", | |
| "的", | |
| "I", | |
| "D", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| 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, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Student", | |
| "EXCEPT", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "stuid", | |
| "from", | |
| "student", | |
| "except", | |
| "select", | |
| "stuid", | |
| "from", | |
| "participates_in" | |
| ], | |
| "question_spider": "What are the ids of the students who are not involved in any activity", | |
| "question": "没有参与任何活动的学生的ID是什么?", | |
| "question_cspider": "没有参与任何活动的学生的ID是什么?", | |
| "Harold": "BLEU = 59.42, 76.5/68.8/60.0/50.0 (BP=0.943, ratio=0.944, hyp_len=17, ref_len=18)", | |
| "question_toks": [ | |
| "不", | |
| "参", | |
| "与", | |
| "任", | |
| "何", | |
| "活", | |
| "动", | |
| "的", | |
| "学", | |
| "生", | |
| "的", | |
| "身", | |
| "份", | |
| "证", | |
| "是", | |
| "什", | |
| "么" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| 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, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20", | |
| "query_toks": [ | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Participates_in", | |
| "INTERSECT", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Student", | |
| "WHERE", | |
| "age", | |
| "<", | |
| "20" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "intersect", | |
| "select", | |
| "stuid", | |
| "from", | |
| "student", | |
| "where", | |
| "age", | |
| "<", | |
| "value" | |
| ], | |
| "question_spider": "Show the ids for all the students who participate in an activity and are under 20.", | |
| "question": "显示所有20岁以下参加活动的学生ID 。", | |
| "question_cspider": "显示所有20岁以下参加活动的学生ID 。", | |
| "Harold": "BLEU = 44.02, 79.2/60.9/40.9/19.0 (BP=1.000, ratio=1.263, hyp_len=24, ref_len=19)", | |
| "question_toks": [ | |
| "显", | |
| "示", | |
| "所", | |
| "有", | |
| "参", | |
| "加", | |
| "活", | |
| "动", | |
| "且", | |
| "年", | |
| "龄", | |
| "在", | |
| "2", | |
| "0", | |
| "岁", | |
| "以", | |
| "下", | |
| "的", | |
| "学", | |
| "生", | |
| "的", | |
| "I", | |
| "D", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| 20, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20", | |
| "query_toks": [ | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Participates_in", | |
| "INTERSECT", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Student", | |
| "WHERE", | |
| "age", | |
| "<", | |
| "20" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "intersect", | |
| "select", | |
| "stuid", | |
| "from", | |
| "student", | |
| "where", | |
| "age", | |
| "<", | |
| "value" | |
| ], | |
| "question_spider": "What are the ids of the students who are under 20 years old and are involved in at least one activity.", | |
| "question": "参加至少一项活动的20岁以下学生的ID是什么?", | |
| "question_cspider": "参加至少一项活动的20岁以下学生的ID是什么?", | |
| "Harold": "BLEU = 52.52, 80.0/62.5/47.8/31.8 (BP=1.000, ratio=1.087, hyp_len=25, ref_len=23)", | |
| "question_toks": [ | |
| "2", | |
| "0", | |
| "岁", | |
| "以", | |
| "下", | |
| "并", | |
| "参", | |
| "与", | |
| "至", | |
| "少", | |
| "一", | |
| "项", | |
| "活", | |
| "动", | |
| "的", | |
| "学", | |
| "生", | |
| "的", | |
| "身", | |
| "分", | |
| "证", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| 20, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Student", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.StuID", | |
| "=", | |
| "T2.StuID", | |
| "GROUP", | |
| "BY", | |
| "T1.StuID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "student", | |
| "as", | |
| "t1", | |
| "join", | |
| "participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "What is the first and last name of the student participating in the most activities?", | |
| "question": "参加最多活动的学生的名字和姓氏是什么?", | |
| "question_cspider": "参加最多活动的学生的名字和姓氏是什么?", | |
| "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=19, ref_len=19)", | |
| "question_toks": [ | |
| "参", | |
| "加", | |
| "最", | |
| "多", | |
| "活", | |
| "动", | |
| "的", | |
| "学", | |
| "生", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| 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": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Student", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.StuID", | |
| "=", | |
| "T2.StuID", | |
| "GROUP", | |
| "BY", | |
| "T1.StuID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "student", | |
| "as", | |
| "t1", | |
| "join", | |
| "participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "Tell me the first and last name of the student who has the most activities.", | |
| "question": "告诉我参加最多数量活动的学生的姓氏和姓氏。", | |
| "question_cspider": "告诉我参加最多数量活动的学生的姓氏和姓氏。", | |
| "Harold": "BLEU = 31.82, 88.2/62.5/33.3/14.3 (BP=0.790, ratio=0.810, hyp_len=17, ref_len=21)", | |
| "question_toks": [ | |
| "告", | |
| "诉", | |
| "我", | |
| "活", | |
| "动", | |
| "最", | |
| "多", | |
| "的", | |
| "学", | |
| "生", | |
| "的", | |
| "名", | |
| "字", | |
| "和", | |
| "姓", | |
| "氏", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| 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": "activity_1", | |
| "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "What is the name of the activity with the most students?", | |
| "question": "参加最多数量活动的学生的姓氏和姓氏是什么?", | |
| "question_cspider": "参加最多数量活动的学生的姓氏和姓氏是什么?", | |
| "Harold": "BLEU = 20.57, 81.2/46.7/21.4/7.7 (BP=0.732, ratio=0.762, hyp_len=16, ref_len=21)", | |
| "question_toks": [ | |
| "学", | |
| "生", | |
| "人", | |
| "数", | |
| "最", | |
| "多", | |
| "的", | |
| "活", | |
| "动", | |
| "的", | |
| "名", | |
| "称", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| 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": "activity_1", | |
| "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question_spider": "Find the name of the activity that has the largest number of student participants.", | |
| "question": "找出学生参与人数最多的活动的名称。", | |
| "question_cspider": "找出学生参与人数最多的活动的名称。", | |
| "Harold": "BLEU = 70.86, 88.2/75.0/66.7/57.1 (BP=1.000, ratio=1.000, hyp_len=17, ref_len=17)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "学", | |
| "生", | |
| "参", | |
| "加", | |
| "人", | |
| "数", | |
| "最", | |
| "多", | |
| "的", | |
| "活", | |
| "动", | |
| "的", | |
| "名", | |
| "称", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| 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": "activity_1", | |
| "query": "SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "OR", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Find the first names of the faculty members who are playing Canoeing or Kayaking.", | |
| "question": "找出正在玩“Canoeing”或“Kayaking”的教职员的名字。", | |
| "question_cspider": "找出正在玩“Canoeing”或“Kayaking”的教职员的名字。", | |
| "Harold": "BLEU = 23.76, 89.5/55.6/29.4/6.2 (BP=0.769, ratio=0.792, hyp_len=19, ref_len=24)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "正", | |
| "在", | |
| "玩", | |
| "独", | |
| "木", | |
| "舟", | |
| "或", | |
| "皮", | |
| "划", | |
| "艇", | |
| "的", | |
| "教", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "OR", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Which faculty members are playing either Canoeing or Kayaking? Tell me their first names.", | |
| "question": "哪个教职员在玩“Canoeing”或“Kayaking”?告诉我他们的名字。", | |
| "question_cspider": "哪个教职员在玩“Canoeing”或“Kayaking”?告诉我他们的名字。", | |
| "Harold": "BLEU = 44.88, 91.3/63.6/47.6/35.0 (BP=0.805, ratio=0.821, hyp_len=23, ref_len=28)", | |
| "question_toks": [ | |
| "哪", | |
| "些", | |
| "教", | |
| "师", | |
| "在", | |
| "玩", | |
| "独", | |
| "木", | |
| "舟", | |
| "或", | |
| "皮", | |
| "划", | |
| "艇", | |
| "?", | |
| "告", | |
| "诉", | |
| "我", | |
| "他", | |
| "们", | |
| "的", | |
| "名", | |
| "字", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "lname", | |
| "FROM", | |
| "faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "'Professor", | |
| "'", | |
| "EXCEPT", | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "OR", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "except", | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Find the first names of professors who are not playing Canoeing or Kayaking.", | |
| "question": "找出不玩“Canoeing”或“Kayaking”的“Professor”的名字。", | |
| "question_cspider": "找出不玩“Canoeing”或“Kayaking”的“Professor”的名字。", | |
| "Harold": "BLEU = 21.65, 94.4/52.9/25.0/6.7 (BP=0.717, ratio=0.750, hyp_len=18, ref_len=24)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "不", | |
| "玩", | |
| "独", | |
| "木", | |
| "舟", | |
| "或", | |
| "皮", | |
| "划", | |
| "艇", | |
| "的", | |
| "教", | |
| "授", | |
| "的", | |
| "名", | |
| "字", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "lname", | |
| "FROM", | |
| "faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "'Professor", | |
| "'", | |
| "EXCEPT", | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "OR", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "except", | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "What are the first names of the professors who do not play Canoeing or Kayaking as activities?", | |
| "question": "不把“Canoeing”或“Kayaking”作为活动的“Professor”的名字是什么?", | |
| "question_cspider": "不把“Canoeing”或“Kayaking”作为活动的“Professor”的名字是什么?", | |
| "Harold": "BLEU = 42.56, 95.7/68.2/47.6/30.0 (BP=0.770, ratio=0.793, hyp_len=23, ref_len=29)", | |
| "question_toks": [ | |
| "不", | |
| "玩", | |
| "独", | |
| "木", | |
| "舟", | |
| "或", | |
| "皮", | |
| "划", | |
| "艇", | |
| "作", | |
| "为", | |
| "活", | |
| "动", | |
| "的", | |
| "教", | |
| "授", | |
| "的", | |
| "名", | |
| "字", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Find the first names of the faculty members who participate in Canoeing and Kayaking.", | |
| "question": "找出参加“Canoeing”和“Kayaking”运动的教职员的名字。", | |
| "question_cspider": "找出参加“Canoeing”和“Kayaking”运动的教职员的名字。", | |
| "Harold": "BLEU = 20.17, 88.9/52.9/25.0/6.7 (BP=0.678, ratio=0.720, hyp_len=18, ref_len=25)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "参", | |
| "加", | |
| "独", | |
| "木", | |
| "舟", | |
| "和", | |
| "皮", | |
| "划", | |
| "艇", | |
| "的", | |
| "教", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "What are the first names of the faculty members playing both Canoeing and Kayaking?", | |
| "question": "那些同时玩“Canoeing”和“Kayaking”的教职员叫什么名字?", | |
| "question_cspider": "那些同时玩“Canoeing”和“Kayaking”的教职员叫什么名字?", | |
| "Harold": "BLEU = 0.00, 77.8/35.3/12.5/0.0 (BP=0.641, ratio=0.692, hyp_len=18, ref_len=26)", | |
| "question_toks": [ | |
| "玩", | |
| "独", | |
| "木", | |
| "舟", | |
| "和", | |
| "皮", | |
| "划", | |
| "艇", | |
| "的", | |
| "老", | |
| "师", | |
| "的", | |
| "名", | |
| "字", | |
| "是", | |
| "什", | |
| "么", | |
| "?" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.stuid", | |
| "FROM", | |
| "participates_in", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T2.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.stuid", | |
| "FROM", | |
| "participates_in", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T2.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "activity", | |
| "as", | |
| "t2", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t2", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "activity", | |
| "as", | |
| "t2", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t2", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Find the ids of the students who participate in Canoeing and Kayaking.", | |
| "question": "找出参加“Canoeing”和“Kayaking”运动的学生的ID。", | |
| "question_cspider": "找出参加“Canoeing”和“Kayaking”运动的学生的ID。", | |
| "Harold": "BLEU = 37.03, 94.4/64.7/43.8/26.7 (BP=0.717, ratio=0.750, hyp_len=18, ref_len=24)", | |
| "question_toks": [ | |
| "查", | |
| "找", | |
| "参", | |
| "加", | |
| "独", | |
| "木", | |
| "舟", | |
| "和", | |
| "皮", | |
| "划", | |
| "艇", | |
| "的", | |
| "学", | |
| "生", | |
| "的", | |
| "I", | |
| "D", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.stuid", | |
| "FROM", | |
| "participates_in", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T2.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.stuid", | |
| "FROM", | |
| "participates_in", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T2.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "activity", | |
| "as", | |
| "t2", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t2", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "activity", | |
| "as", | |
| "t2", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t2", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question_spider": "Which students participate in both Canoeing and Kayaking as their activities? Tell me their student ids.", | |
| "question": "哪些学生参加“Canoeing”和“Kayaking”作为他们的活动?告诉我他们的学生ID 。", | |
| "question_cspider": "哪些学生参加“Canoeing”和“Kayaking”作为他们的活动?告诉我他们的学生ID 。", | |
| "Harold": "BLEU = 42.99, 89.3/66.7/50.0/36.0 (BP=0.751, ratio=0.778, hyp_len=28, ref_len=36)", | |
| "question_toks": [ | |
| "哪", | |
| "些", | |
| "学", | |
| "生", | |
| "同", | |
| "时", | |
| "参", | |
| "加", | |
| "独", | |
| "木", | |
| "舟", | |
| "和", | |
| "皮", | |
| "划", | |
| "艇", | |
| "活", | |
| "动", | |
| "?", | |
| "告", | |
| "诉", | |
| "我", | |
| "他", | |
| "们", | |
| "的", | |
| "学", | |
| "生", | |
| "证", | |
| "。" | |
| ], | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| ] |