[ { "db_id": "allergy_1", "query": "SELECT count(DISTINCT allergy) FROM Allergy_type", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type" ], "question_spider": "How many allergies are there?", "question": "有多少过敏反应?", "question_cspider": "有多少过敏反应?", "Harold": "BLEU = 56.98, 100.0/80.0/75.0/66.7 (BP=0.717, ratio=0.750, hyp_len=6, ref_len=8)", "question_toks": [ "有", "多", "少", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 1, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT allergy) FROM Allergy_type", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type" ], "question_spider": "How many allergy entries are there?", "question": "有多少过敏项目?", "question_cspider": "有多少过敏项目?", "Harold": "BLEU = 59.46, 87.5/71.4/50.0/40.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, 1, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT allergytype) FROM Allergy_type", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "allergytype", ")", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "allergytype", ")", "from", "allergy_type" ], "question_spider": "How many different allergy types exist?", "question": "有多少种不同的过敏反应类型?", "question_cspider": "有多少种不同的过敏反应类型?", "Harold": "BLEU = 44.95, 75.0/63.6/50.0/33.3 (BP=0.846, ratio=0.857, hyp_len=12, ref_len=14)", "question_toks": [ "存", "在", "几", "种", "不", "同", "的", "过", "敏", "类", "型", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT allergytype) FROM Allergy_type", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "allergytype", ")", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "allergytype", ")", "from", "allergy_type" ], "question_spider": "How many distinct allergies are there?", "question": "有多少种不同的过敏反应?", "question_cspider": "有多少种不同的过敏反应?", "Harold": "BLEU = 32.04, 72.7/50.0/33.3/12.5 (BP=0.913, ratio=0.917, hyp_len=11, ref_len=12)", "question_toks": [ "有", "多", "少", "种", "明", "显", "的", "过", "敏", "症", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT allergytype FROM Allergy_type", "query_toks": [ "SELECT", "DISTINCT", "allergytype", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "distinct", "allergytype", "from", "allergy_type" ], "question_spider": "Show all allergy types.", "question": "显示所有过敏类型。", "question_cspider": "显示所有过敏类型。", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=9, ref_len=9)", "question_toks": [ "显", "示", "所", "有", "过", "敏", "类", "型", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT allergytype FROM Allergy_type", "query_toks": [ "SELECT", "DISTINCT", "allergytype", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "distinct", "allergytype", "from", "allergy_type" ], "question_spider": "What are the different allergy types?", "question": "过敏的类型有哪些?", "question_cspider": "过敏的类型有哪些?", "Harold": "BLEU = 0.00, 81.8/40.0/11.1/0.0 (BP=1.000, ratio=1.222, hyp_len=11, ref_len=9)", "question_toks": [ "有", "哪", "些", "不", "同", "的", "过", "敏", "类", "型", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergy , allergytype FROM Allergy_type", "query_toks": [ "SELECT", "allergy", ",", "allergytype", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "allergy", ",", "allergytype", "from", "allergy_type" ], "question_spider": "Show all allergies and their types.", "question": "显示所有过敏和他们的类型。", "question_cspider": "显示所有过敏和他们的类型。", "Harold": "BLEU = 49.00, 81.8/70.0/55.6/37.5 (BP=0.834, ratio=0.846, hyp_len=11, ref_len=13)", "question_toks": [ "显", "示", "所", "有", "过", "敏", "及", "其", "类", "型", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergy , allergytype FROM Allergy_type", "query_toks": [ "SELECT", "allergy", ",", "allergytype", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "allergy", ",", "allergytype", "from", "allergy_type" ], "question_spider": "What are the allergies and their types?", "question": "过敏和它们的类型是什么?", "question_cspider": "过敏和它们的类型是什么?", "Harold": "BLEU = 0.00, 72.7/30.0/0.0/0.0 (BP=0.913, ratio=0.917, hyp_len=11, ref_len=12)", "question_toks": [ "什", "么", "是", "过", "敏", "症", "及", "其", "类", "型", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"", "query_toks": [ "SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "food", "''" ], "query_toks_no_value": [ "select", "distinct", "allergy", "from", "allergy_type", "where", "allergytype", "=", "value" ], "question_spider": "Show all allergies with type food.", "question": "显示所有类型的“food”过敏。", "question_cspider": "显示所有类型的“food”过敏。", "Harold": "BLEU = 29.62, 80.0/50.0/23.1/8.3 (BP=1.000, ratio=1.071, hyp_len=15, ref_len=14)", "question_toks": [ "显", "示", "所", "有", "与", "食", "物", "类", "型", "有", "关", "的", "过", "敏", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"", "query_toks": [ "SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "food", "''" ], "query_toks_no_value": [ "select", "distinct", "allergy", "from", "allergy_type", "where", "allergytype", "=", "value" ], "question_spider": "What are all the different food allergies?", "question": "所有不同的“food”过敏是什么?", "question_cspider": "所有不同的“食物\"过敏是什么?", "Harold": "BLEU = 0.00, 100.0/50.0/11.1/0.0 (BP=0.695, ratio=0.733, hyp_len=11, ref_len=15)", "question_toks": [ "有", "什", "么", "不", "同", "的", "食", "物", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "WHERE", "allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "where", "allergy", "=", "value" ], "question_spider": "What is the type of allergy Cat?", "question": "过敏原是“Cat”的过敏类型是什么?", "question_cspider": "过敏原是\"猫”的过敏类型是什么?", "Harold": "BLEU = 0.00, 100.0/50.0/14.3/0.0 (BP=0.459, ratio=0.562, hyp_len=9, ref_len=16)", "question_toks": [ "过", "敏", "猫", "是", "什", "么", "类", "型", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "WHERE", "allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "where", "allergy", "=", "value" ], "question_spider": "What is allergy type of a cat allergy?", "question": "“Cat”过敏是什么类型的?", "question_cspider": "“Cat”过敏是什么类型的?", "Harold": "BLEU = 0.00, 100.0/33.3/0.0/0.0 (BP=0.490, ratio=0.583, hyp_len=7, ref_len=12)", "question_toks": [ "什", "么", "是", "猫", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "animal", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "allergy_type", "where", "allergytype", "=", "value" ], "question_spider": "How many allergies have type animal?", "question": "有多少“animal”过敏反应?", "question_cspider": "有多少“animal”过敏反应?", "Harold": "BLEU = 0.00, 100.0/57.1/16.7/0.0 (BP=0.607, ratio=0.667, hyp_len=8, ref_len=12)", "question_toks": [ "动", "物", "有", "多", "少", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "animal", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "allergy_type", "where", "allergytype", "=", "value" ], "question_spider": "How many animal type allergies exist?", "question": "有多少种“animal”过敏?", "question_cspider": "有多少种“animal”过敏?", "Harold": "BLEU = 0.00, 80.0/55.6/25.0/0.0 (BP=0.905, ratio=0.909, hyp_len=10, ref_len=11)", "question_toks": [ "存", "在", "多", "少", "种", "动", "物", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype", "query_toks": [ "SELECT", "allergytype", ",", "count", "(", "*", ")", "FROM", "Allergy_type", "GROUP", "BY", "allergytype" ], "query_toks_no_value": [ "select", "allergytype", ",", "count", "(", "*", ")", "from", "allergy_type", "group", "by", "allergytype" ], "question_spider": "Show all allergy types and the number of allergies in each type.", "question": "显示所有过敏类型和每种类型的数量。", "question_cspider": "显示所有过敏类型和每种类型的数量。", "Harold": "BLEU = 59.49, 80.0/68.4/55.6/41.2 (BP=1.000, ratio=1.176, hyp_len=20, ref_len=17)", "question_toks": [ "显", "示", "所", "有", "过", "敏", "类", "型", "以", "及", "每", "种", "类", "型", "的", "过", "敏", "数", "量", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype", "query_toks": [ "SELECT", "allergytype", ",", "count", "(", "*", ")", "FROM", "Allergy_type", "GROUP", "BY", "allergytype" ], "query_toks_no_value": [ "select", "allergytype", ",", "count", "(", "*", ")", "from", "allergy_type", "group", "by", "allergytype" ], "question_spider": "What are the allergy types and how many allergies correspond to each one?", "question": "过敏类型有哪些?每种类型有多少种过敏反应?", "question_cspider": "过敏类型有哪些?每种类型有多少种过敏反应?", "Harold": "BLEU = 35.55, 70.0/47.4/33.3/17.6 (BP=0.951, ratio=0.952, hyp_len=20, ref_len=21)", "question_toks": [ "什", "么", "是", "过", "敏", "类", "型", "?", "每", "种", "过", "敏", "对", "应", "多", "少", "种", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "GROUP", "BY", "allergytype", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "group", "by", "allergytype", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question_spider": "Which allergy type has most number of allergies?", "question": "哪种过敏类型有最多的过敏反应?", "question_cspider": "哪种过敏类型有最多的过敏反应?", "Harold": "BLEU = 46.07, 85.7/61.5/41.7/27.3 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", "question_toks": [ "哪", "种", "过", "敏", "类", "型", "的", "过", "敏", "人", "数", "最", "多", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "GROUP", "BY", "allergytype", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "group", "by", "allergytype", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question_spider": "Which allergy type is most common?", "question": "哪种过敏反应类型最常见?", "question_cspider": "哪种过敏反应类型最常见?", "Harold": "BLEU = 64.32, 100.0/88.9/75.0/57.1 (BP=0.819, ratio=0.833, hyp_len=10, ref_len=12)", "question_toks": [ "哪", "种", "过", "敏", "类", "型", "最", "常", "见", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "GROUP", "BY", "allergytype", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "group", "by", "allergytype", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question_spider": "Which allergy type has least number of allergies?", "question": "哪种过敏类型有最少的过敏反应?", "question_cspider": "哪种过敏类型有最少的过敏反应?", "Harold": "BLEU = 62.57, 100.0/76.9/58.3/45.5 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", "question_toks": [ "哪", "种", "过", "敏", "类", "型", "的", "过", "敏", "反", "应", "最", "少", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "GROUP", "BY", "allergytype", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "group", "by", "allergytype", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question_spider": "Which allergy type is the least common?", "question": "哪种过敏类型最不常见?", "question_cspider": "哪种过敏类型最不常见?", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=11, ref_len=11)", "question_toks": [ "哪", "种", "过", "敏", "类", "型", "最", "不", "常", "见", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student" ], "question_spider": "How many students are there?", "question": "有多少学生?", "question_cspider": "有多少学生?", "Harold": "BLEU = 0.00, 50.0/28.6/16.7/0.0 (BP=1.000, ratio=1.333, hyp_len=8, ref_len=6)", "question_toks": [ "那", "里", "有", "几", "个", "学", "生", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student" ], "question_spider": "What is the total number of students?", "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", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Fname , Lname FROM Student", "query_toks": [ "SELECT", "Fname", ",", "Lname", "FROM", "Student" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student" ], "question_spider": "Show first name and last name for all students.", "question": "显示所有学生的名字和姓氏。", "question_cspider": "显示所有学生的名字和姓氏。", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=13, ref_len=13)", "question_toks": [ "显", "示", "所", "有", "学", "生", "的", "名", "字", "和", "姓", "氏", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Fname , Lname FROM Student", "query_toks": [ "SELECT", "Fname", ",", "Lname", "FROM", "Student" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student" ], "question_spider": "What are the full names of all students", "question": "所有学生的全名是什么?", "question_cspider": "所有学生的全名是什么?", "Harold": "BLEU = 90.48, 100.0/100.0/100.0/100.0 (BP=0.905, ratio=0.909, hyp_len=10, ref_len=11)", "question_toks": [ "所", "有", "学", "生", "的", "全", "名", "是", "什", "么" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT advisor) FROM Student", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "advisor", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "advisor", ")", "from", "student" ], "question_spider": "How many different advisors are listed?", "question": "列出了多少不同的顾问?", "question_cspider": "列出了多少不同的顾问?", "Harold": "BLEU = 73.49, 91.7/81.8/70.0/55.6 (BP=1.000, ratio=1.091, hyp_len=12, ref_len=11)", "question_toks": [ "列", "出", "了", "多", "少", "个", "不", "同", "的", "顾", "问", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT advisor) FROM Student", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "advisor", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "advisor", ")", "from", "student" ], "question_spider": "How many advisors are there?", "question": "有多少顾问?", "question_cspider": "有多少顾问?", "Harold": "BLEU = 0.00, 85.7/66.7/40.0/0.0 (BP=1.000, ratio=1.167, hyp_len=7, ref_len=6)", "question_toks": [ "有", "多", "少", "位", "顾", "问", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT Major FROM Student", "query_toks": [ "SELECT", "DISTINCT", "Major", "FROM", "Student" ], "query_toks_no_value": [ "select", "distinct", "major", "from", "student" ], "question_spider": "Show all majors.", "question": "显示所有专业。", "question_cspider": "显示所有专业。", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=7, ref_len=7)", "question_toks": [ "显", "示", "所", "有", "专", "业", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT Major FROM Student", "query_toks": [ "SELECT", "DISTINCT", "Major", "FROM", "Student" ], "query_toks_no_value": [ "select", "distinct", "major", "from", "student" ], "question_spider": "What are the different majors?", "question": "不同专业有哪些?", "question_cspider": "不同专业有哪些?", "Harold": "BLEU = 0.00, 88.9/50.0/14.3/0.0 (BP=1.000, ratio=1.125, hyp_len=9, ref_len=8)", "question_toks": [ "有", "哪", "些", "不", "同", "的", "专", "业", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT city_code FROM Student", "query_toks": [ "SELECT", "DISTINCT", "city_code", "FROM", "Student" ], "query_toks_no_value": [ "select", "distinct", "city_code", "from", "student" ], "question_spider": "Show all cities where students live.", "question": "显示所有学生居住的城市。", "question_cspider": "显示所有学生居住的城市。", "Harold": "BLEU = 50.42, 100.0/72.7/40.0/22.2 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", "question_toks": [ "显", "示", "学", "生", "居", "住", "的", "所", "有", "城", "市", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT city_code FROM Student", "query_toks": [ "SELECT", "DISTINCT", "city_code", "FROM", "Student" ], "query_toks_no_value": [ "select", "distinct", "city_code", "from", "student" ], "question_spider": "What cities do students live in?", "question": "学生居住在什么城市?", "question_cspider": "学生居住在什么城市?", "Harold": "BLEU = 52.54, 80.0/66.7/50.0/28.6 (BP=1.000, ratio=1.000, hyp_len=10, ref_len=10)", "question_toks": [ "学", "生", "居", "住", "在", "哪", "些", "城", "市", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'", "query_toks": [ "SELECT", "Fname", ",", "Lname", ",", "Age", "FROM", "Student", "WHERE", "Sex", "=", "'F", "'" ], "query_toks_no_value": [ "select", "fname", ",", "lname", ",", "age", "from", "student", "where", "sex", "=", "value" ], "question_spider": "Show first name, last name, age for all female students. Their sex is F.", "question": "显示所有女学生的名、姓氏、年龄。他们的性别是“F”.", "question_cspider": "显示所有女学生的名、姓氏、年龄。他们的性别是“F”.", "Harold": "BLEU = 63.28, 80.0/70.8/60.9/54.5 (BP=0.961, ratio=0.962, hyp_len=25, ref_len=26)", "question_toks": [ "显", "示", "所", "有", "女", "学", "生", "的", "名", "字", ",", "姓", "氏", ",", "年", "龄", "。", "他", "们", "的", "性", "别", "是", "F", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"F\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'", "query_toks": [ "SELECT", "Fname", ",", "Lname", ",", "Age", "FROM", "Student", "WHERE", "Sex", "=", "'F", "'" ], "query_toks_no_value": [ "select", "fname", ",", "lname", ",", "age", "from", "student", "where", "sex", "=", "value" ], "question_spider": "What are the full names and ages for all female students whose sex is F?", "question": "所有性别为“F”的女生全名和年龄是多少?", "question_cspider": "所有性别为“F”的女生全名和年龄是多少?", "Harold": "BLEU = 62.44, 85.0/68.4/55.6/47.1 (BP=1.000, ratio=1.000, hyp_len=20, ref_len=20)", "question_toks": [ "所", "有", "性", "别", "为", "F", "的", "女", "学", "生", "的", "全", "名", "和", "年", "龄", "是", "多", "少", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"F\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE Sex = “M”", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "Sex", "=", "'M", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "sex", "=", "value" ], "question_spider": "Show student ids for all male students.", "question": "显示所有男生的学生ID。", "question_cspider": "显示所有男生的学生ID。", "Harold": "BLEU = 54.52, 83.3/63.6/50.0/33.3 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", "question_toks": [ "显", "示", "所", "有", "男", "学", "生", "的", "学", "生", "证", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"M\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE Sex = “M”", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "Sex", "=", "'M", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "sex", "=", "value" ], "question_spider": "What are the student ids for all male students?", "question": "所有男生的学生ID是什么?", "question_cspider": "所有男生的学生ID是什么?", "Harold": "BLEU = 67.61, 91.7/81.8/70.0/55.6 (BP=0.920, ratio=0.923, hyp_len=12, ref_len=13)", "question_toks": [ "所", "有", "男", "生", "的", "学", "生", "证", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"M\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE age = 18", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", "=", "18" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "age", "=", "value" ], "question_spider": "How many students are age 18?", "question": "18岁的学生有多少?", "question_cspider": "18岁的学生有多少?", "Harold": "BLEU = 0.00, 100.0/62.5/28.6/0.0 (BP=0.895, ratio=0.900, hyp_len=9, ref_len=10)", "question_toks": [ "1", "8", "岁", "有", "多", "少", "学", "生", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], 18, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE age = 18", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", "=", "18" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "age", "=", "value" ], "question_spider": "How many students are 18 years old?", "question": "有多少18岁的学生?", "question_cspider": "有多少18岁的学生?", "Harold": "BLEU = 0.00, 100.0/75.0/42.9/0.0 (BP=0.895, ratio=0.900, hyp_len=9, ref_len=10)", "question_toks": [ "1", "8", "岁", "有", "多", "少", "学", "生", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], 18, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE age > 20", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "age", ">", "20" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "age", ">", "value" ], "question_spider": "Show all student ids who are older than 20.", "question": "显示所有20岁以上的学生ID。", "question_cspider": "显示所有20岁以上的学生ID。", "Harold": "BLEU = 79.65, 92.9/84.6/83.3/81.8 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", "question_toks": [ "显", "示", "所", "有", "2", "0", "岁", "以", "上", "的", "学", "生", "证", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 20, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE age > 20", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "age", ">", "20" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "age", ">", "value" ], "question_spider": "What are the student ids for students over 20 years old?", "question": "20岁以上学生的学生ID是什么?", "question_cspider": "20岁以上学生的学生ID是什么?", "Harold": "BLEU = 74.87, 93.3/85.7/76.9/66.7 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", "question_toks": [ "2", "0", "岁", "以", "上", "学", "生", "的", "学", "生", "证", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 20, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT city_code FROM Student WHERE LName = \"Kim\"", "query_toks": [ "SELECT", "city_code", "FROM", "Student", "WHERE", "LName", "=", "``", "Kim", "''" ], "query_toks_no_value": [ "select", "city_code", "from", "student", "where", "lname", "=", "value" ], "question_spider": "Which city does the student whose last name is \"Kim\" live in?", "question": "姓“Kim”的学生住在哪个城市?", "question_cspider": "姓“Kim”的学生住在哪个城市?", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=14, ref_len=14)", "question_toks": [ "姓", "“", "金", "”", "的", "学", "生", "住", "在", "哪", "个", "城", "市", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Kim\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT city_code FROM Student WHERE LName = \"Kim\"", "query_toks": [ "SELECT", "city_code", "FROM", "Student", "WHERE", "LName", "=", "``", "Kim", "''" ], "query_toks_no_value": [ "select", "city_code", "from", "student", "where", "lname", "=", "value" ], "question_spider": "Give the city that the student whose family name is Kim lives in.", "question": "给出姓“Kim”的学生所住的城市。", "question_cspider": "给出姓“Kim”的学生所住的城市。", "Harold": "BLEU = 0.00, 69.2/33.3/18.2/0.0 (BP=0.857, ratio=0.867, hyp_len=13, ref_len=15)", "question_toks": [ "把", "姓", "金", "的", "学", "生", "住", "进", "这", "个", "城", "市", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Kim\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Advisor FROM Student WHERE StuID = 1004", "query_toks": [ "SELECT", "Advisor", "FROM", "Student", "WHERE", "StuID", "=", "1004" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "where", "stuid", "=", "value" ], "question_spider": "Who is the advisor of student with ID 1004?", "question": "谁是ID1004的学生的导师?", "question_cspider": "谁是ID1004的学生的导师?", "Harold": "BLEU = 72.10, 85.7/76.9/75.0/72.7 (BP=0.931, ratio=0.933, hyp_len=14, ref_len=15)", "question_toks": [ "谁", "是", "I", "D", " ", "1", "0", "0", "4", "的", "学", "生", "顾", "问", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 1004, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Advisor FROM Student WHERE StuID = 1004", "query_toks": [ "SELECT", "Advisor", "FROM", "Student", "WHERE", "StuID", "=", "1004" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "where", "stuid", "=", "value" ], "question_spider": "Who advises student 1004?", "question": "谁指导1004学生?", "question_cspider": "谁指导1004学生?", "Harold": "BLEU = 24.71, 61.5/33.3/18.2/10.0 (BP=1.000, ratio=1.300, hyp_len=13, ref_len=10)", "question_toks": [ "谁", "为", "学", "生", "1", "0", "0", "4", "提", "供", "建", "议", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 1004, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "city_code", "=", "``", "HKG", "''", "OR", "city_code", "=", "``", "CHI", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "city_code", "=", "value", "or", "city_code", "=", "value" ], "question_spider": "How many students live in HKG or CHI?", "question": "“HKG”“或“CHI”有多少学生聚准?", "question_cspider": "“HKG”或“CHI”有多少学生聚准?", "Harold": "BLEU = 23.12, 53.8/33.3/27.3/20.0 (BP=0.735, ratio=0.765, hyp_len=13, ref_len=17)", "question_toks": [ "H", "K", "G", "或", "C", "H", "I", "有", "多", "少", "学", "生", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"HKG\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"CHI\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "city_code", "=", "``", "HKG", "''", "OR", "city_code", "=", "``", "CHI", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "city_code", "=", "value", "or", "city_code", "=", "value" ], "question_spider": "Give the number of students living in either HKG or CHI.", "question": "给出居住在“HKG”或“CHI”学生的人数。", "question_cspider": "给出居住在“HKG”或“CHI”学生的人数。", "Harold": "BLEU = 27.66, 63.2/38.9/23.5/12.5 (BP=0.949, ratio=0.950, hyp_len=19, ref_len=20)", "question_toks": [ "给", "出", "居", "住", "在", "H", "K", "G", "或", "C", "H", "I", "中", "的", "学", "生", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"HKG\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"CHI\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT min(age) , avg(age) , max(age) FROM Student", "query_toks": [ "SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student" ], "question_spider": "Show the minimum, average, and maximum age of all students.", "question": "显示所有学生的最低、平均和最大年龄。", "question_cspider": "显示所有学生的最低、平均和最大年龄。", "Harold": "BLEU = 77.78, 88.9/82.4/75.0/66.7 (BP=1.000, ratio=1.000, hyp_len=18, ref_len=18)", "question_toks": [ "显", "示", "所", "有", "学", "生", "的", "最", "小", ",", "平", "均", "和", "最", "大", "年", "龄", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ], [ 5, [ 0, [ 0, 8, false ], null ] ], [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT min(age) , avg(age) , max(age) FROM Student", "query_toks": [ "SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student" ], "question_spider": "What is the minimum, mean, and maximum age across all students?", "question": "所有学生的最低年龄、平均年龄和最大年龄是多少?", "question_cspider": "所有学生的最低年龄、平均年龄和最大年龄是多少?", "Harold": "BLEU = 57.47, 89.5/77.8/64.7/56.2 (BP=0.810, ratio=0.826, hyp_len=19, ref_len=23)", "question_toks": [ "所", "有", "学", "生", "的", "最", "小", ",", "平", "均", "和", "最", "大", "年", "龄", "是", "多", "少", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ], [ 5, [ 0, [ 0, 8, false ], null ] ], [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)", "query_toks": [ "SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")" ], "question_spider": "What is the last name of the youngest student?", "question": "最小的学生的姓是什么?", "question_cspider": "最小的学生的姓是什么?", "Harold": "BLEU = 49.74, 76.9/58.3/45.5/30.0 (BP=1.000, ratio=1.182, hyp_len=13, ref_len=11)", "question_toks": [ "最", "年", "轻", "的", "学", "生", "的", "姓", "氏", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)", "query_toks": [ "SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")" ], "question_spider": "Provide the last name of the youngest student.", "question": "提供最年轻学生的姓氏。", "question_cspider": "提供最年轻学生的姓氏。", "Harold": "BLEU = 59.54, 90.0/77.8/62.5/42.9 (BP=0.905, ratio=0.909, hyp_len=10, ref_len=11)", "question_toks": [ "提", "供", "最", "小", "学", "生", "的", "姓", "氏", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")" ], "question_spider": "Show the student id of the oldest student.", "question": "显示最老学生的学生ID。", "question_cspider": "显示最老学生的学生ID。", "Harold": "BLEU = 32.56, 64.3/38.5/25.0/18.2 (BP=1.000, ratio=1.167, hyp_len=14, ref_len=12)", "question_toks": [ "显", "示", "年", "龄", "最", "大", "的", "学", "生", "的", "学", "生", "证", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")" ], "question_spider": "What student id corresponds to the oldest student?", "question": "最老的学生的学生ID是什么?", "question_cspider": "最老的学生的学生ID是什么?", "Harold": "BLEU = 0.00, 43.8/20.0/7.1/0.0 (BP=1.000, ratio=1.143, hyp_len=16, ref_len=14)", "question_toks": [ "哪", "个", "学", "生", "证", "对", "应", "于", "年", "龄", "最", "大", "的", "学", "生", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT major , count(*) FROM Student GROUP BY major", "query_toks": [ "SELECT", "major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "major" ], "query_toks_no_value": [ "select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major" ], "question_spider": "Show all majors and corresponding number of students.", "question": "显示所有专业和相应的学生数量。", "question_cspider": "显示所有专业和相应的学生数量。", "Harold": "BLEU = 80.65, 93.3/78.6/76.9/75.0 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", "question_toks": [ "显", "示", "所", "有", "专", "业", "和", "相", "应", "的", "学", "生", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT major , count(*) FROM Student GROUP BY major", "query_toks": [ "SELECT", "major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "major" ], "query_toks_no_value": [ "select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major" ], "question_spider": "How many students are there for each major?", "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", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "major", "FROM", "Student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question_spider": "Which major has most number of students?", "question": "哪个专业的学生最多?", "question_cspider": "哪个专业的学生最多?", "Harold": "BLEU = 63.40, 83.3/72.7/60.0/44.4 (BP=1.000, ratio=1.200, hyp_len=12, ref_len=10)", "question_toks": [ "哪", "个", "专", "业", "的", "学", "生", "人", "数", "最", "多", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "major", "FROM", "Student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question_spider": "What is the largest major?", "question": "最大的专业是什么?", "question_cspider": "最大的专业是什么?", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=9, ref_len=9)", "question_toks": [ "最", "大", "的", "专", "业", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 10, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT age , count(*) FROM Student GROUP BY age", "query_toks": [ "SELECT", "age", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "age" ], "query_toks_no_value": [ "select", "age", ",", "count", "(", "*", ")", "from", "student", "group", "by", "age" ], "question_spider": "Show all ages and corresponding number of students.", "question": "显示所有年龄和对应学生的数量。", "question_cspider": "显示所有年龄和对应学生的数量。", "Harold": "BLEU = 38.26, 81.2/40.0/28.6/23.1 (BP=1.000, ratio=1.067, hyp_len=16, ref_len=15)", "question_toks": [ "显", "示", "所", "有", "年", "龄", "段", "和", "相", "应", "的", "学", "生", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT age , count(*) FROM Student GROUP BY age", "query_toks": [ "SELECT", "age", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "age" ], "query_toks_no_value": [ "select", "age", ",", "count", "(", "*", ")", "from", "student", "group", "by", "age" ], "question_spider": "How old is each student and how many students are each age?", "question": "每个学生年龄有多大?每个年龄段有多少学生?", "question_cspider": "每个学生年龄有多大?每个年龄段有多少学生?", "Harold": "BLEU = 22.21, 64.3/46.2/33.3/18.2 (BP=0.607, ratio=0.667, hyp_len=14, ref_len=21)", "question_toks": [ "每", "个", "学", "生", "几", "岁", ",", "每", "个", "年", "龄", "几", "岁", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 8, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT avg(age) , sex FROM Student GROUP BY sex", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "sex", "FROM", "Student", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex" ], "question_spider": "Show the average age for male and female students.", "question": "显示男女学生的平均年龄。", "question_cspider": "显示男女学生的平均年龄。", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=12, ref_len=12)", "question_toks": [ "显", "示", "男", "女", "学", "生", "的", "平", "均", "年", "龄", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT avg(age) , sex FROM Student GROUP BY sex", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "sex", "FROM", "Student", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex" ], "question_spider": "What are the average ages for male and female students?", "question": "男女学生平均年龄是多少?", "question_cspider": "男女学生平均年龄是多少?", "Harold": "BLEU = 76.12, 92.3/83.3/72.7/60.0 (BP=1.000, ratio=1.083, hyp_len=13, ref_len=12)", "question_toks": [ "男", "女", "学", "生", "的", "平", "均", "年", "龄", "是", "多", "少", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT city_code , count(*) FROM Student GROUP BY city_code", "query_toks": [ "SELECT", "city_code", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "city_code", ",", "count", "(", "*", ")", "from", "student", "group", "by", "city_code" ], "question_spider": "Show all cities and corresponding number of students.", "question": "显示所有城市和相应的学生数量。", "question_cspider": "显示所有城市和相应的学生数量。", "Harold": "BLEU = 80.65, 93.3/78.6/76.9/75.0 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", "question_toks": [ "显", "示", "所", "有", "城", "市", "和", "相", "应", "的", "学", "生", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 12, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT city_code , count(*) FROM Student GROUP BY city_code", "query_toks": [ "SELECT", "city_code", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "city_code", ",", "count", "(", "*", ")", "from", "student", "group", "by", "city_code" ], "question_spider": "How many students live in each city?", "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", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 12, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT advisor , count(*) FROM Student GROUP BY advisor", "query_toks": [ "SELECT", "advisor", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "advisor" ], "query_toks_no_value": [ "select", "advisor", ",", "count", "(", "*", ")", "from", "student", "group", "by", "advisor" ], "question_spider": "Show all advisors and corresponding number of students.", "question": "显示所有的顾问和相应的学生人数。", "question_cspider": "显示所有的顾问和相应的学生人数。", "Harold": "BLEU = 81.97, 100.0/92.9/84.6/75.0 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", "question_toks": [ "显", "示", "所", "有", "顾", "问", "和", "相", "应", "的", "学", "生", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT advisor , count(*) FROM Student GROUP BY advisor", "query_toks": [ "SELECT", "advisor", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "advisor" ], "query_toks_no_value": [ "select", "advisor", ",", "count", "(", "*", ")", "from", "student", "group", "by", "advisor" ], "question_spider": "How many students does each advisor have?", "question": "每位导师有多少学生?", "question_cspider": "每位导师有多少学生?", "Harold": "BLEU = 0.00, 63.6/40.0/22.2/0.0 (BP=1.000, ratio=1.100, hyp_len=11, ref_len=10)", "question_toks": [ "每", "个", "顾", "问", "有", "多", "少", "个", "学", "生", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "advisor", "FROM", "Student", "GROUP", "BY", "advisor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question_spider": "Which advisor has most number of students?", "question": "哪位导师的学生最多?", "question_cspider": "哪位导师的学生最多?", "Harold": "BLEU = 0.00, 58.3/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", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "advisor", "FROM", "Student", "GROUP", "BY", "advisor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question_spider": "Give the advisor with the most students.", "question": "给出最多学生的导师。", "question_cspider": "给出最多学生的导师。", "Harold": "BLEU = 0.00, 77.8/25.0/0.0/0.0 (BP=0.895, ratio=0.900, hyp_len=9, ref_len=10)", "question_toks": [ "给", "顾", "问", "最", "多", "的", "学", "生", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 11, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "where", "allergy", "=", "value" ], "question_spider": "How many students have cat allergies?", "question": "有多少学生患有“Cat”过敏?", "question_cspider": "有多少学生患有“Cat”过敏?", "Harold": "BLEU = 29.47, 100.0/62.5/42.9/16.7 (BP=0.641, ratio=0.692, hyp_len=9, ref_len=13)", "question_toks": [ "多", "少", "学", "生", "有", "猫", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "where", "allergy", "=", "value" ], "question_spider": "How many students are affected by cat allergies?", "question": "有多少学生受到“Cat”过敏的影响?", "question_cspider": "有多少学生受到“Cat”过敏的影响?", "Harold": "BLEU = 69.11, 100.0/84.6/75.0/63.6 (BP=0.867, ratio=0.875, hyp_len=14, ref_len=16)", "question_toks": [ "有", "多", "少", "学", "生", "受", "到", "猫", "过", "敏", "的", "影", "响", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2", "query_toks": [ "SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question_spider": "Show all student IDs who have at least two allergies.", "question": "显示所有至少有两种过敏症的学生。", "question_cspider": "显示所有至少有两种过敏症的学生。", "Harold": "BLEU = 49.86, 93.8/60.0/35.7/30.8 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", "question_toks": [ "显", "示", "至", "少", "有", "两", "种", "过", "敏", "的", "所", "有", "学", "生", "证", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2", "query_toks": [ "SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question_spider": "What are the students ids of students who have more than one allergy?", "question": "有多个过敏反应的的学生的学生ID是什么?", "question_cspider": "有多个过敏反应的的学生的学生ID是什么?", "Harold": "BLEU = 39.55, 68.4/50.0/35.3/25.0 (BP=0.949, ratio=0.950, hyp_len=19, ref_len=20)", "question_toks": [ "患", "有", "一", "种", "以", "上", "过", "敏", "的", "学", "生", "的", "学", "生", "证", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "has_allergy" ], "question_spider": "What are the student ids of students who don't have any allergies?", "question": "没有过敏的学生的学生ID是什么?", "question_cspider": "没有过敏的学生的学生ID是什么?", "Harold": "BLEU = 74.87, 93.3/85.7/76.9/66.7 (BP=0.936, ratio=0.938, hyp_len=15, ref_len=16)", "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": 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": "allergy_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "has_allergy" ], "question_spider": "Which students are unaffected by allergies?", "question": "哪些学生不受过敏影响?", "question_cspider": "哪些学生不受过敏影响?", "Harold": "BLEU = 100.00, 100.0/100.0/100.0/100.0 (BP=1.000, ratio=1.000, hyp_len=11, ref_len=11)", "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": 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": "allergy_1", "query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value" ], "question_spider": "How many female students have milk or egg allergies?", "question": "有多少女学生有“egg”或“milk”过敏?", "question_cspider": "有多少女学生有“egg”或“milk”过敏?", "Harold": "BLEU = 37.54, 93.3/64.3/38.5/25.0 (BP=0.766, ratio=0.789, hyp_len=15, ref_len=19)", "question_toks": [ "有", "多", "少", "女", "学", "生", "对", "牛", "奶", "或", "鸡", "蛋", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Eggs\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value" ], "question_spider": "How many students who are female are allergic to milk or eggs?", "question": "有多少女生对“egg”或“milk”过敏?", "question_cspider": "有多少女生对“egg”或“牛奶\"过敏?", "Harold": "BLEU = 0.00, 80.0/35.7/7.7/0.0 (BP=0.819, ratio=0.833, hyp_len=15, ref_len=18)", "question_toks": [ "有", "几", "位", "女", "学", "生", "对", "牛", "奶", "或", "鸡", "蛋", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Eggs\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value" ], "question_spider": "How many students have a food allergy?", "question": "有多少学生有“food”过敏?", "question_cspider": "有多少学生有“food”过敏?", "Harold": "BLEU = 42.99, 90.9/70.0/44.4/25.0 (BP=0.834, ratio=0.846, hyp_len=11, ref_len=13)", "question_toks": [ "有", "多", "少", "学", "生", "对", "食", "物", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value" ], "question_spider": "How many students are affected by food related allergies?", "question": "有多少学生受“food”过敏的影响?", "question_cspider": "有多少学生受“food”过敏的影响?", "Harold": "BLEU = 53.09, 73.7/61.1/47.1/37.5 (BP=1.000, ratio=1.188, hyp_len=19, ref_len=16)", "question_toks": [ "有", "多", "少", "学", "生", "受", "到", "与", "食", "物", "相", "关", "的", "过", "敏", "的", "影", "响", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Allergy", "FROM", "Has_allergy", "GROUP", "BY", "Allergy", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergy", "from", "has_allergy", "group", "by", "allergy", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question_spider": "Which allergy has most number of students affected?", "question": "哪些过敏反应影响的学生数量最多?", "question_cspider": "哪些过敏反应影响的学生数量最多?", "Harold": "BLEU = 28.12, 81.2/46.7/21.4/7.7 (BP=1.000, ratio=1.000, hyp_len=16, ref_len=16)", "question_toks": [ "人", "数", "最", "多", "的", "学", "生", "受", "到", "哪", "些", "过", "敏", "影", "响", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Allergy", "FROM", "Has_allergy", "GROUP", "BY", "Allergy", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergy", "from", "has_allergy", "group", "by", "allergy", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question_spider": "Which allergy is the most common?", "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", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy", "query_toks": [ "SELECT", "Allergy", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "GROUP", "BY", "Allergy" ], "query_toks_no_value": [ "select", "allergy", ",", "count", "(", "*", ")", "from", "has_allergy", "group", "by", "allergy" ], "question_spider": "Show all allergies with number of students affected.", "question": "显示所有受过敏影响的学生人数。", "question_cspider": "显示所有受过敏影响的学生人数。", "Harold": "BLEU = 35.93, 86.7/50.0/23.1/16.7 (BP=1.000, ratio=1.000, hyp_len=15, ref_len=15)", "question_toks": [ "显", "示", "所", "有", "受", "影", "响", "学", "生", "的", "过", "敏", "情", "况", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy", "query_toks": [ "SELECT", "Allergy", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "GROUP", "BY", "Allergy" ], "query_toks_no_value": [ "select", "allergy", ",", "count", "(", "*", ")", "from", "has_allergy", "group", "by", "allergy" ], "question_spider": "How many students have each different allergy?", "question": "每种过敏反应有多少学生?", "question_cspider": "每种过敏反应有多少学生?", "Harold": "BLEU = 64.32, 100.0/88.9/75.0/57.1 (BP=0.819, ratio=0.833, hyp_len=10, ref_len=12)", "question_toks": [ "每", "种", "过", "敏", "有", "多", "少", "学", "生", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype", "query_toks": [ "SELECT", "T2.allergytype", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "GROUP", "BY", "T2.allergytype" ], "query_toks_no_value": [ "select", "t2", ".", "allergytype", ",", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "group", "by", "t2", ".", "allergytype" ], "question_spider": "Show all allergy type with number of students affected.", "question": "显示所有过敏类型与受影响的学生数量。", "question_cspider": "显示所有过敏类型与受影响的学生数量。", "Harold": "BLEU = 63.75, 84.2/66.7/58.8/50.0 (BP=1.000, ratio=1.056, hyp_len=19, ref_len=18)", "question_toks": [ "显", "示", "所", "有", "过", "敏", "类", "型", "以", "及", "受", "影", "响", "的", "学", "生", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype", "query_toks": [ "SELECT", "T2.allergytype", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "GROUP", "BY", "T2.allergytype" ], "query_toks_no_value": [ "select", "t2", ".", "allergytype", ",", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "group", "by", "t2", ".", "allergytype" ], "question_spider": "How many students are affected by each allergy type?", "question": "每一种过敏类型有多少学生受影响?", "question_cspider": "每一种过敏类型有多少学生受影响?", "Harold": "BLEU = 43.59, 100.0/66.7/45.5/30.0 (BP=0.794, ratio=0.812, hyp_len=13, ref_len=16)", "question_toks": [ "每", "种", "过", "敏", "类", "型", "影", "响", "多", "少", "学", "生", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 2, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", "query_toks": [ "SELECT", "lname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ], "query_toks_no_value": [ "select", "lname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "intersect", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question_spider": "Find the last name and age of the student who has allergy to both milk and cat.", "question": "找出对“milk”和“Cat”过敏的学生的姓氏和年龄。", "question_cspider": "找出对“milk”和“Cat”过敏的学生的姓氏和年龄。", "Harold": "BLEU = 54.78, 94.7/66.7/58.8/56.2 (BP=0.810, ratio=0.826, hyp_len=19, ref_len=23)", "question_toks": [ "查", "找", "对", "牛", "奶", "和", "猫", "过", "敏", "的", "学", "生", "的", "姓", "氏", "和", "年", "龄", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", "query_toks": [ "SELECT", "lname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ], "query_toks_no_value": [ "select", "lname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "intersect", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question_spider": "What are the last names and ages of the students who are allergic to milk and cat?", "question": "对“milk”和“Cat”过敏的学生的姓氏和年龄是多少?", "question_cspider": "对“milk”和“Cat”过敏的学生的姓氏和年龄是多少?", "Harold": "BLEU = 65.21, 100.0/78.9/72.2/70.6 (BP=0.819, ratio=0.833, hyp_len=20, ref_len=24)", "question_toks": [ "对", "牛", "奶", "和", "猫", "过", "敏", "的", "学", "生", "的", "姓", "氏", "和", "年", "龄", "是", "多", "少", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy", "query_toks": [ "SELECT", "T1.Allergy", ",", "T1.AllergyType", "FROM", "Allergy_type", "AS", "T1", "JOIN", "Has_allergy", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "JOIN", "Student", "AS", "T3", "ON", "T3.StuID", "=", "T2.StuID", "WHERE", "T3.Fname", "=", "``", "Lisa", "''", "ORDER", "BY", "T1.Allergy" ], "query_toks_no_value": [ "select", "t1", ".", "allergy", ",", "t1", ".", "allergytype", "from", "allergy_type", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "join", "student", "as", "t3", "on", "t3", ".", "stuid", "=", "t2", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "order", "by", "t1", ".", "allergy" ], "question_spider": "What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies.", "question": "名字是“Lisa”的学生有哪些过敏症和过敏类型?并以过敏反应的名称来分类结果。", "question_cspider": "名字是“Lisa”的学生有哪些过敏症和过敏类型?并以过敏反应的名称来分类结果。", "Harold": "BLEU = 35.45, 67.7/53.3/37.9/25.0 (BP=0.824, ratio=0.838, hyp_len=31, ref_len=37)", "question_toks": [ "姓", "L", "i", "s", "a", "的", "学", "生", "有", "哪", "些", "过", "敏", "反", "应", "及", "其", "类", "型", "?", "并", "按", "过", "敏", "名", "称", "订", "购", "结", "果", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 4, false ], null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Lisa\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 1, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy", "query_toks": [ "SELECT", "T1.Allergy", ",", "T1.AllergyType", "FROM", "Allergy_type", "AS", "T1", "JOIN", "Has_allergy", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "JOIN", "Student", "AS", "T3", "ON", "T3.StuID", "=", "T2.StuID", "WHERE", "T3.Fname", "=", "``", "Lisa", "''", "ORDER", "BY", "T1.Allergy" ], "query_toks_no_value": [ "select", "t1", ".", "allergy", ",", "t1", ".", "allergytype", "from", "allergy_type", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "join", "student", "as", "t3", "on", "t3", ".", "stuid", "=", "t2", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "order", "by", "t1", ".", "allergy" ], "question_spider": "What are the allergies the girl named Lisa has? And what are the types of them? Order the result by allergy names.", "question": "那个叫“Lisa”的女孩有什么过敏反应?它们的类型是什么?并以过敏反应的名称来分类结果。", "question_cspider": "那个叫“Lisa”的女孩有什么过敏反应?它们的类型是什么?并以过敏反应的名称来分类结果。", "Harold": "BLEU = 53.70, 85.7/70.6/57.6/53.1 (BP=0.819, ratio=0.833, hyp_len=35, ref_len=42)", "question_toks": [ "这", "个", "叫", "丽", "莎", "的", "女", "孩", "有", "什", "么", "过", "敏", "反", "应", "?", "它", "们", "的", "类", "型", "是", "什", "么", "?", "按", "过", "敏", "名", "称", "排", "序", "结", "果", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 4, false ], null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Lisa\"", null ] ], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 1, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", "query_toks": [ "SELECT", "fname", ",", "sex", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "sex", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "except", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question_spider": "Find the first name and gender of the student who has allergy to milk but not cat.", "question": "找出对“milk”过敏但不对“Cat”过敏的学生的名字和性别。", "question_cspider": "找出对“milk”过敏但不对“Cat”过敏的学生的名字和性别。", "Harold": "BLEU = 50.84, 95.5/66.7/55.0/47.4 (BP=0.797, ratio=0.815, hyp_len=22, ref_len=27)", "question_toks": [ "查", "找", "对", "牛", "奶", "过", "敏", "但", "对", "猫", "过", "敏", "的", "学", "生", "的", "名", "字", "和", "性", "别", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ] ], "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": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", "query_toks": [ "SELECT", "fname", ",", "sex", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "sex", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "except", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question_spider": "What are the first name and gender of the students who have allergy to milk but can put up with cats?", "question": "对“milk”过敏但能忍受“Cat”的学生的名字和性别是什么?", "question_cspider": "对“milk”过敏但能忍受“Cat”的学生的名字和性别是什么?", "Harold": "BLEU = 56.30, 91.7/69.6/54.5/47.6 (BP=0.882, ratio=0.889, hyp_len=24, ref_len=27)", "question_toks": [ "对", "牛", "奶", "过", "敏", "但", "可", "以", "忍", "受", "猫", "的", "学", "生", "的", "名", "字", "和", "性", "别", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ] ], "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": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "INTERSECT", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "animal", "''", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question_spider": "Find the average age of the students who have allergies with food and animal types.", "question": "找出对“animal”和“food”类型过敏的学生的平均年龄。", "question_cspider": "找出对“animal”和“food”类型过敏的学生的平均年龄。", "Harold": "BLEU = 50.43, 100.0/77.8/58.8/50.0 (BP=0.729, ratio=0.760, hyp_len=19, ref_len=25)", "question_toks": [ "找", "出", "对", "食", "物", "和", "动", "物", "过", "敏", "的", "学", "生", "的", "平", "均", "年", "龄", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "INTERSECT", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "animal", "''", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question_spider": "How old are the students with allergies to food and animal types on average?", "question": "对“animal”和“food”过敏的学生的平均年龄有多大?", "question_cspider": "对“animal”和“food”过敏的学生的平均年龄有多大?", "Harold": "BLEU = 21.43, 77.8/41.2/18.8/13.3 (BP=0.717, ratio=0.750, hyp_len=18, ref_len=24)", "question_toks": [ "对", "食", "物", "和", "动", "物", "类", "型", "过", "敏", "的", "学", "生", "平", "均", "几", "岁", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question_spider": "List the first and last name of the students who do not have any food type allergy.", "question": "列出没有“food”过敏的学生的名字和姓氏。", "question_cspider": "列出没有“food”过敏的学生的名字和姓氏。", "Harold": "BLEU = 65.54, 81.8/71.4/60.0/52.6 (BP=1.000, ratio=1.100, hyp_len=22, ref_len=20)", "question_toks": [ "列", "出", "没", "有", "任", "何", "食", "物", "类", "型", "过", "敏", "的", "学", "生", "的", "名", "字", "和", "姓", "氏", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question_spider": "What is the full name of each student who is not allergic to any type of food.", "question": "对任何类型的“food”都不过敏的每个学生的全名是什么?", "question_cspider": "对任何类型的“food”都不过敏的每个学生的全名是什么?", "Harold": "BLEU = 75.77, 95.8/87.0/77.3/71.4 (BP=0.920, ratio=0.923, hyp_len=24, ref_len=26)", "question_toks": [ "对", "任", "何", "类", "型", "的", "食", "物", "均", "不", "过", "敏", "的", "每", "个", "学", "生", "的", "全", "名", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question_spider": "Find the number of male (sex is “M”) students who have some food type allery.", "question": "找到有“food”类型过敏的男性(性别是“M”)的数量。", "question_cspider": "找到有“food”类型过敏的男性(性别是“M”)的数量。", "Harold": "BLEU = 0.00, 46.4/11.1/0.0/0.0 (BP=1.000, ratio=1.077, hyp_len=28, ref_len=26)", "question_toks": [ "查", "找", "患", "有", "某", "种", "食", "物", "类", "型", "变", "态", "反", "应", "的", "男", "(", "性", "为", "“", " ", "M", "”", ")", "学", "生", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"M\"", null ], "and", [ false, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question_spider": "How many male students (sex is “M”) are allergic to any type of food?", "question": "有多少男学生(性别是“M”)对任何类型的“food”过敏?", "question_cspider": "有多少男学生(性别是“M”)对任何类型的“food”过敏?", "Harold": "BLEU = 42.61, 87.0/59.1/42.9/30.0 (BP=0.840, ratio=0.852, hyp_len=23, ref_len=27)", "question_toks": [ "有", "多", "少", "男", "学", "生", "(", "性", "“", " ", "M", "”", ")", "对", "任", "何", "类", "型", "的", "食", "物", "过", "敏", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"M\"", null ], "and", [ false, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"", "query_toks": [ "SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value" ], "question_spider": "Find the different first names and cities of the students who have allergy to milk or cat.", "question": "找出对“milk”或“Cat”过敏的学生的不同名字和城市。", "question_cspider": "找出对“milk”或“Cat”过敏的学生的不同名字和城市。", "Harold": "BLEU = 58.87, 95.2/70.0/63.2/61.1 (BP=0.827, ratio=0.840, hyp_len=21, ref_len=25)", "question_toks": [ "查", "找", "对", "牛", "奶", "或", "猫", "过", "敏", "的", "学", "生", "的", "不", "同", "名", "字", "和", "城", "市", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"", "query_toks": [ "SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value" ], "question_spider": "What are the distinct first names and cities of the students who have allergy either to milk or to cat?", "question": "那些对“milk”或“Cat”过敏的学生的不同名字和城市是什么?", "question_cspider": "那些对“milk”或“Cat”过敏的学生的不同名字和城市是什么?", "Harold": "BLEU = 29.37, 81.8/42.9/30.0/21.1 (BP=0.761, ratio=0.786, hyp_len=22, ref_len=28)", "question_toks": [ "对", "牛", "奶", "或", "猫", "过", "敏", "的", "学", "生", "有", "哪", "些", "独", "特", "的", "名", "字", "和", "城", "市", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")" ], "question_spider": "Find the number of students who are older than 18 and do not have allergy to either food or animal.", "question": "找出18岁以上、对“food”和“animal”不过敏的学生人数。", "question_cspider": "找出18岁以上、对“food”和“animal”不过敏的学生人数。", "Harold": "BLEU = 55.46, 91.3/72.7/57.1/50.0 (BP=0.840, ratio=0.852, hyp_len=23, ref_len=27)", "question_toks": [ "找", "出", "1", "8", "岁", "以", "上", "且", "对", "食", "物", "或", "动", "物", "不", "过", "敏", "的", "学", "生", "人", "数", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 18, null ], "and", [ true, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")" ], "question_spider": "How many students are over 18 and do not have allergy to food type or animal type?", "question": "有多少学生超过18岁,对“food”类型或“animal”类型不过敏?", "question_cspider": "有多少学生超过18岁,对“food”类型或“animal”类型不过敏?", "Harold": "BLEU = 0.00, 68.0/33.3/8.7/0.0 (BP=0.852, ratio=0.862, hyp_len=25, ref_len=29)", "question_toks": [ "有", "多", "少", "个", "1", "8", "岁", "以", "上", "的", "学", "生", "对", "食", "物", "或", "动", "物", "没", "有", "过", "敏", "反", "应", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 18, null ], "and", [ true, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")", "query_toks": [ "SELECT", "fname", ",", "major", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Soy", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "major", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question_spider": "Find the first name and major of the students who are not allegry to soy.", "question": "找到对“soy”不过敏的学生的名字和专业。", "question_cspider": "找到对“soy”不过敏的学生的名字和专业。", "Harold": "BLEU = 72.93, 100.0/88.2/75.0/66.7 (BP=0.895, ratio=0.900, hyp_len=18, ref_len=20)", "question_toks": [ "找", "到", "对", "大", "豆", "不", "过", "敏", "的", "学", "生", "的", "名", "字", "和", "专", "业", "。" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Soy\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "allergy_1", "query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")", "query_toks": [ "SELECT", "fname", ",", "major", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Soy", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "major", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question_spider": "What are the first name and major of the students who are able to consume soy?", "question": "可以食用“soy”的学生的名字和专业是什么?", "question_cspider": "可以食用“soy”的学生的名字和专业是什么?", "Harold": "BLEU = 65.56, 89.5/77.8/64.7/62.5 (BP=0.900, ratio=0.905, hyp_len=19, ref_len=21)", "question_toks": [ "能", "够", "食", "用", "大", "豆", "的", "学", "生", "的", "名", "字", "和", "专", "业", "是", "什", "么", "?" ], "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Soy\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } ]