diff --git "a/dataset/multispider/with_original_value/dev_ja.json" "b/dataset/multispider/with_original_value/dev_ja.json" new file mode 100644--- /dev/null +++ "b/dataset/multispider/with_original_value/dev_ja.json" @@ -0,0 +1,127743 @@ +[ + { + "db_id": "concert_singer", + "query": "SELECT count(*) FROM singer", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "singer" + ], + "question": "歌手は何人いるの?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT count(*) FROM singer", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "singer" + ], + "question": "歌手の総人数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , country , age FROM singer ORDER BY age DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "country", + ",", + "age", + "FROM", + "singer", + "ORDER", + "BY", + "age", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "country", + ",", + "age", + "from", + "singer", + "order", + "by", + "age", + "desc" + ], + "question": "年齢の降順で歌手の名前、国、年齢を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , country , age FROM singer ORDER BY age DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "country", + ",", + "age", + "FROM", + "singer", + "ORDER", + "BY", + "age", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "country", + ",", + "age", + "from", + "singer", + "order", + "by", + "age", + "desc" + ], + "question": "各歌手の名前、国、年齢は?(年齢の降順で)", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + ",", + "min", + "(", + "age", + ")", + ",", + "max", + "(", + "age", + ")", + "FROM", + "singer", + "WHERE", + "country", + "=", + "'France", + "'" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + ",", + "min", + "(", + "age", + ")", + ",", + "max", + "(", + "age", + ")", + "from", + "singer", + "where", + "country", + "=", + "value" + ], + "question": "フランスの歌手の年齢の平均値、最小値と最大値は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"France\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + ",", + "min", + "(", + "age", + ")", + ",", + "max", + "(", + "age", + ")", + "FROM", + "singer", + "WHERE", + "country", + "=", + "'France", + "'" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + ",", + "min", + "(", + "age", + ")", + ",", + "max", + "(", + "age", + ")", + "from", + "singer", + "where", + "country", + "=", + "value" + ], + "question": "フランスの歌手の年齢の平均値、最小値と最大値は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"France\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", + "query_toks": [ + "SELECT", + "song_name", + ",", + "song_release_year", + "FROM", + "singer", + "ORDER", + "BY", + "age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "song_name", + ",", + "song_release_year", + "from", + "singer", + "order", + "by", + "age", + "limit", + "value" + ], + "question": "最年少の歌手の歌の名前とリリース日を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", + "query_toks": [ + "SELECT", + "song_name", + ",", + "song_release_year", + "FROM", + "singer", + "ORDER", + "BY", + "age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "song_name", + ",", + "song_release_year", + "from", + "singer", + "order", + "by", + "age", + "limit", + "value" + ], + "question": "最年少の歌手の歌の名前とリリース日は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT DISTINCT country FROM singer WHERE age > 20", + "query_toks": [ + "SELECT", + "DISTINCT", + "country", + "FROM", + "singer", + "WHERE", + "age", + ">", + "20" + ], + "query_toks_no_value": [ + "select", + "distinct", + "country", + "from", + "singer", + "where", + "age", + ">", + "value" + ], + "question": "20歳以上の各歌手はどの国の人ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 20, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT DISTINCT country FROM singer WHERE age > 20", + "query_toks": [ + "SELECT", + "DISTINCT", + "country", + "FROM", + "singer", + "WHERE", + "age", + ">", + "20" + ], + "query_toks_no_value": [ + "select", + "distinct", + "country", + "from", + "singer", + "where", + "age", + ">", + "value" + ], + "question": "20歳以上の各歌手はどの国の人ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 20, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT country , count(*) FROM singer GROUP BY country", + "query_toks": [ + "SELECT", + "country", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "country" + ], + "query_toks_no_value": [ + "select", + "country", + ",", + "count", + "(", + "*", + ")", + "from", + "singer", + "group", + "by", + "country" + ], + "question": "全ての国と各国の歌手人数を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT country , count(*) FROM singer GROUP BY country", + "query_toks": [ + "SELECT", + "country", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "country" + ], + "query_toks_no_value": [ + "select", + "country", + ",", + "count", + "(", + "*", + ")", + "from", + "singer", + "group", + "by", + "country" + ], + "question": "各国で歌手は何人いる?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", + "query_toks": [ + "SELECT", + "song_name", + "FROM", + "singer", + "WHERE", + "age", + ">", + "(", + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "singer", + ")" + ], + "query_toks_no_value": [ + "select", + "song_name", + "from", + "singer", + "where", + "age", + ">", + "(", + "select", + "avg", + "(", + "age", + ")", + "from", + "singer", + ")" + ], + "question": "平均年齢以上の歌手の歌を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", + "query_toks": [ + "SELECT", + "song_name", + "FROM", + "singer", + "WHERE", + "age", + ">", + "(", + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "singer", + ")" + ], + "query_toks_no_value": [ + "select", + "song_name", + "from", + "singer", + "where", + "age", + ">", + "(", + "select", + "avg", + "(", + "age", + ")", + "from", + "singer", + ")" + ], + "question": "全ての平均年齢以上の歌手の歌は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", + "query_toks": [ + "SELECT", + "LOCATION", + ",", + "name", + "FROM", + "stadium", + "WHERE", + "capacity", + "BETWEEN", + "5000", + "AND", + "10000" + ], + "query_toks_no_value": [ + "select", + "location", + ",", + "name", + "from", + "stadium", + "where", + "capacity", + "between", + "value", + "and", + "value" + ], + "question": "容量が5000から10000までのスタジアムの名と位置を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 5000, + 10000 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", + "query_toks": [ + "SELECT", + "LOCATION", + ",", + "name", + "FROM", + "stadium", + "WHERE", + "capacity", + "BETWEEN", + "5000", + "AND", + "10000" + ], + "query_toks_no_value": [ + "select", + "location", + ",", + "name", + "from", + "stadium", + "where", + "capacity", + "between", + "value", + "and", + "value" + ], + "question": "容量が5000から10000までのスタジアムの名と位置は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 5000, + 10000 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select max(capacity), average from stadium", + "query_toks": [ + "select", + "max", + "(", + "capacity", + ")", + ",", + "average", + "from", + "stadium" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "capacity", + ")", + ",", + "average", + "from", + "stadium" + ], + "question": "スタジアムの最小容量と平均容量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select avg(capacity) , max(capacity) from stadium", + "query_toks": [ + "select", + "avg", + "(", + "capacity", + ")", + ",", + "max", + "(", + "capacity", + ")", + "from", + "stadium" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "capacity", + ")", + ",", + "max", + "(", + "capacity", + ")", + "from", + "stadium" + ], + "question": "スタジアムの最小容量と平均容量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", + "query_toks": [ + "SELECT", + "name", + ",", + "capacity", + "FROM", + "stadium", + "ORDER", + "BY", + "average", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "capacity", + "from", + "stadium", + "order", + "by", + "average", + "desc", + "limit", + "value" + ], + "question": "平均出席人数が一番多いスタジアムの名と容量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", + "query_toks": [ + "SELECT", + "name", + ",", + "capacity", + "FROM", + "stadium", + "ORDER", + "BY", + "average", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "capacity", + "from", + "stadium", + "order", + "by", + "average", + "desc", + "limit", + "value" + ], + "question": "平均出席人数が一番多いスタジアムの名と容量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "concert", + "WHERE", + "YEAR", + "=", + "2014", + "OR", + "YEAR", + "=", + "2015" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "year", + "=", + "value", + "or", + "year", + "=", + "value" + ], + "question": "2014年あるいは2015年にコンサートが何回ある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2015, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "concert", + "WHERE", + "YEAR", + "=", + "2014", + "OR", + "YEAR", + "=", + "2015" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "year", + "=", + "value", + "or", + "year", + "=", + "value" + ], + "question": "2014年あるいは2015年にコンサートが何回ある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2015, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "GROUP", + "BY", + "T1.stadium_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "group", + "by", + "t1", + ".", + "stadium_id" + ], + "question": "各スタジアムの名前とそこに行うコンサートの数量を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "GROUP", + "BY", + "T1.stadium_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "group", + "by", + "t1", + ".", + "stadium_id" + ], + "question": "各スタジアムにコンサートが何回ある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "T2.capacity", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.year", + ">", + "=", + "2014", + "GROUP", + "BY", + "T2.stadium_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "capacity", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + ">", + "=", + "value", + "group", + "by", + "t2", + ".", + "stadium_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "2014年やその以降にコンサートが一番多いスタジアムの名前と容量を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 5, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014, + null + ] + ], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1", + "query_toks": [ + "select", + "t2.name", + ",", + "t2.capacity", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1.stadium_id", + "=", + "t2.stadium_id", + "where", + "t1.year", + ">", + "2013", + "group", + "by", + "t2.stadium_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "capacity", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + ">", + "value", + "group", + "by", + "t2", + ".", + "stadium_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "2013年以降にコンサートが一番多いスタジアムの名前と容量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2013, + null + ] + ], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "YEAR", + "FROM", + "concert", + "GROUP", + "BY", + "YEAR", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "year", + "from", + "concert", + "group", + "by", + "year", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "コンサートが一番多い年度は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "YEAR", + "FROM", + "concert", + "GROUP", + "BY", + "YEAR", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "year", + "from", + "concert", + "group", + "by", + "year", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "コンサートが一番多い年度は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "stadium", + "WHERE", + "stadium_id", + "NOT", + "IN", + "(", + "SELECT", + "stadium_id", + "FROM", + "concert", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "stadium", + "where", + "stadium_id", + "not", + "in", + "(", + "select", + "stadium_id", + "from", + "concert", + ")" + ], + "question": "コンサートがないスタジアムを示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "stadium", + "WHERE", + "stadium_id", + "NOT", + "IN", + "(", + "SELECT", + "stadium_id", + "FROM", + "concert", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "stadium", + "where", + "stadium_id", + "not", + "in", + "(", + "select", + "stadium_id", + "from", + "concert", + ")" + ], + "question": "コンサートがないスタジアムの名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30", + "query_toks": [ + "SELECT", + "country", + "FROM", + "singer", + "WHERE", + "age", + ">", + "40", + "INTERSECT", + "SELECT", + "country", + "FROM", + "singer", + "WHERE", + "age", + "<", + "30" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "singer", + "where", + "age", + ">", + "value", + "intersect", + "select", + "country", + "from", + "singer", + "where", + "age", + "<", + "value" + ], + "question": "40歳以上と30歳以下の歌手の国籍を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 40, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 30, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", + "query_toks": [ + "SELECT", + "name", + "FROM", + "stadium", + "EXCEPT", + "SELECT", + "T2.name", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.year", + "=", + "2014" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "stadium", + "except", + "select", + "t2", + ".", + "name", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value" + ], + "question": "2014年のコンサートがないスタジアムを示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", + "query_toks": [ + "SELECT", + "name", + "FROM", + "stadium", + "EXCEPT", + "SELECT", + "T2.name", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.year", + "=", + "2014" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "stadium", + "except", + "select", + "t2", + ".", + "name", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value" + ], + "question": "2014年のコンサートがないスタジアムを示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.concert_name , T2.theme , count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id", + "query_toks": [ + "SELECT", + "T2.concert_name", + ",", + "T2.theme", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "concert", + "AS", + "T2", + "ON", + "T1.concert_id", + "=", + "T2.concert_id", + "GROUP", + "BY", + "T2.concert_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "concert_name", + ",", + "t2", + ".", + "theme", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "concert", + "as", + "t2", + "on", + "t1", + ".", + "concert_id", + "=", + "t2", + ".", + "concert_id", + "group", + "by", + "t2", + ".", + "concert_id" + ], + "question": "各コンサートの名前、主題、歌手人数を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select t2.concert_name , t2.theme , count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id", + "query_toks": [ + "select", + "t2.concert_name", + ",", + "t2.theme", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "concert", + "as", + "t2", + "on", + "t1.concert_id", + "=", + "t2.concert_id", + "group", + "by", + "t2.concert_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "concert_name", + ",", + "t2", + ".", + "theme", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "concert", + "as", + "t2", + "on", + "t1", + ".", + "concert_id", + "=", + "t2", + ".", + "concert_id", + "group", + "by", + "t2", + ".", + "concert_id" + ], + "question": "各コンサートの名前、主題、歌手人数を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "singer", + "AS", + "T2", + "ON", + "T1.singer_id", + "=", + "T2.singer_id", + "GROUP", + "BY", + "T2.singer_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "singer", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t2", + ".", + "singer_id" + ], + "question": "各歌手の名前とコンサート数量を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "singer", + "AS", + "T2", + "ON", + "T1.singer_id", + "=", + "T2.singer_id", + "GROUP", + "BY", + "T2.singer_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "singer", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t2", + ".", + "singer_id" + ], + "question": "各歌手の名前とコンサート数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "singer", + "AS", + "T2", + "ON", + "T1.singer_id", + "=", + "T2.singer_id", + "JOIN", + "concert", + "AS", + "T3", + "ON", + "T1.concert_id", + "=", + "T3.concert_id", + "WHERE", + "T3.year", + "=", + "2014" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "singer", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "join", + "concert", + "as", + "t3", + "on", + "t1", + ".", + "concert_id", + "=", + "t3", + ".", + "concert_id", + "where", + "t3", + ".", + "year", + "=", + "value" + ], + "question": "2014年にコンサートがある歌手の名前を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "singer_in_concert", + "AS", + "T1", + "JOIN", + "singer", + "AS", + "T2", + "ON", + "T1.singer_id", + "=", + "T2.singer_id", + "JOIN", + "concert", + "AS", + "T3", + "ON", + "T1.concert_id", + "=", + "T3.concert_id", + "WHERE", + "T3.year", + "=", + "2014" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "singer_in_concert", + "as", + "t1", + "join", + "singer", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "join", + "concert", + "as", + "t3", + "on", + "t1", + ".", + "concert_id", + "=", + "t3", + ".", + "concert_id", + "where", + "t3", + ".", + "year", + "=", + "value" + ], + "question": "2014年にコンサートがある歌手の名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", + "query_toks": [ + "SELECT", + "name", + ",", + "country", + "FROM", + "singer", + "WHERE", + "song_name", + "LIKE", + "'", + "%", + "Hey", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "country", + "from", + "singer", + "where", + "song_name", + "like", + "value" + ], + "question": "「Hey」を含む歌の名に対応する歌手の名前と国籍は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"%Hey%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", + "query_toks": [ + "SELECT", + "name", + ",", + "country", + "FROM", + "singer", + "WHERE", + "song_name", + "LIKE", + "'", + "%", + "Hey", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "country", + "from", + "singer", + "where", + "song_name", + "like", + "value" + ], + "question": "「Hey」を含む歌の名に対応する歌手の名前と国籍は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"%Hey%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "T2.location", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.Year", + "=", + "2014", + "INTERSECT", + "SELECT", + "T2.name", + ",", + "T2.location", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.Year", + "=", + "2015" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "location", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value", + "intersect", + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "location", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value" + ], + "question": "2014年と2015年にコンサートがあるスタジアムの名と位置を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2015, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "T2.location", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.Year", + "=", + "2014", + "INTERSECT", + "SELECT", + "T2.name", + ",", + "T2.location", + "FROM", + "concert", + "AS", + "T1", + "JOIN", + "stadium", + "AS", + "T2", + "ON", + "T1.stadium_id", + "=", + "T2.stadium_id", + "WHERE", + "T1.Year", + "=", + "2015" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "location", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value", + "intersect", + "select", + "t2", + ".", + "name", + ",", + "t2", + ".", + "location", + "from", + "concert", + "as", + "t1", + "join", + "stadium", + "as", + "t2", + "on", + "t1", + ".", + "stadium_id", + "=", + "t2", + ".", + "stadium_id", + "where", + "t1", + ".", + "year", + "=", + "value" + ], + "question": "2014年と2015年にコンサートがあるスタジアムの名と位置は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2014, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + 2015, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "stadium_id", + "=", + "(", + "select", + "stadium_id", + "from", + "stadium", + "order", + "by", + "capacity", + "desc", + "limit", + "1", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "stadium_id", + "=", + "(", + "select", + "stadium_id", + "from", + "stadium", + "order", + "by", + "capacity", + "desc", + "limit", + "value", + ")" + ], + "question": "最高容量のスタジアムのコンサート数量を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "concert_singer", + "query": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "stadium_id", + "=", + "(", + "select", + "stadium_id", + "from", + "stadium", + "order", + "by", + "capacity", + "desc", + "limit", + "1", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "concert", + "where", + "stadium_id", + "=", + "(", + "select", + "stadium_id", + "from", + "stadium", + "order", + "by", + "capacity", + "desc", + "limit", + "value", + ")" + ], + "question": "最高容量のスタジアムのコンサートは何回ある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM pets WHERE weight > 10", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "pets", + "WHERE", + "weight", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "pets", + "where", + "weight", + ">", + "value" + ], + "question": "体重が10を超えるペットの数量を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + 10, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM pets WHERE weight > 10", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "pets", + "WHERE", + "weight", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "pets", + "where", + "weight", + ">", + "value" + ], + "question": "体重が10を超えるペットは何匹いる?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + 10, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", + "query_toks": [ + "SELECT", + "weight", + "FROM", + "pets", + "ORDER", + "BY", + "pet_age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "weight", + "from", + "pets", + "order", + "by", + "pet_age", + "limit", + "value" + ], + "question": "一番若い犬の体重を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", + "query_toks": [ + "SELECT", + "weight", + "FROM", + "pets", + "ORDER", + "BY", + "pet_age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "weight", + "from", + "pets", + "order", + "by", + "pet_age", + "limit", + "value" + ], + "question": "一番若い犬の体重は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT max(weight) , petType FROM pets GROUP BY petType", + "query_toks": [ + "SELECT", + "max", + "(", + "weight", + ")", + ",", + "petType", + "FROM", + "pets", + "GROUP", + "BY", + "petType" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "weight", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question": "各種類の犬の最小体重を探して、その体重と種類を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT max(weight) , petType FROM pets GROUP BY petType", + "query_toks": [ + "SELECT", + "max", + "(", + "weight", + ")", + ",", + "petType", + "FROM", + "pets", + "GROUP", + "BY", + "petType" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "weight", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question": "各種類の犬の最小体重と対応する種類を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "WHERE", + "T1.age", + ">", + "20" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "where", + "t1", + ".", + "age", + ">", + "value" + ], + "question": "20歳以上の学生のペットの数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 20, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "WHERE", + "T1.age", + ">", + "20" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "where", + "t1", + ".", + "age", + ">", + "value" + ], + "question": "20歳以上の学生のペットの数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 20, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T2.petid", + "=", + "T3.petid", + "WHERE", + "T1.sex", + "=", + "'F", + "'", + "AND", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t2", + ".", + "petid", + "=", + "t3", + ".", + "petid", + "where", + "t1", + ".", + "sex", + "=", + "value", + "and", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "女学生のペットの数を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"F\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T2.petid", + "=", + "T3.petid", + "WHERE", + "T1.sex", + "=", + "'F", + "'", + "AND", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t2", + ".", + "petid", + "=", + "t3", + ".", + "petid", + "where", + "t1", + ".", + "sex", + "=", + "value", + "and", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "女学生のペットの数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"F\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(DISTINCT pettype) FROM pets", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "pettype", + ")", + "FROM", + "pets" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "pettype", + ")", + "from", + "pets" + ], + "question": "違うタイプのペットの数を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 12, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(DISTINCT pettype) FROM pets", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "pettype", + ")", + "FROM", + "pets" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "pettype", + ")", + "from", + "pets" + ], + "question": "ここに何種類のペットがいる?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 12, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Fname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + "OR", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "or", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "犬や猫がいる学生の名を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Fname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + "OR", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "or", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "犬や猫がいる学生の名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog'", + "query_toks": [ + "select", + "t1.fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1.stuid", + "=", + "t2.stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3.petid", + "=", + "t2.petid", + "where", + "t3.pettype", + "=", + "\"cat\"", + "intersect", + "select", + "t1.fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1.stuid", + "=", + "t2.stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3.petid", + "=", + "t2.petid", + "where", + "t3.pettype", + "=", + "\"dog\"" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "猫と犬がいる学生の名を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'", + "query_toks": [ + "SELECT", + "T1.Fname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + "INTERSECT", + "SELECT", + "T1.Fname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'dog", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "fname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "猫と犬がいる学生の名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "query_toks": [ + "SELECT", + "major", + ",", + "age", + "FROM", + "student", + "WHERE", + "stuid", + "NOT", + "IN", + "(", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "major", + ",", + "age", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + ")" + ], + "question": "猫がいない学生の専攻と年齢を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "query_toks": [ + "SELECT", + "major", + ",", + "age", + "FROM", + "student", + "WHERE", + "stuid", + "NOT", + "IN", + "(", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "major", + ",", + "age", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + ")" + ], + "question": "猫がいない学生の専攻と年齢は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", + "query_toks": [ + "SELECT", + "stuid", + "FROM", + "student", + "EXCEPT", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'" + ], + "query_toks_no_value": [ + "select", + "stuid", + "from", + "student", + "except", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "猫がいない学生のIDを探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "pets_1", + "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", + "query_toks": [ + "SELECT", + "stuid", + "FROM", + "student", + "EXCEPT", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'" + ], + "query_toks_no_value": [ + "select", + "stuid", + "from", + "student", + "except", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "猫がいない学生のIDは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "query_toks": [ + "SELECT", + "T1.fname", + ",", + "T1.age", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'dog", + "'", + "AND", + "T1.stuid", + "NOT", + "IN", + "(", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "age", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "and", + "t1", + ".", + "stuid", + "not", + "in", + "(", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + ")" + ], + "question": "犬だけを飼う学生の名と年齢を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ], + "and", + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", + "query_toks": [ + "SELECT", + "T1.fname", + ",", + "T1.age", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'dog", + "'", + "AND", + "T1.stuid", + "NOT", + "IN", + "(", + "SELECT", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pettype", + "=", + "'cat", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "age", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + "and", + "t1", + ".", + "stuid", + "not", + "in", + "(", + "select", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pettype", + "=", + "value", + ")" + ], + "question": "犬だけを飼う学生の名と年齢は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"dog\"", + null + ], + "and", + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1", + "query_toks": [ + "SELECT", + "pettype", + ",", + "weight", + "FROM", + "pets", + "ORDER", + "BY", + "pet_age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "pettype", + ",", + "weight", + "from", + "pets", + "order", + "by", + "pet_age", + "limit", + "value" + ], + "question": "一番若いペットのタイプと体重を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1", + "query_toks": [ + "SELECT", + "pettype", + ",", + "weight", + "FROM", + "pets", + "ORDER", + "BY", + "pet_age", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "pettype", + ",", + "weight", + "from", + "pets", + "order", + "by", + "pet_age", + "limit", + "value" + ], + "question": "一番若いペットのタイプと体重は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT petid , weight FROM pets WHERE pet_age > 1", + "query_toks": [ + "SELECT", + "petid", + ",", + "weight", + "FROM", + "pets", + "WHERE", + "pet_age", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "petid", + ",", + "weight", + "from", + "pets", + "where", + "pet_age", + ">", + "value" + ], + "question": "1歳を超えたペットのIDと体重を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT petid , weight FROM pets WHERE pet_age > 1", + "query_toks": [ + "SELECT", + "petid", + ",", + "weight", + "FROM", + "pets", + "WHERE", + "pet_age", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "petid", + ",", + "weight", + "from", + "pets", + "where", + "pet_age", + ">", + "value" + ], + "question": "1歳を超えたペットのIDと体重は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype", + "query_toks": [ + "SELECT", + "avg", + "(", + "pet_age", + ")", + ",", + "max", + "(", + "pet_age", + ")", + ",", + "pettype", + "FROM", + "pets", + "GROUP", + "BY", + "pettype" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "pet_age", + ")", + ",", + "max", + "(", + "pet_age", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question": "各タイプのペットの平均年齢と最低年齢を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype", + "query_toks": [ + "SELECT", + "avg", + "(", + "pet_age", + ")", + ",", + "max", + "(", + "pet_age", + ")", + ",", + "pettype", + "FROM", + "pets", + "GROUP", + "BY", + "pettype" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "pet_age", + ")", + ",", + "max", + "(", + "pet_age", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question": "各タイプのペットの平均年齢と最低年齢は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype", + "query_toks": [ + "SELECT", + "avg", + "(", + "weight", + ")", + ",", + "pettype", + "FROM", + "pets", + "GROUP", + "BY", + "pettype" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "weight", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question": "各タイプのペットの平均体重を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype", + "query_toks": [ + "SELECT", + "avg", + "(", + "weight", + ")", + ",", + "pettype", + "FROM", + "pets", + "GROUP", + "BY", + "pettype" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "weight", + ")", + ",", + "pettype", + "from", + "pets", + "group", + "by", + "pettype" + ], + "question": "各タイプのペットの平均体重は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 12, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.fname", + ",", + "T1.age", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "age", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid" + ], + "question": "ペットを飼う学生の名と年齢を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.fname", + ",", + "T1.age", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "age", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid" + ], + "question": "ペットを飼う学生の名と年齢は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", + "query_toks": [ + "SELECT", + "T2.petid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "WHERE", + "T1.Lname", + "=", + "'Smith", + "'" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "petid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "where", + "t1", + ".", + "lname", + "=", + "value" + ], + "question": "名は「Smith」の学生のペットIDを探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Smith\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", + "query_toks": [ + "SELECT", + "T2.petid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "WHERE", + "T1.Lname", + "=", + "'Smith", + "'" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "petid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "where", + "t1", + ".", + "lname", + "=", + "value" + ], + "question": "名は「Smith」の学生のペットIDは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Smith\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "T1.stuid", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "GROUP", + "BY", + "T1.stuid" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "group", + "by", + "t1", + ".", + "stuid" + ], + "question": "ペットを飼う学生のペット数量と彼らの学生IDを探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "select count(*) , t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t1.stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1.stuid", + "=", + "t2.stuid", + "group", + "by", + "t1.stuid" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t1", + ".", + "stuid", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "group", + "by", + "t1", + ".", + "stuid" + ], + "question": "ペットを飼う学生のペット数量は?彼らの学生IDを示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "T1.fname", + ",", + "T1.sex", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "GROUP", + "BY", + "T1.stuid", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "sex", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "group", + "by", + "t1", + ".", + "stuid", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "ペット一匹以上いる学生の名と性別を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "T1.fname", + ",", + "T1.sex", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "GROUP", + "BY", + "T1.stuid", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fname", + ",", + "t1", + ".", + "sex", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "group", + "by", + "t1", + ".", + "stuid", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "ペット一匹以上いる学生の名と性別は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", + "query_toks": [ + "SELECT", + "T1.lname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pet_age", + "=", + "3", + "AND", + "T3.pettype", + "=", + "'cat", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "lname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pet_age", + "=", + "value", + "and", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "3歳の猫がいる学生の名を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 3, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", + "query_toks": [ + "SELECT", + "T1.lname", + "FROM", + "student", + "AS", + "T1", + "JOIN", + "has_pet", + "AS", + "T2", + "ON", + "T1.stuid", + "=", + "T2.stuid", + "JOIN", + "pets", + "AS", + "T3", + "ON", + "T3.petid", + "=", + "T2.petid", + "WHERE", + "T3.pet_age", + "=", + "3", + "AND", + "T3.pettype", + "=", + "'cat", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "lname", + "from", + "student", + "as", + "t1", + "join", + "has_pet", + "as", + "t2", + "on", + "t1", + ".", + "stuid", + "=", + "t2", + ".", + "stuid", + "join", + "pets", + "as", + "t3", + "on", + "t3", + ".", + "petid", + "=", + "t2", + ".", + "petid", + "where", + "t3", + ".", + "pet_age", + "=", + "value", + "and", + "t3", + ".", + "pettype", + "=", + "value" + ], + "question": "3歳の猫がいる学生の名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 3, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"cat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", + "query_toks": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "stuid", + "from", + "has_pet", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "stuid", + "from", + "has_pet", + ")" + ], + "question": "ペットを飼いていない学生の平均年齢を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "pets_1", + "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", + "query_toks": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "stuid", + "from", + "has_pet", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "student", + "where", + "stuid", + "not", + "in", + "(", + "select", + "stuid", + "from", + "has_pet", + ")" + ], + "question": "ペットを飼いていない学生の平均年齢は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CONTINENTS;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CONTINENTS", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "continents" + ], + "question": "いくつの大陸がありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CONTINENTS;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CONTINENTS", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "continents" + ], + "question": "大陸の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", + "query_toks": [ + "SELECT", + "T1.ContId", + ",", + "T1.Continent", + ",", + "count", + "(", + "*", + ")", + "FROM", + "CONTINENTS", + "AS", + "T1", + "JOIN", + "COUNTRIES", + "AS", + "T2", + "ON", + "T1.ContId", + "=", + "T2.Continent", + "GROUP", + "BY", + "T1.ContId", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "contid", + ",", + "t1", + ".", + "continent", + ",", + "count", + "(", + "*", + ")", + "from", + "continents", + "as", + "t1", + "join", + "countries", + "as", + "t2", + "on", + "t1", + ".", + "contid", + "=", + "t2", + ".", + "continent", + "group", + "by", + "t1", + ".", + "contid" + ], + "question": "各大陸はいくつの国がある?大陸ID、大陸名、国数量を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", + "query_toks": [ + "SELECT", + "T1.ContId", + ",", + "T1.Continent", + ",", + "count", + "(", + "*", + ")", + "FROM", + "CONTINENTS", + "AS", + "T1", + "JOIN", + "COUNTRIES", + "AS", + "T2", + "ON", + "T1.ContId", + "=", + "T2.Continent", + "GROUP", + "BY", + "T1.ContId", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "contid", + ",", + "t1", + ".", + "continent", + ",", + "count", + "(", + "*", + ")", + "from", + "continents", + "as", + "t1", + "join", + "countries", + "as", + "t2", + "on", + "t1", + ".", + "contid", + "=", + "t2", + ".", + "continent", + "group", + "by", + "t1", + ".", + "contid" + ], + "question": "各大陸の大陸ID、大陸名、国数量を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM COUNTRIES;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "COUNTRIES", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "countries" + ], + "question": "表の中にいくつの国がある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM COUNTRIES;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "COUNTRIES", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "countries" + ], + "question": "表の中にいくつの国がある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;", + "query_toks": [ + "SELECT", + "T1.FullName", + ",", + "T1.Id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "GROUP", + "BY", + "T1.Id", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fullname", + ",", + "t1", + ".", + "id", + ",", + "count", + "(", + "*", + ")", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "group", + "by", + "t1", + ".", + "id" + ], + "question": "各メーカーはいくつのモデルを作る?そのメーカーの名前、IDとモデル数を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;", + "query_toks": [ + "SELECT", + "T1.FullName", + ",", + "T1.Id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "GROUP", + "BY", + "T1.Id", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fullname", + ",", + "t1", + ".", + "id", + ",", + "count", + "(", + "*", + ")", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "group", + "by", + "t1", + ".", + "id" + ], + "question": "各メーカーはいくつのモデルを作る?そのメーカーの名前、IDとモデル数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;", + "query_toks": [ + "SELECT", + "T1.Model", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "ORDER", + "BY", + "T2.horsepower", + "ASC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "order", + "by", + "t2", + ".", + "horsepower", + "asc", + "limit", + "value" + ], + "question": "馬力が一番弱い車のモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;", + "query_toks": [ + "SELECT", + "T1.Model", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "ORDER", + "BY", + "T2.horsepower", + "ASC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "order", + "by", + "t2", + ".", + "horsepower", + "asc", + "limit", + "value" + ], + "question": "馬力が一番弱い車のモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)", + "query_toks": [ + "SELECT", + "T1.model", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "WHERE", + "T2.Weight", + "<", + "(", + "SELECT", + "avg", + "(", + "Weight", + ")", + "FROM", + "CARS_DATA", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "weight", + "<", + "(", + "select", + "avg", + "(", + "weight", + ")", + "from", + "cars_data", + ")" + ], + "question": "平均重量以下の車のモデルを探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)", + "query_toks": [ + "SELECT", + "T1.model", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "WHERE", + "T2.Weight", + "<", + "(", + "SELECT", + "avg", + "(", + "Weight", + ")", + "FROM", + "CARS_DATA", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "weight", + "<", + "(", + "select", + "avg", + "(", + "weight", + ")", + "from", + "cars_data", + ")" + ], + "question": "平均重量以下の車のモデルを探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Maker", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "JOIN", + "CAR_NAMES", + "AS", + "T3", + "ON", + "T2.model", + "=", + "T3.model", + "JOIN", + "CARS_DATA", + "AS", + "T4", + "ON", + "T3.MakeId", + "=", + "T4.id", + "WHERE", + "T4.year", + "=", + "'1970", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "maker", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "join", + "car_names", + "as", + "t3", + "on", + "t2", + ".", + "model", + "=", + "t3", + ".", + "model", + "join", + "cars_data", + "as", + "t4", + "on", + "t3", + ".", + "makeid", + "=", + "t4", + ".", + "id", + "where", + "t4", + ".", + "year", + "=", + "value" + ], + "question": "1970年に車を生産したメーカーの名前を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + "\"1970\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Maker", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "JOIN", + "CAR_NAMES", + "AS", + "T3", + "ON", + "T2.model", + "=", + "T3.model", + "JOIN", + "CARS_DATA", + "AS", + "T4", + "ON", + "T3.MakeId", + "=", + "T4.id", + "WHERE", + "T4.year", + "=", + "'1970", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "maker", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "join", + "car_names", + "as", + "t3", + "on", + "t2", + ".", + "model", + "=", + "t3", + ".", + "model", + "join", + "cars_data", + "as", + "t4", + "on", + "t3", + ".", + "makeid", + "=", + "t4", + ".", + "id", + "where", + "t4", + ".", + "year", + "=", + "value" + ], + "question": "1970年に車を生産した違うメーカーの名前を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + "\"1970\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);", + "query_toks": [ + "SELECT", + "T2.Make", + ",", + "T1.Year", + "FROM", + "CARS_DATA", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.MakeId", + "WHERE", + "T1.Year", + "=", + "(", + "SELECT", + "min", + "(", + "YEAR", + ")", + "FROM", + "CARS_DATA", + ")", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "make", + ",", + "t1", + ".", + "year", + "from", + "cars_data", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "makeid", + "where", + "t1", + ".", + "year", + "=", + "(", + "select", + "min", + "(", + "year", + ")", + "from", + "cars_data", + ")" + ], + "question": "最初に生産された車の生産日付を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);", + "query_toks": [ + "SELECT", + "T2.Make", + ",", + "T1.Year", + "FROM", + "CARS_DATA", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.MakeId", + "WHERE", + "T1.Year", + "=", + "(", + "SELECT", + "min", + "(", + "YEAR", + ")", + "FROM", + "CARS_DATA", + ")", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "make", + ",", + "t1", + ".", + "year", + "from", + "cars_data", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "makeid", + "where", + "t1", + ".", + "year", + "=", + "(", + "select", + "min", + "(", + "year", + ")", + "from", + "cars_data", + ")" + ], + "question": "最初に生産された車の生産日付とメーカーは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.model", + "FROM", + "MODEL_LIST", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.model", + "=", + "T2.model", + "JOIN", + "CARS_DATA", + "AS", + "T3", + "ON", + "T2.MakeId", + "=", + "T3.id", + "WHERE", + "T3.year", + ">", + "1980", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "model", + "from", + "model_list", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "model", + "=", + "t2", + ".", + "model", + "join", + "cars_data", + "as", + "t3", + "on", + "t2", + ".", + "makeid", + "=", + "t3", + ".", + "id", + "where", + "t3", + ".", + "year", + ">", + "value" + ], + "question": "1980年以降に生産された車モデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1980, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.model", + "FROM", + "MODEL_LIST", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.model", + "=", + "T2.model", + "JOIN", + "CARS_DATA", + "AS", + "T3", + "ON", + "T2.MakeId", + "=", + "T3.id", + "WHERE", + "T3.year", + ">", + "1980", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "model", + "from", + "model_list", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "model", + "=", + "t2", + ".", + "model", + "join", + "cars_data", + "as", + "t3", + "on", + "t2", + ".", + "makeid", + "=", + "t3", + ".", + "id", + "where", + "t3", + ".", + "year", + ">", + "value" + ], + "question": "1980年以降に生産された車モデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1980, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;", + "query_toks": [ + "SELECT", + "T1.Continent", + ",", + "count", + "(", + "*", + ")", + "FROM", + "CONTINENTS", + "AS", + "T1", + "JOIN", + "COUNTRIES", + "AS", + "T2", + "ON", + "T1.ContId", + "=", + "T2.continent", + "JOIN", + "car_makers", + "AS", + "T3", + "ON", + "T2.CountryId", + "=", + "T3.Country", + "GROUP", + "BY", + "T1.Continent", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "continent", + ",", + "count", + "(", + "*", + ")", + "from", + "continents", + "as", + "t1", + "join", + "countries", + "as", + "t2", + "on", + "t1", + ".", + "contid", + "=", + "t2", + ".", + "continent", + "join", + "car_makers", + "as", + "t3", + "on", + "t2", + ".", + "countryid", + "=", + "t3", + ".", + "country", + "group", + "by", + "t1", + ".", + "continent" + ], + "question": "各大陸のメーカーの数は?その数と大陸名を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;", + "query_toks": [ + "SELECT", + "T1.Continent", + ",", + "count", + "(", + "*", + ")", + "FROM", + "CONTINENTS", + "AS", + "T1", + "JOIN", + "COUNTRIES", + "AS", + "T2", + "ON", + "T1.ContId", + "=", + "T2.continent", + "JOIN", + "car_makers", + "AS", + "T3", + "ON", + "T2.CountryId", + "=", + "T3.Country", + "GROUP", + "BY", + "T1.Continent", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "continent", + ",", + "count", + "(", + "*", + ")", + "from", + "continents", + "as", + "t1", + "join", + "countries", + "as", + "t2", + "on", + "t1", + ".", + "contid", + "=", + "t2", + ".", + "continent", + "join", + "car_makers", + "as", + "t3", + "on", + "t2", + ".", + "countryid", + "=", + "t3", + ".", + "country", + "group", + "by", + "t1", + ".", + "continent" + ], + "question": "各大陸の名前とそこのメーカーの数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "T2.CountryName", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "COUNTRIES", + "AS", + "T2", + "ON", + "T1.Country", + "=", + "T2.CountryId", + "GROUP", + "BY", + "T1.Country", + "ORDER", + "BY", + "Count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "countryname", + "from", + "car_makers", + "as", + "t1", + "join", + "countries", + "as", + "t2", + "on", + "t1", + ".", + "country", + "=", + "t2", + ".", + "countryid", + "group", + "by", + "t1", + ".", + "country", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの国の車メーカーが一番多い?国名を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "T2.CountryName", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "COUNTRIES", + "AS", + "T2", + "ON", + "T1.Country", + "=", + "T2.CountryId", + "GROUP", + "BY", + "T1.Country", + "ORDER", + "BY", + "Count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "countryname", + "from", + "car_makers", + "as", + "t1", + "join", + "countries", + "as", + "t2", + "on", + "t1", + ".", + "country", + "=", + "t2", + ".", + "countryid", + "group", + "by", + "t1", + ".", + "country", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの国の車メーカーが一番多い?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t2.fullname", + "from", + "model_list", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1.maker", + "=", + "t2.id", + "group", + "by", + "t2.id", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t2", + ".", + "fullname", + "from", + "model_list", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "maker", + "=", + "t2", + ".", + "id", + "group", + "by", + "t2", + ".", + "id" + ], + "question": "各メーカーのモデル生産数は?その数とメーカー名だけを示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT Count(*) , T2.FullName , T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id;", + "query_toks": [ + "SELECT", + "Count", + "(", + "*", + ")", + ",", + "T2.FullName", + ",", + "T2.id", + "FROM", + "MODEL_LIST", + "AS", + "T1", + "JOIN", + "CAR_MAKERS", + "AS", + "T2", + "ON", + "T1.Maker", + "=", + "T2.Id", + "GROUP", + "BY", + "T2.id", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t2", + ".", + "fullname", + ",", + "t2", + ".", + "id", + "from", + "model_list", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "maker", + "=", + "t2", + ".", + "id", + "group", + "by", + "t2", + ".", + "id" + ], + "question": "各メーカーのモデル生産数とメーカー名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';", + "query_toks": [ + "SELECT", + "T1.Accelerate", + "FROM", + "CARS_DATA", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.MakeId", + "WHERE", + "T2.Make", + "=", + "'amc", + "hornet", + "sportabout", + "(", + "sw", + ")", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "accelerate", + "from", + "cars_data", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "makeid", + "where", + "t2", + ".", + "make", + "=", + "value" + ], + "question": "swの車の加速度。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"amc hornet sportabout (sw)\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';", + "query_toks": [ + "SELECT", + "T1.Accelerate", + "FROM", + "CARS_DATA", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.MakeId", + "WHERE", + "T2.Make", + "=", + "'amc", + "hornet", + "sportabout", + "(", + "sw", + ")", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "accelerate", + "from", + "cars_data", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "makeid", + "where", + "t2", + ".", + "make", + "=", + "value" + ], + "question": "swの車の加速度。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"amc hornet sportabout (sw)\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "COUNTRIES", + "AS", + "T2", + "ON", + "T1.Country", + "=", + "T2.CountryId", + "WHERE", + "T2.CountryName", + "=", + "'france", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "car_makers", + "as", + "t1", + "join", + "countries", + "as", + "t2", + "on", + "t1", + ".", + "country", + "=", + "t2", + ".", + "countryid", + "where", + "t2", + ".", + "countryname", + "=", + "value" + ], + "question": "フランスのメーカーの数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"france\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "COUNTRIES", + "AS", + "T2", + "ON", + "T1.Country", + "=", + "T2.CountryId", + "WHERE", + "T2.CountryName", + "=", + "'france", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "car_makers", + "as", + "t1", + "join", + "countries", + "as", + "t2", + "on", + "t1", + ".", + "country", + "=", + "t2", + ".", + "countryid", + "where", + "t2", + ".", + "countryname", + "=", + "value" + ], + "question": "フランスのメーカーの数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"france\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "MODEL_LIST", + "AS", + "T1", + "JOIN", + "CAR_MAKERS", + "AS", + "T2", + "ON", + "T1.Maker", + "=", + "T2.Id", + "JOIN", + "COUNTRIES", + "AS", + "T3", + "ON", + "T2.Country", + "=", + "T3.CountryId", + "WHERE", + "T3.CountryName", + "=", + "'usa", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "model_list", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "maker", + "=", + "t2", + ".", + "id", + "join", + "countries", + "as", + "t3", + "on", + "t2", + ".", + "country", + "=", + "t3", + ".", + "countryid", + "where", + "t3", + ".", + "countryname", + "=", + "value" + ], + "question": "英国で生産された車モデルの数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"usa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "MODEL_LIST", + "AS", + "T1", + "JOIN", + "CAR_MAKERS", + "AS", + "T2", + "ON", + "T1.Maker", + "=", + "T2.Id", + "JOIN", + "COUNTRIES", + "AS", + "T3", + "ON", + "T2.Country", + "=", + "T3.CountryId", + "WHERE", + "T3.CountryName", + "=", + "'usa", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "model_list", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "maker", + "=", + "t2", + ".", + "id", + "join", + "countries", + "as", + "t3", + "on", + "t2", + ".", + "country", + "=", + "t3", + ".", + "countryid", + "where", + "t3", + ".", + "countryname", + "=", + "value" + ], + "question": "英国で生産された車モデルの数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"usa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", + "query_toks": [ + "SELECT", + "avg", + "(", + "mpg", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "Cylinders", + "=", + "4", + ";" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "mpg", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "value" + ], + "question": "4シリンダーの車の平均mpgは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", + "query_toks": [ + "SELECT", + "avg", + "(", + "mpg", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "Cylinders", + "=", + "4", + ";" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "mpg", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "value" + ], + "question": "4シリンダーの車の平均mpgは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", + "query_toks": [ + "select", + "min", + "(", + "weight", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "8", + "and", + "year", + "=", + "1974" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "weight", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "value", + "and", + "year", + "=", + "value" + ], + "question": "1974年に生産された一番軽い8シリンダーの車は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 8, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1974, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", + "query_toks": [ + "select", + "min", + "(", + "weight", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "8", + "and", + "year", + "=", + "1974" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "weight", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "value", + "and", + "year", + "=", + "value" + ], + "question": "1974年に生産された一番軽い8シリンダーの車は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 8, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1974, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT Maker , Model FROM MODEL_LIST;", + "query_toks": [ + "SELECT", + "Maker", + ",", + "Model", + "FROM", + "MODEL_LIST", + ";" + ], + "query_toks_no_value": [ + "select", + "maker", + ",", + "model", + "from", + "model_list" + ], + "question": "全てのメーカーとモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT Maker , Model FROM MODEL_LIST;", + "query_toks": [ + "SELECT", + "Maker", + ",", + "Model", + "FROM", + "MODEL_LIST", + ";" + ], + "query_toks_no_value": [ + "select", + "maker", + ",", + "model", + "from", + "model_list" + ], + "question": "全てのメーカーとモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", + "query_toks": [ + "SELECT", + "T1.CountryName", + ",", + "T1.CountryId", + "FROM", + "COUNTRIES", + "AS", + "T1", + "JOIN", + "CAR_MAKERS", + "AS", + "T2", + "ON", + "T1.CountryId", + "=", + "T2.Country", + "GROUP", + "BY", + "T1.CountryId", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "countryname", + ",", + "t1", + ".", + "countryid", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country", + "group", + "by", + "t1", + ".", + "countryid", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "メーカーが一つ以上ある国は?名前とIDを示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", + "query_toks": [ + "SELECT", + "T1.CountryName", + ",", + "T1.CountryId", + "FROM", + "COUNTRIES", + "AS", + "T1", + "JOIN", + "CAR_MAKERS", + "AS", + "T2", + "ON", + "T1.CountryId", + "=", + "T2.Country", + "GROUP", + "BY", + "T1.CountryId", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "countryname", + ",", + "t1", + ".", + "countryid", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country", + "group", + "by", + "t1", + ".", + "countryid", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "メーカーが一つ以上ある国とそのIDは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "horsepower", + ">", + "150", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "horsepower", + ">", + "value" + ], + "question": "馬力が150を超える車の数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + 150, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "horsepower", + ">", + "150", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "horsepower", + ">", + "value" + ], + "question": "馬力が150を超える車の数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + 150, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", + "query_toks": [ + "SELECT", + "avg", + "(", + "Weight", + ")", + ",", + "YEAR", + "FROM", + "CARS_DATA", + "GROUP", + "BY", + "YEAR", + ";" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "weight", + ")", + ",", + "year", + "from", + "cars_data", + "group", + "by", + "year" + ], + "question": "各年の平均重量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", + "query_toks": [ + "SELECT", + "avg", + "(", + "Weight", + ")", + ",", + "YEAR", + "FROM", + "CARS_DATA", + "GROUP", + "BY", + "YEAR", + ";" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "weight", + ")", + ",", + "year", + "from", + "cars_data", + "group", + "by", + "year" + ], + "question": "各年の平均重量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", + "query_toks": [ + "SELECT", + "T1.CountryName", + "FROM", + "COUNTRIES", + "AS", + "T1", + "JOIN", + "CONTINENTS", + "AS", + "T2", + "ON", + "T1.Continent", + "=", + "T2.ContId", + "JOIN", + "CAR_MAKERS", + "AS", + "T3", + "ON", + "T1.CountryId", + "=", + "T3.Country", + "WHERE", + "T2.Continent", + "=", + "'europe", + "'", + "GROUP", + "BY", + "T1.CountryName", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "countryname", + "from", + "countries", + "as", + "t1", + "join", + "continents", + "as", + "t2", + "on", + "t1", + ".", + "continent", + "=", + "t2", + ".", + "contid", + "join", + "car_makers", + "as", + "t3", + "on", + "t1", + ".", + "countryid", + "=", + "t3", + ".", + "country", + "where", + "t2", + ".", + "continent", + "=", + "value", + "group", + "by", + "t1", + ".", + "countryname", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "どのヨーロッパ の国は三つ以上のメーカーがある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"europe\"", + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", + "query_toks": [ + "SELECT", + "T1.CountryName", + "FROM", + "COUNTRIES", + "AS", + "T1", + "JOIN", + "CONTINENTS", + "AS", + "T2", + "ON", + "T1.Continent", + "=", + "T2.ContId", + "JOIN", + "CAR_MAKERS", + "AS", + "T3", + "ON", + "T1.CountryId", + "=", + "T3.Country", + "WHERE", + "T2.Continent", + "=", + "'europe", + "'", + "GROUP", + "BY", + "T1.CountryName", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "countryname", + "from", + "countries", + "as", + "t1", + "join", + "continents", + "as", + "t2", + "on", + "t1", + ".", + "continent", + "=", + "t2", + ".", + "contid", + "join", + "car_makers", + "as", + "t3", + "on", + "t1", + ".", + "countryid", + "=", + "t3", + ".", + "country", + "where", + "t2", + ".", + "continent", + "=", + "value", + "group", + "by", + "t1", + ".", + "countryname", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "どのヨーロッパ の国は三つ以上のメーカーがある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"europe\"", + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "T2.horsepower", + ",", + "T1.Make", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "WHERE", + "T2.cylinders", + "=", + "3", + "ORDER", + "BY", + "T2.horsepower", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "horsepower", + ",", + "t1", + ".", + "make", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "cylinders", + "=", + "value", + "order", + "by", + "t2", + ".", + "horsepower", + "desc", + "limit", + "value" + ], + "question": "3シリンダーの車の最大馬力とメーカーは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 3, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "T2.horsepower", + ",", + "T1.Make", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "WHERE", + "T2.cylinders", + "=", + "3", + "ORDER", + "BY", + "T2.horsepower", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "horsepower", + ",", + "t1", + ".", + "make", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "cylinders", + "=", + "value", + "order", + "by", + "t2", + ".", + "horsepower", + "desc", + "limit", + "value" + ], + "question": "3シリンダーの車の最大馬力とメーカーは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 3, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "T1.Model", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "ORDER", + "BY", + "T2.mpg", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "order", + "by", + "t2", + ".", + "mpg", + "desc", + "limit", + "value" + ], + "question": "mgpが一番高いモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1;", + "query_toks": [ + "select", + "t1.model", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1.makeid", + "=", + "t2.id", + "order", + "by", + "t2.mpg", + "desc", + "limit", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "order", + "by", + "t2", + ".", + "mpg", + "desc", + "limit", + "value" + ], + "question": "mgpが一番高いモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;", + "query_toks": [ + "SELECT", + "avg", + "(", + "horsepower", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "YEAR", + "<", + "1980", + ";" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "horsepower", + ")", + "from", + "cars_data", + "where", + "year", + "<", + "value" + ], + "question": "1980年以前の車の平均馬力は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1980, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select avg(horsepower) from cars_data where year < 1980;", + "query_toks": [ + "select", + "avg", + "(", + "horsepower", + ")", + "from", + "cars_data", + "where", + "year", + "<", + "1980", + ";" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "horsepower", + ")", + "from", + "cars_data", + "where", + "year", + "<", + "value" + ], + "question": "1980年以前の車の平均馬力は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1980, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", + "query_toks": [ + "SELECT", + "avg", + "(", + "T2.edispl", + ")", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "WHERE", + "T1.Model", + "=", + "'volvo", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "t2", + ".", + "edispl", + ")", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "where", + "t1", + ".", + "model", + "=", + "value" + ], + "question": "ボルボの平均edisplは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"volvo\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", + "query_toks": [ + "SELECT", + "avg", + "(", + "T2.edispl", + ")", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "WHERE", + "T1.Model", + "=", + "'volvo", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "t2", + ".", + "edispl", + ")", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "where", + "t1", + ".", + "model", + "=", + "value" + ], + "question": "ボルボの平均edisplは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"volvo\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", + "query_toks": [ + "SELECT", + "max", + "(", + "Accelerate", + ")", + ",", + "Cylinders", + "FROM", + "CARS_DATA", + "GROUP", + "BY", + "Cylinders", + ";" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "accelerate", + ")", + ",", + "cylinders", + "from", + "cars_data", + "group", + "by", + "cylinders" + ], + "question": "違うシリンダーの車の最大加速度は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", + "query_toks": [ + "SELECT", + "max", + "(", + "Accelerate", + ")", + ",", + "Cylinders", + "FROM", + "CARS_DATA", + "GROUP", + "BY", + "Cylinders", + ";" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "accelerate", + ")", + ",", + "cylinders", + "from", + "cars_data", + "group", + "by", + "cylinders" + ], + "question": "違うシリンダーの車の最大加速度は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "Model", + "FROM", + "CAR_NAMES", + "GROUP", + "BY", + "Model", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "model", + "from", + "car_names", + "group", + "by", + "model", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どのモデルのバージョンが一番多い?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 14, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "Model", + "FROM", + "CAR_NAMES", + "GROUP", + "BY", + "Model", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "model", + "from", + "car_names", + "group", + "by", + "model", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どのモデルのバージョンが一番多い?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 14, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "Cylinders", + ">", + "4", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "cylinders", + ">", + "value" + ], + "question": "シリンダーが四つ以上の車の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "Cylinders", + ">", + "4", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "cylinders", + ">", + "value" + ], + "question": "シリンダーが四つ以上の車の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "YEAR", + "=", + "1980", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "year", + "=", + "value" + ], + "question": "1980年生産された車の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1980, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "YEAR", + "=", + "1980", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "year", + "=", + "value" + ], + "question": "1980年生産された車の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1980, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "WHERE", + "T1.FullName", + "=", + "'American", + "Motor", + "Company", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "where", + "t1", + ".", + "fullname", + "=", + "value" + ], + "question": "アメリカモーター会社に生産された車の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"American Motor Company\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "WHERE", + "T1.FullName", + "=", + "'American", + "Motor", + "Company", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "where", + "t1", + ".", + "fullname", + "=", + "value" + ], + "question": "アメリカモーター会社に生産された車の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"American Motor Company\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", + "query_toks": [ + "SELECT", + "T1.FullName", + ",", + "T1.Id", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "GROUP", + "BY", + "T1.Id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fullname", + ",", + "t1", + ".", + "id", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "group", + "by", + "t1", + ".", + "id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "どのメーカーは三つ以上の車モデルを作った?名前とIDを示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", + "query_toks": [ + "SELECT", + "T1.FullName", + ",", + "T1.Id", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "GROUP", + "BY", + "T1.Id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "fullname", + ",", + "t1", + ".", + "id", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "group", + "by", + "t1", + ".", + "id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "三つ以上の車モデルを作ったメーカーの名前とIDは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.Model", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Model", + "=", + "T2.Model", + "JOIN", + "CAR_MAKERS", + "AS", + "T3", + "ON", + "T2.Maker", + "=", + "T3.Id", + "JOIN", + "CARS_DATA", + "AS", + "T4", + "ON", + "T1.MakeId", + "=", + "T4.Id", + "WHERE", + "T3.FullName", + "=", + "'General", + "Motors", + "'", + "OR", + "T4.weight", + ">", + "3500", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "model", + "=", + "t2", + ".", + "model", + "join", + "car_makers", + "as", + "t3", + "on", + "t2", + ".", + "maker", + "=", + "t3", + ".", + "id", + "join", + "cars_data", + "as", + "t4", + "on", + "t1", + ".", + "makeid", + "=", + "t4", + ".", + "id", + "where", + "t3", + ".", + "fullname", + "=", + "value", + "or", + "t4", + ".", + "weight", + ">", + "value" + ], + "question": "ヂェナァラァモーターに生産されたあるいは重量が3500を超えるモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 12, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"General Motors\"", + null + ], + "or", + [ + false, + 3, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + 3500, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.Model", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Model", + "=", + "T2.Model", + "JOIN", + "CAR_MAKERS", + "AS", + "T3", + "ON", + "T2.Maker", + "=", + "T3.Id", + "JOIN", + "CARS_DATA", + "AS", + "T4", + "ON", + "T1.MakeId", + "=", + "T4.Id", + "WHERE", + "T3.FullName", + "=", + "'General", + "Motors", + "'", + "OR", + "T4.weight", + ">", + "3500", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "model", + "=", + "t2", + ".", + "model", + "join", + "car_makers", + "as", + "t3", + "on", + "t2", + ".", + "maker", + "=", + "t3", + ".", + "id", + "join", + "cars_data", + "as", + "t4", + "on", + "t1", + ".", + "makeid", + "=", + "t4", + ".", + "id", + "where", + "t3", + ".", + "fullname", + "=", + "value", + "or", + "t4", + ".", + "weight", + ">", + "value" + ], + "question": "ヂェナァラァモーターに生産されたあるいは重量が3500を超えるモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 12, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"General Motors\"", + null + ], + "or", + [ + false, + 3, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + 3500, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select distinct year from cars_data where weight between 3000 and 4000;", + "query_toks": [ + "select", + "distinct", + "year", + "from", + "cars_data", + "where", + "weight", + "between", + "3000", + "and", + "4000", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "year", + "from", + "cars_data", + "where", + "weight", + "between", + "value", + "and", + "value" + ], + "question": "重量が3000以上4000以下の車モデルの生産年度は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + 3000, + 4000 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select distinct year from cars_data where weight between 3000 and 4000;", + "query_toks": [ + "select", + "distinct", + "year", + "from", + "cars_data", + "where", + "weight", + "between", + "3000", + "and", + "4000", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "year", + "from", + "cars_data", + "where", + "weight", + "between", + "value", + "and", + "value" + ], + "question": "重量が3000以上4000以下の車モデルの生産年度は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + 3000, + 4000 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "T1.horsepower", + "FROM", + "CARS_DATA", + "AS", + "T1", + "ORDER", + "BY", + "T1.accelerate", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "horsepower", + "from", + "cars_data", + "as", + "t1", + "order", + "by", + "t1", + ".", + "accelerate", + "desc", + "limit", + "value" + ], + "question": "加速度が一番高い車の馬力は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "T1.horsepower", + "FROM", + "CARS_DATA", + "AS", + "T1", + "ORDER", + "BY", + "T1.accelerate", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "horsepower", + "from", + "cars_data", + "as", + "t1", + "order", + "by", + "t1", + ".", + "accelerate", + "desc", + "limit", + "value" + ], + "question": "加速度が一番高い車の馬力は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", + "query_toks": [ + "SELECT", + "T1.cylinders", + "FROM", + "CARS_DATA", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.MakeId", + "WHERE", + "T2.Model", + "=", + "'volvo", + "'", + "ORDER", + "BY", + "T1.accelerate", + "ASC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "cylinders", + "from", + "cars_data", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "makeid", + "where", + "t2", + ".", + "model", + "=", + "value", + "order", + "by", + "t1", + ".", + "accelerate", + "asc", + "limit", + "value" + ], + "question": "ボルボのモデルに対して、最低加速度の車はいくつのシリンダーがある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"volvo\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", + "query_toks": [ + "SELECT", + "T1.cylinders", + "FROM", + "CARS_DATA", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.MakeId", + "WHERE", + "T2.Model", + "=", + "'volvo", + "'", + "ORDER", + "BY", + "T1.accelerate", + "ASC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "cylinders", + "from", + "cars_data", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "makeid", + "where", + "t2", + ".", + "model", + "=", + "value", + "order", + "by", + "t1", + ".", + "accelerate", + "asc", + "limit", + "value" + ], + "question": "ボルボのモデルに対して、最低加速度の車はいくつのシリンダーがある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"volvo\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "Accelerate", + ">", + "(", + "SELECT", + "Accelerate", + "FROM", + "CARS_DATA", + "ORDER", + "BY", + "Horsepower", + "DESC", + "LIMIT", + "1", + ")", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "accelerate", + ">", + "(", + "select", + "accelerate", + "from", + "cars_data", + "order", + "by", + "horsepower", + "desc", + "limit", + "value", + ")" + ], + "question": "加速度が最高馬力のより高い車はいくつある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "Accelerate", + ">", + "(", + "SELECT", + "Accelerate", + "FROM", + "CARS_DATA", + "ORDER", + "BY", + "Horsepower", + "DESC", + "LIMIT", + "1", + ")", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "accelerate", + ">", + "(", + "select", + "accelerate", + "from", + "cars_data", + "order", + "by", + "horsepower", + "desc", + "limit", + "value", + ")" + ], + "question": "加速度が最高馬力のより高い車はいくつある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 22, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1.countryid", + "=", + "t2.country", + "group", + "by", + "t1.countryid", + "having", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country", + "group", + "by", + "t1", + ".", + "countryid", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "2つのメーカーがある国の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1.countryid", + "=", + "t2.country", + "group", + "by", + "t1.countryid", + "having", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country", + "group", + "by", + "t1", + ".", + "countryid", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "2つのメーカーがある国の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "Cylinders", + ">", + "6", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "cylinders", + ">", + "value" + ], + "question": "シリンダー数が6を超える車の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 6, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "CARS_DATA", + "WHERE", + "Cylinders", + ">", + "6", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cars_data", + "where", + "cylinders", + ">", + "value" + ], + "question": "シリンダー数が6を超える車の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 6, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "T1.Model", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "WHERE", + "T2.Cylinders", + "=", + "4", + "ORDER", + "BY", + "T2.horsepower", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "cylinders", + "=", + "value", + "order", + "by", + "t2", + ".", + "horsepower", + "desc", + "limit", + "value" + ], + "question": "最大馬力の4シリンダーの車モデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "T1.Model", + "FROM", + "CAR_NAMES", + "AS", + "T1", + "JOIN", + "CARS_DATA", + "AS", + "T2", + "ON", + "T1.MakeId", + "=", + "T2.Id", + "WHERE", + "T2.Cylinders", + "=", + "4", + "ORDER", + "BY", + "T2.horsepower", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "model", + "from", + "car_names", + "as", + "t1", + "join", + "cars_data", + "as", + "t2", + "on", + "t1", + ".", + "makeid", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "cylinders", + "=", + "value", + "order", + "by", + "t2", + ".", + "horsepower", + "desc", + "limit", + "value" + ], + "question": "最大馬力の4シリンダーの車モデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3;", + "query_toks": [ + "SELECT", + "T2.MakeId", + ",", + "T2.Make", + "FROM", + "CARS_DATA", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.MakeId", + "WHERE", + "T1.Horsepower", + ">", + "(", + "SELECT", + "min", + "(", + "Horsepower", + ")", + "FROM", + "CARS_DATA", + ")", + "AND", + "T1.Cylinders", + "<", + "=", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "makeid", + ",", + "t2", + ".", + "make", + "from", + "cars_data", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "makeid", + "where", + "t1", + ".", + "horsepower", + ">", + "(", + "select", + "min", + "(", + "horsepower", + ")", + "from", + "cars_data", + ")", + "and", + "t1", + ".", + "cylinders", + "<", + "=", + "value" + ], + "question": "最低馬力以外で、シリンダーが3つ以下の車は?メーカーIDと名を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ], + "and", + [ + false, + 6, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 3, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders < 4;", + "query_toks": [ + "select", + "t2.makeid", + ",", + "t2.make", + "from", + "cars_data", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1.id", + "=", + "t2.makeid", + "where", + "t1.horsepower", + ">", + "(", + "select", + "min", + "(", + "horsepower", + ")", + "from", + "cars_data", + ")", + "and", + "t1.cylinders", + "<", + "4", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "makeid", + ",", + "t2", + ".", + "make", + "from", + "cars_data", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "makeid", + "where", + "t1", + ".", + "horsepower", + ">", + "(", + "select", + "min", + "(", + "horsepower", + ")", + "from", + "cars_data", + ")", + "and", + "t1", + ".", + "cylinders", + "<", + "value" + ], + "question": "最低馬力以外で、シリンダーが3つ以下ののメーカーのIDと名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ], + "and", + [ + false, + 4, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", + "query_toks": [ + "select", + "max", + "(", + "mpg", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "8", + "or", + "year", + "<", + "1980" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "mpg", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "value", + "or", + "year", + "<", + "value" + ], + "question": "8シリンダーのあるいは1980年以前生産されたくるまの最高mpgは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 8, + null + ], + "or", + [ + false, + 4, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1980, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", + "query_toks": [ + "select", + "max", + "(", + "mpg", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "8", + "or", + "year", + "<", + "1980" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "mpg", + ")", + "from", + "cars_data", + "where", + "cylinders", + "=", + "value", + "or", + "year", + "<", + "value" + ], + "question": "8シリンダーのあるいは1980年以前生産されたくるまの最高mpgは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + 8, + null + ], + "or", + [ + false, + 4, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + 1980, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.model", + "FROM", + "MODEL_LIST", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.Model", + "=", + "T2.Model", + "JOIN", + "CARS_DATA", + "AS", + "T3", + "ON", + "T2.MakeId", + "=", + "T3.Id", + "JOIN", + "CAR_MAKERS", + "AS", + "T4", + "ON", + "T1.Maker", + "=", + "T4.Id", + "WHERE", + "T3.weight", + "<", + "3500", + "AND", + "T4.FullName", + "!", + "=", + "'Ford", + "Motor", + "Company", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "model", + "from", + "model_list", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "model", + "=", + "t2", + ".", + "model", + "join", + "cars_data", + "as", + "t3", + "on", + "t2", + ".", + "makeid", + "=", + "t3", + ".", + "id", + "join", + "car_makers", + "as", + "t4", + "on", + "t1", + ".", + "maker", + "=", + "t4", + ".", + "id", + "where", + "t3", + ".", + "weight", + "<", + "value", + "and", + "t4", + ".", + "fullname", + "!", + "=", + "value" + ], + "question": "重量が3500未満のフォードモーター会社以外に生産されたモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + 3500, + null + ], + "and", + [ + false, + 7, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"Ford Motor Company\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.model", + "FROM", + "MODEL_LIST", + "AS", + "T1", + "JOIN", + "CAR_NAMES", + "AS", + "T2", + "ON", + "T1.Model", + "=", + "T2.Model", + "JOIN", + "CARS_DATA", + "AS", + "T3", + "ON", + "T2.MakeId", + "=", + "T3.Id", + "JOIN", + "CAR_MAKERS", + "AS", + "T4", + "ON", + "T1.Maker", + "=", + "T4.Id", + "WHERE", + "T3.weight", + "<", + "3500", + "AND", + "T4.FullName", + "!", + "=", + "'Ford", + "Motor", + "Company", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "model", + "from", + "model_list", + "as", + "t1", + "join", + "car_names", + "as", + "t2", + "on", + "t1", + ".", + "model", + "=", + "t2", + ".", + "model", + "join", + "cars_data", + "as", + "t3", + "on", + "t2", + ".", + "makeid", + "=", + "t3", + ".", + "id", + "join", + "car_makers", + "as", + "t4", + "on", + "t1", + ".", + "maker", + "=", + "t4", + ".", + "id", + "where", + "t3", + ".", + "weight", + "<", + "value", + "and", + "t4", + ".", + "fullname", + "!", + "=", + "value" + ], + "question": "重量が3500未満のフォードモーター会社以外に生産されたモデルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 16, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + 3500, + null + ], + "and", + [ + false, + 7, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"Ford Motor Company\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", + "query_toks": [ + "SELECT", + "CountryName", + "FROM", + "countries", + "EXCEPT", + "SELECT", + "T1.CountryName", + "FROM", + "countries", + "AS", + "T1", + "JOIN", + "CAR_MAKERS", + "AS", + "T2", + "ON", + "T1.countryId", + "=", + "T2.Country", + ";" + ], + "query_toks_no_value": [ + "select", + "countryname", + "from", + "countries", + "except", + "select", + "t1", + ".", + "countryname", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country" + ], + "question": "メーカーがない国は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "car_1", + "query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", + "query_toks": [ + "SELECT", + "CountryName", + "FROM", + "countries", + "EXCEPT", + "SELECT", + "T1.CountryName", + "FROM", + "countries", + "AS", + "T1", + "JOIN", + "CAR_MAKERS", + "AS", + "T2", + "ON", + "T1.countryId", + "=", + "T2.Country", + ";" + ], + "query_toks_no_value": [ + "select", + "countryname", + "from", + "countries", + "except", + "select", + "t1", + ".", + "countryname", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country" + ], + "question": "メーカーがない国は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "car_1", + "query": "select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3;", + "query_toks": [ + "select", + "t1.id", + ",", + "t1.maker", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1.id", + "=", + "t2.maker", + "group", + "by", + "t1.id", + "having", + "count", + "(", + "*", + ")", + ">=", + "2", + "intersect", + "select", + "t1.id", + ",", + "t1.maker", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1.id", + "=", + "t2.maker", + "join", + "car_names", + "as", + "t3", + "on", + "t2.model", + "=", + "t3.model", + "group", + "by", + "t1.id", + "having", + "count", + "(", + "*", + ")", + ">", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "id", + ",", + "t1", + ".", + "maker", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "group", + "by", + "t1", + ".", + "id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "id", + ",", + "t1", + ".", + "maker", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "join", + "car_names", + "as", + "t3", + "on", + "t2", + ".", + "model", + "=", + "t3", + ".", + "model", + "group", + "by", + "t1", + ".", + "id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "4つ以上のモデルを生産したメーカーは?IDと名を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING count(*) > 3;", + "query_toks": [ + "SELECT", + "T1.Id", + ",", + "T1.Maker", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "GROUP", + "BY", + "T1.Id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2", + "INTERSECT", + "SELECT", + "T1.Id", + ",", + "T1.Maker", + "FROM", + "CAR_MAKERS", + "AS", + "T1", + "JOIN", + "MODEL_LIST", + "AS", + "T2", + "ON", + "T1.Id", + "=", + "T2.Maker", + "JOIN", + "CAR_NAMES", + "AS", + "T3", + "ON", + "T2.model", + "=", + "T3.model", + "GROUP", + "BY", + "T1.Id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "id", + ",", + "t1", + ".", + "maker", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "group", + "by", + "t1", + ".", + "id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "id", + ",", + "t1", + ".", + "maker", + "from", + "car_makers", + "as", + "t1", + "join", + "model_list", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "maker", + "join", + "car_names", + "as", + "t3", + "on", + "t2", + ".", + "model", + "=", + "t3", + ".", + "model", + "group", + "by", + "t1", + ".", + "id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "4つ以上のモデルを生産したメーカーは?IDと名を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "car_1", + "query": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';", + "query_toks": [ + "SELECT", + "T1.countryId", + ",", + "T1.CountryName", + "FROM", + "Countries", + "AS", + "T1", + "JOIN", + "CAR_MAKERS", + "AS", + "T2", + "ON", + "T1.CountryId", + "=", + "T2.Country", + "GROUP", + "BY", + "T1.countryId", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "3", + "UNION", + "SELECT", + "T1.countryId", + ",", + "T1.CountryName", + "FROM", + "Countries", + "AS", + "T1", + "JOIN", + "CAR_MAKERS", + "AS", + "T2", + "ON", + "T1.CountryId", + "=", + "T2.Country", + "JOIN", + "MODEL_LIST", + "AS", + "T3", + "ON", + "T2.Id", + "=", + "T3.Maker", + "WHERE", + "T3.Model", + "=", + "'fiat", + "'", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "countryid", + ",", + "t1", + ".", + "countryname", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country", + "group", + "by", + "t1", + ".", + "countryid", + "having", + "count", + "(", + "*", + ")", + ">", + "value", + "union", + "select", + "t1", + ".", + "countryid", + ",", + "t1", + ".", + "countryname", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country", + "join", + "model_list", + "as", + "t3", + "on", + "t2", + ".", + "id", + "=", + "t3", + ".", + "maker", + "where", + "t3", + ".", + "model", + "=", + "value" + ], + "question": "4つ以上のモデルを生産したあるいは「fiat」というモデルを生産したメーカーは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"fiat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "car_1", + "query": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat';", + "query_toks": [ + "select", + "t1.countryid", + ",", + "t1.countryname", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1.countryid", + "=", + "t2.country", + "group", + "by", + "t1.countryid", + "having", + "count", + "(", + "*", + ")", + ">", + "3", + "union", + "select", + "t1.countryid", + ",", + "t1.countryname", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1.countryid", + "=", + "t2.country", + "join", + "model_list", + "as", + "t3", + "on", + "t2.id", + "=", + "t3.maker", + "where", + "t3.model", + "=", + "\"fiat\"", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "countryid", + ",", + "t1", + ".", + "countryname", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country", + "group", + "by", + "t1", + ".", + "countryid", + "having", + "count", + "(", + "*", + ")", + ">", + "value", + "union", + "select", + "t1", + ".", + "countryid", + ",", + "t1", + ".", + "countryname", + "from", + "countries", + "as", + "t1", + "join", + "car_makers", + "as", + "t2", + "on", + "t1", + ".", + "countryid", + "=", + "t2", + ".", + "country", + "join", + "model_list", + "as", + "t3", + "on", + "t2", + ".", + "id", + "=", + "t3", + ".", + "maker", + "where", + "t3", + ".", + "model", + "=", + "value" + ], + "question": "4つ以上のモデルを生産したあるいは「fiat」というモデルを生産したメーカーは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 11, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"fiat\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "Country", + "FROM", + "AIRLINES", + "WHERE", + "Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "airlines", + "where", + "airline", + "=", + "value" + ], + "question": "「JetBlue Airways」の国は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "Country", + "FROM", + "AIRLINES", + "WHERE", + "Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "airlines", + "where", + "airline", + "=", + "value" + ], + "question": "「JetBlue Airways」の国は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "Abbreviation", + "FROM", + "AIRLINES", + "WHERE", + "Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "abbreviation", + "from", + "airlines", + "where", + "airline", + "=", + "value" + ], + "question": "「JetBlue Airways」の略称は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "Abbreviation", + "FROM", + "AIRLINES", + "WHERE", + "Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "abbreviation", + "from", + "airlines", + "where", + "airline", + "=", + "value" + ], + "question": "「JetBlue Airways」の略称は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", + "query_toks": [ + "SELECT", + "Airline", + ",", + "Abbreviation", + "FROM", + "AIRLINES", + "WHERE", + "Country", + "=", + "``", + "USA", + "''" + ], + "query_toks_no_value": [ + "select", + "airline", + ",", + "abbreviation", + "from", + "airlines", + "where", + "country", + "=", + "value" + ], + "question": "アメリカの便名とその略称は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\"", + "query_toks": [ + "SELECT", + "Airline", + ",", + "Abbreviation", + "FROM", + "AIRLINES", + "WHERE", + "Country", + "=", + "``", + "USA", + "''" + ], + "query_toks_no_value": [ + "select", + "airline", + ",", + "abbreviation", + "from", + "airlines", + "where", + "country", + "=", + "value" + ], + "question": "アメリカの便名とその略称は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", + "query_toks": [ + "SELECT", + "AirportCode", + ",", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "city", + "=", + "``", + "Anthony", + "''" + ], + "query_toks_no_value": [ + "select", + "airportcode", + ",", + "airportname", + "from", + "airports", + "where", + "city", + "=", + "value" + ], + "question": "アンソニーの空港番号と空港名を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Anthony\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\"", + "query_toks": [ + "SELECT", + "AirportCode", + ",", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "city", + "=", + "``", + "Anthony", + "''" + ], + "query_toks_no_value": [ + "select", + "airportcode", + ",", + "airportname", + "from", + "airports", + "where", + "city", + "=", + "value" + ], + "question": "アンソニーの空港番号と空港名を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Anthony\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines" + ], + "question": "航空会社の数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines" + ], + "question": "航空会社の総数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRPORTS", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRPORTS" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airports" + ], + "question": "空港の数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRPORTS", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRPORTS" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airports" + ], + "question": "空港の数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights" + ], + "question": "飛行便の数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights" + ], + "question": "飛行便の数量は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", + "query_toks": [ + "SELECT", + "Airline", + "FROM", + "AIRLINES", + "WHERE", + "Abbreviation", + "=", + "``", + "UAL", + "''" + ], + "query_toks_no_value": [ + "select", + "airline", + "from", + "airlines", + "where", + "abbreviation", + "=", + "value" + ], + "question": "どの便名の略称は「UAL」?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + "\"UAL\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"", + "query_toks": [ + "SELECT", + "Airline", + "FROM", + "AIRLINES", + "WHERE", + "Abbreviation", + "=", + "``", + "UAL", + "''" + ], + "query_toks_no_value": [ + "select", + "airline", + "from", + "airlines", + "where", + "abbreviation", + "=", + "value" + ], + "question": "どの便名の略称は「UAL」?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + "\"UAL\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "WHERE", + "Country", + "=", + "``", + "USA", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "where", + "country", + "=", + "value" + ], + "question": "アメリカからの航空会社はいくつある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "WHERE", + "Country", + "=", + "``", + "USA", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "where", + "country", + "=", + "value" + ], + "question": "アメリカからの航空会社はいくつある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", + "query_toks": [ + "SELECT", + "City", + ",", + "Country", + "FROM", + "AIRPORTS", + "WHERE", + "AirportName", + "=", + "``", + "Alton", + "''" + ], + "query_toks_no_value": [ + "select", + "city", + ",", + "country", + "from", + "airports", + "where", + "airportname", + "=", + "value" + ], + "question": "アートン空港はどの国と市にある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"Alton\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\"", + "query_toks": [ + "SELECT", + "City", + ",", + "Country", + "FROM", + "AIRPORTS", + "WHERE", + "AirportName", + "=", + "``", + "Alton", + "''" + ], + "query_toks_no_value": [ + "select", + "city", + ",", + "country", + "from", + "airports", + "where", + "airportname", + "=", + "value" + ], + "question": "アートン空港はどの国と市にある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"Alton\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "AirportCode", + "=", + "``", + "AKO", + "''" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "airportcode", + "=", + "value" + ], + "question": "番号が「AKO」の空港の名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + "\"AKO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "AirportCode", + "=", + "``", + "AKO", + "''" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "airportcode", + "=", + "value" + ], + "question": "番号が「AKO」の空港の名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + "\"AKO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "city", + "=", + "value" + ], + "question": "アバディーンの空港の名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "AIRPORTS", + "WHERE", + "City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "city", + "=", + "value" + ], + "question": "アバディーンの空港の名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "WHERE", + "SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "where", + "sourceairport", + "=", + "value" + ], + "question": "APGから出発する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "WHERE", + "SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "where", + "sourceairport", + "=", + "value" + ], + "question": "APGから出発する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "WHERE", + "DestAirport", + "=", + "``", + "ATO", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "where", + "destairport", + "=", + "value" + ], + "question": "到着はATOの飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"ATO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "WHERE", + "DestAirport", + "=", + "``", + "ATO", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "where", + "destairport", + "=", + "value" + ], + "question": "到着はATOの飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"ATO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.SourceAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "sourceairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンか��出発する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.SourceAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "sourceairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンから出発する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "到着はアバディーンの飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "到着はアバディーンの飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "JOIN", + "AIRPORTS", + "AS", + "T3", + "ON", + "T1.SourceAirport", + "=", + "T3.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Ashley", + "''", + "AND", + "T3.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "join", + "airports", + "as", + "t3", + "on", + "t1", + ".", + "sourceairport", + "=", + "t3", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value", + "and", + "t3", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンからアシュリーまでの飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Ashley\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "JOIN", + "AIRPORTS", + "AS", + "T3", + "ON", + "T1.SourceAirport", + "=", + "T3.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Ashley", + "''", + "AND", + "T3.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "join", + "airports", + "as", + "t3", + "on", + "t1", + ".", + "sourceairport", + "=", + "t3", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value", + "and", + "t3", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンからアシュリーまでの飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Ashley\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRLINES", + "AS", + "T2", + "ON", + "T1.Airline", + "=", + "T2.uid", + "WHERE", + "T2.Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airlines", + "as", + "t2", + "on", + "t1", + ".", + "airline", + "=", + "t2", + ".", + "uid", + "where", + "t2", + ".", + "airline", + "=", + "value" + ], + "question": "JetBlue Airwaysの飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRLINES", + "AS", + "T2", + "ON", + "T1.Airline", + "=", + "T2.uid", + "WHERE", + "T2.Airline", + "=", + "``", + "JetBlue", + "Airways", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airlines", + "as", + "t2", + "on", + "t1", + ".", + "airline", + "=", + "t2", + ".", + "uid", + "where", + "t2", + ".", + "airline", + "=", + "value" + ], + "question": "JetBlue Airwaysの飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"JetBlue Airways\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T2.Airline", + "=", + "T1.uid", + "WHERE", + "T1.Airline", + "=", + "``", + "United", + "Airlines", + "''", + "AND", + "T2.DestAirport", + "=", + "``", + "ASY", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t2", + ".", + "airline", + "=", + "t1", + ".", + "uid", + "where", + "t1", + ".", + "airline", + "=", + "value", + "and", + "t2", + ".", + "destairport", + "=", + "value" + ], + "question": "ASY空港に行くユナイテッド航空の飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"ASY\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T2.Airline", + "=", + "T1.uid", + "WHERE", + "T1.Airline", + "=", + "``", + "United", + "Airlines", + "''", + "AND", + "T2.DestAirport", + "=", + "``", + "ASY", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t2", + ".", + "airline", + "=", + "t1", + ".", + "uid", + "where", + "t1", + ".", + "airline", + "=", + "value", + "and", + "t2", + ".", + "destairport", + "=", + "value" + ], + "question": "ASY空港に行くユナイテッド航空の飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"ASY\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T2.Airline", + "=", + "T1.uid", + "WHERE", + "T1.Airline", + "=", + "``", + "United", + "Airlines", + "''", + "AND", + "T2.SourceAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t2", + ".", + "airline", + "=", + "t1", + ".", + "uid", + "where", + "t1", + ".", + "airline", + "=", + "value", + "and", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question": "AHD空港から出発するユナイテッド航空の飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T2.Airline", + "=", + "T1.uid", + "WHERE", + "T1.Airline", + "=", + "``", + "United", + "Airlines", + "''", + "AND", + "T2.SourceAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t2", + ".", + "airline", + "=", + "t1", + ".", + "uid", + "where", + "t1", + ".", + "airline", + "=", + "value", + "and", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question": "AHD空港から出発するユナイテッド航空の飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "JOIN", + "AIRLINES", + "AS", + "T3", + "ON", + "T3.uid", + "=", + "T1.Airline", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''", + "AND", + "T3.Airline", + "=", + "``", + "United", + "Airlines", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "join", + "airlines", + "as", + "t3", + "on", + "t3", + ".", + "uid", + "=", + "t1", + ".", + "airline", + "where", + "t2", + ".", + "city", + "=", + "value", + "and", + "t3", + ".", + "airline", + "=", + "value" + ], + "question": "アバディーンに行くユナイテッド航空の飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "JOIN", + "AIRLINES", + "AS", + "T3", + "ON", + "T3.uid", + "=", + "T1.Airline", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''", + "AND", + "T3.Airline", + "=", + "``", + "United", + "Airlines", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "join", + "airlines", + "as", + "t3", + "on", + "t3", + ".", + "uid", + "=", + "t1", + ".", + "airline", + "where", + "t2", + ".", + "city", + "=", + "value", + "and", + "t3", + ".", + "airline", + "=", + "value" + ], + "question": "アバディーンに行くユナイテッド航空の飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.City", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "GROUP", + "BY", + "T1.City", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "city", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "group", + "by", + "t1", + ".", + "city", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "到着飛行便が一番多い都市は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.City", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "GROUP", + "BY", + "T1.City", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "city", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "group", + "by", + "t1", + ".", + "city", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "帰着空港が一番多い都市は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.City", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.City", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "city", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "city", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "出発飛行便が一番多い都市は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 12, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.City", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.City", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "city", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "city", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "出発空港が一番多い都市は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 12, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.AirportCode", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "OR", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.AirportCode", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airportcode", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "or", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "airportcode", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "飛行便が一番多い空港の番号は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.AirportCode", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "OR", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.AirportCode", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airportcode", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "or", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "airportcode", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "飛行便が一番多い空港の番号は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1", + "query_toks": [ + "SELECT", + "T1.AirportCode", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "OR", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.AirportCode", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airportcode", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "or", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "airportcode", + "order", + "by", + "count", + "(", + "*", + ")", + "limit", + "value" + ], + "question": "飛行便が一番少ない空港の番号は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1", + "query_toks": [ + "SELECT", + "T1.AirportCode", + "FROM", + "AIRPORTS", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.AirportCode", + "=", + "T2.DestAirport", + "OR", + "T1.AirportCode", + "=", + "T2.SourceAirport", + "GROUP", + "BY", + "T1.AirportCode", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airportcode", + "from", + "airports", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "destairport", + "or", + "t1", + ".", + "airportcode", + "=", + "t2", + ".", + "sourceairport", + "group", + "by", + "t1", + ".", + "airportcode", + "order", + "by", + "count", + "(", + "*", + ")", + "limit", + "value" + ], + "question": "飛行便が一番少ない空港の番号は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの航空会社の飛行便は一番多い?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの航空会社の飛行便は一番多い?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Abbreviation", + ",", + "T1.Country", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "abbreviation", + ",", + "t1", + ".", + "country", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "order", + "by", + "count", + "(", + "*", + ")", + "limit", + "value" + ], + "question": "飛行便が��番少ない航空会社の国と略称を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Abbreviation", + ",", + "T1.Country", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "abbreviation", + ",", + "t1", + ".", + "country", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "order", + "by", + "count", + "(", + "*", + ")", + "limit", + "value" + ], + "question": "飛行便が一番少ない航空会社の国と略称は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question": "AHD空港から出発する飛行便がある航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question": "AHD空港から出発する飛行便がある航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.DestAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "destairport", + "=", + "value" + ], + "question": "AHD空港まで到着の飛行便がある航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.DestAirport", + "=", + "``", + "AHD", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "destairport", + "=", + "value" + ], + "question": "AHD空港まで到着の飛行便がある航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"AHD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "APG", + "''", + "INTERSECT", + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "CVO", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question": "APG空港とCVO空港から出発する飛行便がある航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"CVO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "APG", + "''", + "INTERSECT", + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "CVO", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question": "APG空港とCVO空港から出発する飛行便がある航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"CVO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "CVO", + "''", + "EXCEPT", + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value", + "except", + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question": "CVO空港から出発する飛行便があり、APG空港からのがない航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"CVO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "CVO", + "''", + "EXCEPT", + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "WHERE", + "T2.SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value", + "except", + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "where", + "t2", + ".", + "sourceairport", + "=", + "value" + ], + "question": "CVO空港から出発する飛行便があり、APG空港からのがない航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"CVO\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "10以上の飛行便がある航空会社を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 10, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "10以上の飛行便がある航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 10, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "200" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "having", + "count", + "(", + "*", + ")", + "<", + "value" + ], + "question": "飛行便数が200未満の航空会社を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 200, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", + "query_toks": [ + "SELECT", + "T1.Airline", + "FROM", + "AIRLINES", + "AS", + "T1", + "JOIN", + "FLIGHTS", + "AS", + "T2", + "ON", + "T1.uid", + "=", + "T2.Airline", + "GROUP", + "BY", + "T1.Airline", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "200" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "airline", + "from", + "airlines", + "as", + "t1", + "join", + "flights", + "as", + "t2", + "on", + "t1", + ".", + "uid", + "=", + "t2", + ".", + "airline", + "group", + "by", + "t1", + ".", + "airline", + "having", + "count", + "(", + "*", + ")", + "<", + "value" + ], + "question": "飛行便数が200未満の航空会社は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 200, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRLINES", + "AS", + "T2", + "ON", + "T2.uid", + "=", + "T1.Airline", + "WHERE", + "T2.Airline", + "=", + "``", + "United", + "Airlines", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airlines", + "as", + "t2", + "on", + "t2", + ".", + "uid", + "=", + "t1", + ".", + "airline", + "where", + "t2", + ".", + "airline", + "=", + "value" + ], + "question": "ユナイテッド航空の飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRLINES", + "AS", + "T2", + "ON", + "T2.uid", + "=", + "T1.Airline", + "WHERE", + "T2.Airline", + "=", + "``", + "United", + "Airlines", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airlines", + "as", + "t2", + "on", + "t2", + ".", + "uid", + "=", + "t1", + ".", + "airline", + "where", + "t2", + ".", + "airline", + "=", + "value" + ], + "question": "ユナイテッド航空の飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"United Airlines\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "FlightNo", + "FROM", + "FLIGHTS", + "WHERE", + "SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "flightno", + "from", + "flights", + "where", + "sourceairport", + "=", + "value" + ], + "question": "APG空港から出発する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"", + "query_toks": [ + "SELECT", + "FlightNo", + "FROM", + "FLIGHTS", + "WHERE", + "SourceAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "flightno", + "from", + "flights", + "where", + "sourceairport", + "=", + "value" + ], + "question": "APG空港から出発する飛行便の数を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", + "query_toks": [ + "SELECT", + "FlightNo", + "FROM", + "FLIGHTS", + "WHERE", + "DestAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "flightno", + "from", + "flights", + "where", + "destairport", + "=", + "value" + ], + "question": "APG空港まで到着する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"", + "query_toks": [ + "SELECT", + "FlightNo", + "FROM", + "FLIGHTS", + "WHERE", + "DestAirport", + "=", + "``", + "APG", + "''" + ], + "query_toks_no_value": [ + "select", + "flightno", + "from", + "flights", + "where", + "destairport", + "=", + "value" + ], + "question": "APG空港まで到着する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"APG\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.SourceAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "sourceairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンから出発する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.SourceAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "sourceairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンから出発する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンまで到着する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"", + "query_toks": [ + "SELECT", + "T1.FlightNo", + "FROM", + "FLIGHTS", + "AS", + "T1", + "JOIN", + "AIRPORTS", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.City", + "=", + "``", + "Aberdeen", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "flightno", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンまで到着する飛行便の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Flights", + "AS", + "T1", + "JOIN", + "Airports", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.city", + "=", + "``", + "Aberdeen", + "''", + "OR", + "T2.city", + "=", + "``", + "Abilene", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value", + "or", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンやアビリーンに到着する飛行便の数を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Abilene\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Flights", + "AS", + "T1", + "JOIN", + "Airports", + "AS", + "T2", + "ON", + "T1.DestAirport", + "=", + "T2.AirportCode", + "WHERE", + "T2.city", + "=", + "``", + "Aberdeen", + "''", + "OR", + "T2.city", + "=", + "``", + "Abilene", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "flights", + "as", + "t1", + "join", + "airports", + "as", + "t2", + "on", + "t1", + ".", + "destairport", + "=", + "t2", + ".", + "airportcode", + "where", + "t2", + ".", + "city", + "=", + "value", + "or", + "t2", + ".", + "city", + "=", + "value" + ], + "question": "アバディーンやアビリーンに到着する飛行便はいくつある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + [ + 0, + 6, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Aberdeen\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Abilene\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "Airports", + "WHERE", + "AirportCode", + "NOT", + "IN", + "(", + "SELECT", + "SourceAirport", + "FROM", + "Flights", + "UNION", + "SELECT", + "DestAirport", + "FROM", + "Flights", + ")" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "airportcode", + "not", + "in", + "(", + "select", + "sourceairport", + "from", + "flights", + "union", + "select", + "destairport", + "from", + "flights", + ")" + ], + "question": "出発も到着もなし空港の名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "flight_2", + "query": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", + "query_toks": [ + "SELECT", + "AirportName", + "FROM", + "Airports", + "WHERE", + "AirportCode", + "NOT", + "IN", + "(", + "SELECT", + "SourceAirport", + "FROM", + "Flights", + "UNION", + "SELECT", + "DestAirport", + "FROM", + "Flights", + ")" + ], + "query_toks_no_value": [ + "select", + "airportname", + "from", + "airports", + "where", + "airportcode", + "not", + "in", + "(", + "select", + "sourceairport", + "from", + "flights", + "union", + "select", + "destairport", + "from", + "flights", + ")" + ], + "question": "出発も到着もなし空港は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) FROM employee", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "employee" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "employee" + ], + "question": "従業員何人いる?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) FROM employee", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "employee" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "employee" + ], + "question": "従業員何人いる?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM employee ORDER BY age", + "query_toks": [ + "SELECT", + "name", + "FROM", + "employee", + "ORDER", + "BY", + "age" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "employee", + "order", + "by", + "age" + ], + "question": "年齢の昇順で従業員の名前を並べる。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM employee ORDER BY age", + "query_toks": [ + "SELECT", + "name", + "FROM", + "employee", + "ORDER", + "BY", + "age" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "employee", + "order", + "by", + "age" + ], + "question": "年齢の昇順で従業員の名前を並べる。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , city FROM employee GROUP BY city", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "city", + "FROM", + "employee", + "GROUP", + "BY", + "city" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "city", + "from", + "employee", + "group", + "by", + "city" + ], + "question": "各市からの従業員の人数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , city FROM employee GROUP BY city", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "city", + "FROM", + "employee", + "GROUP", + "BY", + "city" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "city", + "from", + "employee", + "group", + "by", + "city" + ], + "question": "各市からの従業員の人数を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "city", + "FROM", + "employee", + "WHERE", + "age", + "<", + "30", + "GROUP", + "BY", + "city", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "city", + "from", + "employee", + "where", + "age", + "<", + "value", + "group", + "by", + "city", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "2人以上の30歳未満の従業員がいる都市は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 30, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "city", + "FROM", + "employee", + "WHERE", + "age", + "<", + "30", + "GROUP", + "BY", + "city", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "city", + "from", + "employee", + "where", + "age", + "<", + "value", + "group", + "by", + "city", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "2人以上の30歳未満の従業員がいる都市を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 30, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "LOCATION", + "FROM", + "shop", + "GROUP", + "BY", + "LOCATION" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "location", + "from", + "shop", + "group", + "by", + "location" + ], + "question": "各地の商店の数を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "LOCATION", + "FROM", + "shop", + "GROUP", + "BY", + "LOCATION" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "location", + "from", + "shop", + "group", + "by", + "location" + ], + "question": "各地の商店の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", + "query_toks": [ + "SELECT", + "manager_name", + ",", + "district", + "FROM", + "shop", + "ORDER", + "BY", + "number_products", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "manager_name", + ",", + "district", + "from", + "shop", + "order", + "by", + "number_products", + "desc", + "limit", + "value" + ], + "question": "製品数が一番多い店の地区とその経営者の名前を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", + "query_toks": [ + "SELECT", + "manager_name", + ",", + "district", + "FROM", + "shop", + "ORDER", + "BY", + "number_products", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "manager_name", + ",", + "district", + "from", + "shop", + "order", + "by", + "number_products", + "desc", + "limit", + "value" + ], + "question": "製品数が一番多い店の地区とその経営者の名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT min(Number_products) , max(Number_products) FROM shop", + "query_toks": [ + "SELECT", + "min", + "(", + "Number_products", + ")", + ",", + "max", + "(", + "Number_products", + ")", + "FROM", + "shop" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "number_products", + ")", + ",", + "max", + "(", + "number_products", + ")", + "from", + "shop" + ], + "question": "全ての店の中で、製品数の最大値と最小値を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT min(Number_products) , max(Number_products) FROM shop", + "query_toks": [ + "SELECT", + "min", + "(", + "Number_products", + ")", + ",", + "max", + "(", + "Number_products", + ")", + "FROM", + "shop" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "number_products", + ")", + ",", + "max", + "(", + "number_products", + ")", + "from", + "shop" + ], + "question": "全ての店の中で、製品数の最大値と最小値は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "LOCATION", + ",", + "district", + "FROM", + "shop", + "ORDER", + "BY", + "number_products", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "location", + ",", + "district", + "from", + "shop", + "order", + "by", + "number_products", + "desc" + ], + "question": "製品数の降順で全ての店の名前、位置、地区を並べる。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "LOCATION", + ",", + "district", + "FROM", + "shop", + "ORDER", + "BY", + "number_products", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "location", + ",", + "district", + "from", + "shop", + "order", + "by", + "number_products", + "desc" + ], + "question": "製品数の降順で全ての店の名前、位置、地区を並べる。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "shop", + "WHERE", + "number_products", + ">", + "(", + "SELECT", + "avg", + "(", + "number_products", + ")", + "FROM", + "shop", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "shop", + "where", + "number_products", + ">", + "(", + "select", + "avg", + "(", + "number_products", + ")", + "from", + "shop", + ")" + ], + "question": "製品数は平均製品数より多い店の名前を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "shop", + "WHERE", + "number_products", + ">", + "(", + "SELECT", + "avg", + "(", + "number_products", + ")", + "FROM", + "shop", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "shop", + "where", + "number_products", + ">", + "(", + "select", + "avg", + "(", + "number_products", + ")", + "from", + "shop", + ")" + ], + "question": "製品数は平均製品数より多い店は?その名前を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "employee", + "AS", + "t1", + "JOIN", + "evaluation", + "AS", + "t2", + "ON", + "t1.Employee_ID", + "=", + "t2.Employee_ID", + "GROUP", + "BY", + "t2.Employee_ID", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "employee", + "as", + "t1", + "join", + "evaluation", + "as", + "t2", + "on", + "t1", + ".", + "employee_id", + "=", + "t2", + ".", + "employee_id", + "group", + "by", + "t2", + ".", + "employee_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "評価で最も受賞した従業員の名前を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "employee", + "AS", + "t1", + "JOIN", + "evaluation", + "AS", + "t2", + "ON", + "t1.Employee_ID", + "=", + "t2.Employee_ID", + "GROUP", + "BY", + "t2.Employee_ID", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "employee", + "as", + "t1", + "join", + "evaluation", + "as", + "t2", + "on", + "t1", + ".", + "employee_id", + "=", + "t2", + ".", + "employee_id", + "group", + "by", + "t2", + ".", + "employee_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの従業員が評価で最も多い賞を受賞したか。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "employee", + "AS", + "t1", + "JOIN", + "evaluation", + "AS", + "t2", + "ON", + "t1.Employee_ID", + "=", + "t2.Employee_ID", + "ORDER", + "BY", + "t2.bonus", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "employee", + "as", + "t1", + "join", + "evaluation", + "as", + "t2", + "on", + "t1", + ".", + "employee_id", + "=", + "t2", + ".", + "employee_id", + "order", + "by", + "t2", + ".", + "bonus", + "desc", + "limit", + "value" + ], + "question": "一回だけのボーナスが一番高い従業員の名前を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "employee", + "AS", + "t1", + "JOIN", + "evaluation", + "AS", + "t2", + "ON", + "t1.Employee_ID", + "=", + "t2.Employee_ID", + "ORDER", + "BY", + "t2.bonus", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "employee", + "as", + "t1", + "join", + "evaluation", + "as", + "t2", + "on", + "t1", + ".", + "employee_id", + "=", + "t2", + ".", + "employee_id", + "order", + "by", + "t2", + ".", + "bonus", + "desc", + "limit", + "value" + ], + "question": "一回だけのボーナスが一番高い従業員は?彼の名前を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 15, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "employee", + "WHERE", + "Employee_ID", + "NOT", + "IN", + "(", + "SELECT", + "Employee_ID", + "FROM", + "evaluation", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "employee", + "where", + "employee_id", + "not", + "in", + "(", + "select", + "employee_id", + "from", + "evaluation", + ")" + ], + "question": "評価で賞を獲得したことがない従業員の名前を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "employee", + "WHERE", + "Employee_ID", + "NOT", + "IN", + "(", + "SELECT", + "Employee_ID", + "FROM", + "evaluation", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "employee", + "where", + "employee_id", + "not", + "in", + "(", + "select", + "employee_id", + "from", + "evaluation", + ")" + ], + "question": "評価で賞を獲得したことがない従業員の名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t2.name", + "FROM", + "hiring", + "AS", + "t1", + "JOIN", + "shop", + "AS", + "t2", + "ON", + "t1.shop_id", + "=", + "t2.shop_id", + "GROUP", + "BY", + "t1.shop_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "hiring", + "as", + "t1", + "join", + "shop", + "as", + "t2", + "on", + "t1", + ".", + "shop_id", + "=", + "t2", + ".", + "shop_id", + "group", + "by", + "t1", + ".", + "shop_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "従業員人数が一番多い店の名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t2.name", + "FROM", + "hiring", + "AS", + "t1", + "JOIN", + "shop", + "AS", + "t2", + "ON", + "t1.shop_id", + "=", + "t2.shop_id", + "GROUP", + "BY", + "t1.shop_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "hiring", + "as", + "t1", + "join", + "shop", + "as", + "t2", + "on", + "t1", + ".", + "shop_id", + "=", + "t2", + ".", + "shop_id", + "group", + "by", + "t1", + ".", + "shop_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "従業員人数が一番多い店は?その店の名を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "shop", + "WHERE", + "shop_id", + "NOT", + "IN", + "(", + "SELECT", + "shop_id", + "FROM", + "hiring", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "shop", + "where", + "shop_id", + "not", + "in", + "(", + "select", + "shop_id", + "from", + "hiring", + ")" + ], + "question": "従業員がいない店の名を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "shop", + "WHERE", + "shop_id", + "NOT", + "IN", + "(", + "SELECT", + "shop_id", + "FROM", + "hiring", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "shop", + "where", + "shop_id", + "not", + "in", + "(", + "select", + "shop_id", + "from", + "hiring", + ")" + ], + "question": "従業員がいない店は?その店の名を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "t2.name", + "FROM", + "hiring", + "AS", + "t1", + "JOIN", + "shop", + "AS", + "t2", + "ON", + "t1.shop_id", + "=", + "t2.shop_id", + "GROUP", + "BY", + "t2.name" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t2", + ".", + "name", + "from", + "hiring", + "as", + "t1", + "join", + "shop", + "as", + "t2", + "on", + "t1", + ".", + "shop_id", + "=", + "t2", + ".", + "shop_id", + "group", + "by", + "t2", + ".", + "name" + ], + "question": "各店の従業員の人数とその店の名前を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "t2.name", + "FROM", + "hiring", + "AS", + "t1", + "JOIN", + "shop", + "AS", + "t2", + "ON", + "t1.shop_id", + "=", + "t2.shop_id", + "GROUP", + "BY", + "t2.name" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "t2", + ".", + "name", + "from", + "hiring", + "as", + "t1", + "join", + "shop", + "as", + "t2", + "on", + "t1", + ".", + "shop_id", + "=", + "t2", + ".", + "shop_id", + "group", + "by", + "t2", + ".", + "name" + ], + "question": "各店の従業員の人数とその店の名前を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT sum(bonus) FROM evaluation", + "query_toks": [ + "SELECT", + "sum", + "(", + "bonus", + ")", + "FROM", + "evaluation" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "bonus", + ")", + "from", + "evaluation" + ], + "question": "すべての評価での合計ボーナスは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT sum(bonus) FROM evaluation", + "query_toks": [ + "SELECT", + "sum", + "(", + "bonus", + ")", + "FROM", + "evaluation" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "bonus", + ")", + "from", + "evaluation" + ], + "question": "すべての評価での合計ボーナスを示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT * FROM hiring", + "query_toks": [ + "SELECT", + "*", + "FROM", + "hiring" + ], + "query_toks_no_value": [ + "select", + "*", + "from", + "hiring" + ], + "question": "採用に関するすべての情報を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT * FROM hiring", + "query_toks": [ + "SELECT", + "*", + "FROM", + "hiring" + ], + "query_toks_no_value": [ + "select", + "*", + "from", + "hiring" + ], + "question": "採用に関するすべての情報は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", + "query_toks": [ + "SELECT", + "district", + "FROM", + "shop", + "WHERE", + "Number_products", + "<", + "3000", + "INTERSECT", + "SELECT", + "district", + "FROM", + "shop", + "WHERE", + "Number_products", + ">", + "10000" + ], + "query_toks_no_value": [ + "select", + "district", + "from", + "shop", + "where", + "number_products", + "<", + "value", + "intersect", + "select", + "district", + "from", + "shop", + "where", + "number_products", + ">", + "value" + ], + "question": "製品数3000未満の店と10000を超えた店がある地域は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 3000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 10000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", + "query_toks": [ + "SELECT", + "district", + "FROM", + "shop", + "WHERE", + "Number_products", + "<", + "3000", + "INTERSECT", + "SELECT", + "district", + "FROM", + "shop", + "WHERE", + "Number_products", + ">", + "10000" + ], + "query_toks_no_value": [ + "select", + "district", + "from", + "shop", + "where", + "number_products", + "<", + "value", + "intersect", + "select", + "district", + "from", + "shop", + "where", + "number_products", + ">", + "value" + ], + "question": "製品数3000未満の店と10000を超えた店がある地域を探し出す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 3000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 10000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(DISTINCT LOCATION) FROM shop", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "LOCATION", + ")", + "FROM", + "shop" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "location", + ")", + "from", + "shop" + ], + "question": "異なる店の場所がいくつある?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 7, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "employee_hire_evaluation", + "query": "SELECT count(DISTINCT LOCATION) FROM shop", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "LOCATION", + ")", + "FROM", + "shop" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "location", + ")", + "from", + "shop" + ], + "question": "異なる店の場所の数を示す。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 7, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Documents", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "documents" + ], + "question": "いくつのドキュメントがあるか。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Documents", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "documents" + ], + "question": "文書を数える。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , document_name , document_description FROM Documents", + "query_toks": [ + "SELECT", + "document_id", + ",", + "document_name", + ",", + "document_description", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "document_name", + ",", + "document_description", + "from", + "documents" + ], + "question": "すべての文書のID、名前、説明を並べる。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , document_name , document_description FROM Documents", + "query_toks": [ + "SELECT", + "document_id", + ",", + "document_name", + ",", + "document_description", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "document_name", + ",", + "document_description", + "from", + "documents" + ], + "question": "すべての文書のID、名前、説明はなんだか。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", + "query_toks": [ + "SELECT", + "document_name", + ",", + "template_id", + "FROM", + "Documents", + "WHERE", + "Document_Description", + "LIKE", + "``", + "%", + "w", + "%", + "''" + ], + "query_toks_no_value": [ + "select", + "document_name", + ",", + "template_id", + "from", + "documents", + "where", + "document_description", + "like", + "value" + ], + "question": "文書の名前とテンプレートID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"%w%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\"", + "query_toks": [ + "SELECT", + "document_name", + ",", + "template_id", + "FROM", + "Documents", + "WHERE", + "Document_Description", + "LIKE", + "``", + "%", + "w", + "%", + "''" + ], + "query_toks_no_value": [ + "select", + "document_name", + ",", + "template_id", + "from", + "documents", + "where", + "document_description", + "like", + "value" + ], + "question": "説明には「w」を含む文書の名前とテンプレートID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"%w%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", + "query_toks": [ + "SELECT", + "document_id", + ",", + "template_id", + ",", + "Document_Description", + "FROM", + "Documents", + "WHERE", + "document_name", + "=", + "``", + "Robbin", + "CV", + "''" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "template_id", + ",", + "document_description", + "from", + "documents", + "where", + "document_name", + "=", + "value" + ], + "question": "Robbin CVという文書のID、テンプレートIDと説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Robbin CV\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\"", + "query_toks": [ + "SELECT", + "document_id", + ",", + "template_id", + ",", + "Document_Description", + "FROM", + "Documents", + "WHERE", + "document_name", + "=", + "``", + "Robbin", + "CV", + "''" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "template_id", + ",", + "document_description", + "from", + "documents", + "where", + "document_name", + "=", + "value" + ], + "question": "名前はRobbin CVの文書のID、テンプレートIDと説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Robbin CV\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(DISTINCT template_id) FROM Documents", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "template_id", + ")", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "template_id", + ")", + "from", + "documents" + ], + "question": "すべての文書が使う異なるテンプレートの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 10, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(DISTINCT template_id) FROM Documents", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "template_id", + ")", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "template_id", + ")", + "from", + "documents" + ], + "question": "文書に使う異なるテンプレートの数を数える", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 10, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Documents", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.Template_ID", + "=", + "T2.Template_ID", + "WHERE", + "T2.Template_Type_Code", + "=", + "'PPT", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "documents", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t2", + ".", + "template_type_code", + "=", + "value" + ], + "question": "PPTテンプレートを使う文書の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PPT\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Documents", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.Template_ID", + "=", + "T2.Template_ID", + "WHERE", + "T2.Template_Type_Code", + "=", + "'PPT", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "documents", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t2", + ".", + "template_type_code", + "=", + "value" + ], + "question": "PPTテンプレートを使う文書の数を数える", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PPT\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", + "query_toks": [ + "SELECT", + "template_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Documents", + "GROUP", + "BY", + "template_id" + ], + "query_toks_no_value": [ + "select", + "template_id", + ",", + "count", + "(", + "*", + ")", + "from", + "documents", + "group", + "by", + "template_id" + ], + "question": "テンプレートIDとそれを使う文書の数を数える", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", + "query_toks": [ + "SELECT", + "template_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Documents", + "GROUP", + "BY", + "template_id" + ], + "query_toks_no_value": [ + "select", + "template_id", + ",", + "count", + "(", + "*", + ")", + "from", + "documents", + "group", + "by", + "template_id" + ], + "question": "文書に使う全ての異なるテンプレートID、それぞれ使った数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.template_id", + ",", + "T2.Template_Type_Code", + "FROM", + "Documents", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_id", + ",", + "t2", + ".", + "template_type_code", + "from", + "documents", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "文書トップ1に使うテンプレートのIDとタイプコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.template_id", + ",", + "T2.Template_Type_Code", + "FROM", + "Documents", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_id", + ",", + "t2", + ".", + "template_type_code", + "from", + "documents", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "一番の文書のテンプレートのIDとタイプコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Documents", + "GROUP", + "BY", + "template_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "documents", + "group", + "by", + "template_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "一部以上の文書に使うすべてのテンプレートのID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Documents", + "GROUP", + "BY", + "template_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "documents", + "group", + "by", + "template_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "一部以上の文書に使うテンプレートのID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Templates", + "EXCEPT", + "SELECT", + "template_id", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "templates", + "except", + "select", + "template_id", + "from", + "documents" + ], + "question": "文書に使わない全てのテンプレートのID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Templates", + "EXCEPT", + "SELECT", + "template_id", + "FROM", + "Documents" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "templates", + "except", + "select", + "template_id", + "from", + "documents" + ], + "question": "文書に使わないテンプレートのID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Templates", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "templates" + ], + "question": "テンプレートの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Templates", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "templates" + ], + "question": "テンプレートの数を数える", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id , version_number , template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "template_id", + ",", + "version_number", + ",", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "template_id", + ",", + "version_number", + ",", + "template_type_code", + "from", + "templates" + ], + "question": "全てのテンプレートのID、バージョン数とテンプレートタイプコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id , version_number , template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "template_id", + ",", + "version_number", + ",", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "template_id", + ",", + "version_number", + ",", + "template_type_code", + "from", + "templates" + ], + "question": "各テンプレートのID、バージョン数とテンプレートタイプコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT DISTINCT template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "DISTINCT", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "distinct", + "template_type_code", + "from", + "templates" + ], + "question": "全てのテンプレーのタイプコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT DISTINCT template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "DISTINCT", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "distinct", + "template_type_code", + "from", + "templates" + ], + "question": "異なるテンプレートタイプコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Templates", + "WHERE", + "template_type_code", + "=", + "``", + "PP", + "''", + "OR", + "template_type_code", + "=", + "``", + "PPT", + "''" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "templates", + "where", + "template_type_code", + "=", + "value", + "or", + "template_type_code", + "=", + "value" + ], + "question": "テンプレートコードPPあるいはpptのテンプレートID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PP\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PPT\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"", + "query_toks": [ + "SELECT", + "template_id", + "FROM", + "Templates", + "WHERE", + "template_type_code", + "=", + "``", + "PP", + "''", + "OR", + "template_type_code", + "=", + "``", + "PPT", + "''" + ], + "query_toks_no_value": [ + "select", + "template_id", + "from", + "templates", + "where", + "template_type_code", + "=", + "value", + "or", + "template_type_code", + "=", + "value" + ], + "question": "コードPPあるいはpptのテンプレートのID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PP\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"PPT\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "WHERE", + "template_type_code", + "=", + "``", + "CV", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "templates", + "where", + "template_type_code", + "=", + "value" + ], + "question": "コードcvを含むテンプレートの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"CV\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "WHERE", + "template_type_code", + "=", + "``", + "CV", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "templates", + "where", + "template_type_code", + "=", + "value" + ], + "question": "タイプはcvのテンプレートの数を数える", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"CV\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", + "query_toks": [ + "SELECT", + "version_number", + ",", + "template_type_code", + "FROM", + "Templates", + "WHERE", + "version_number", + ">", + "5" + ], + "query_toks_no_value": [ + "select", + "version_number", + ",", + "template_type_code", + "from", + "templates", + "where", + "version_number", + ">", + "value" + ], + "question": "バージョン番号5の後のテンプレートのバージョン番号とテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 5, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", + "query_toks": [ + "SELECT", + "version_number", + ",", + "template_type_code", + "FROM", + "Templates", + "WHERE", + "version_number", + ">", + "5" + ], + "query_toks_no_value": [ + "select", + "version_number", + ",", + "template_type_code", + "from", + "templates", + "where", + "version_number", + ">", + "value" + ], + "question": "バージョン番号5以上のテンプレートのバージョン番号とテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 5, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", + "query_toks": [ + "SELECT", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "from", + "templates", + "group", + "by", + "template_type_code" + ], + "question": "各テンプレートのコードとその数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", + "query_toks": [ + "SELECT", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "from", + "templates", + "group", + "by", + "template_type_code" + ], + "question": "異なるテンプレートコードの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "group", + "by", + "template_type_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "テンプレートが1番多いコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "group", + "by", + "template_type_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "テンプレートが1番多いテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "3" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "group", + "by", + "template_type_code", + "having", + "count", + "(", + "*", + ")", + "<", + "value" + ], + "question": "テンプレートは3以下の全てのテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "GROUP", + "BY", + "template_type_code", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "3" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "group", + "by", + "template_type_code", + "having", + "count", + "(", + "*", + ")", + "<", + "value" + ], + "question": "テンプレート<3のテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT min(Version_Number) , template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "min", + "(", + "Version_Number", + ")", + ",", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "version_number", + ")", + ",", + "template_type_code", + "from", + "templates" + ], + "question": "一番低いバージョン番号とそのテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT min(Version_Number) , template_type_code FROM Templates", + "query_toks": [ + "SELECT", + "min", + "(", + "Version_Number", + ")", + ",", + "template_type_code", + "FROM", + "Templates" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "version_number", + ")", + ",", + "template_type_code", + "from", + "templates" + ], + "question": "一番低いバージョン番号とそのテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"", + "query_toks": [ + "SELECT", + "T1.template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "WHERE", + "T2.document_name", + "=", + "``", + "Data", + "base", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question": "文書「データベース」に使うテンプレートのコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Data base\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"", + "query_toks": [ + "SELECT", + "T1.template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "WHERE", + "T2.document_name", + "=", + "``", + "Data", + "base", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question": "「データベース」という名の文書に使うテンプレートのコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Data base\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"", + "query_toks": [ + "SELECT", + "T2.document_name", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "WHERE", + "T1.template_type_code", + "=", + "``", + "BK", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "document_name", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t1", + ".", + "template_type_code", + "=", + "value" + ], + "question": "テンプレートコードBKを使うすべての文書の名前とテンプレートID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"BK\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"", + "query_toks": [ + "SELECT", + "T2.document_name", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "WHERE", + "T1.template_type_code", + "=", + "``", + "BK", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "document_name", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "where", + "t1", + ".", + "template_type_code", + "=", + "value" + ], + "question": "コードBKを使うすべての文書の名前とテンプレートID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"BK\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", + "query_toks": [ + "SELECT", + "T1.template_type_code", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_type_code" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_type_code" + ], + "question": "テンプレートコードとそれぞれ文書に使う数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", + "query_toks": [ + "SELECT", + "T1.template_type_code", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_type_code" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + ",", + "count", + "(", + "*", + ")", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_type_code" + ], + "question": "異なるテンプレートは?文書に使うの数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_type_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_type_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "文書に現れた回数が一番多いテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id", + "GROUP", + "BY", + "T1.template_type_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id", + "group", + "by", + "t1", + ".", + "template_type_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "文書に一番よく使うテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "EXCEPT", + "SELECT", + "template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "except", + "select", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id" + ], + "question": "文書に使わないテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Templates", + "EXCEPT", + "SELECT", + "template_type_code", + "FROM", + "Templates", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.template_id", + "=", + "T2.template_id" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "templates", + "except", + "select", + "template_type_code", + "from", + "templates", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "template_id", + "=", + "t2", + ".", + "template_id" + ], + "question": "文書に使わないテンプレートのコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code , template_type_description FROM Ref_template_types", + "query_toks": [ + "SELECT", + "template_type_code", + ",", + "template_type_description", + "FROM", + "Ref_template_types" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + ",", + "template_type_description", + "from", + "ref_template_types" + ], + "question": "すべてのテンプレートコードと説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code , template_type_description FROM Ref_template_types", + "query_toks": [ + "SELECT", + "template_type_code", + ",", + "template_type_description", + "FROM", + "Ref_template_types" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + ",", + "template_type_description", + "from", + "ref_template_types" + ], + "question": "全てのテンプレートのテープコードと説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", + "query_toks": [ + "SELECT", + "template_type_description", + "FROM", + "Ref_template_types", + "WHERE", + "template_type_code", + "=", + "``", + "AD", + "''" + ], + "query_toks_no_value": [ + "select", + "template_type_description", + "from", + "ref_template_types", + "where", + "template_type_code", + "=", + "value" + ], + "question": "テンプレートコードADのテンプレート説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + "\"AD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"", + "query_toks": [ + "SELECT", + "template_type_description", + "FROM", + "Ref_template_types", + "WHERE", + "template_type_code", + "=", + "``", + "AD", + "''" + ], + "query_toks_no_value": [ + "select", + "template_type_description", + "from", + "ref_template_types", + "where", + "template_type_code", + "=", + "value" + ], + "question": "テンプレートコードADのテンプレート説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + "\"AD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Ref_template_types", + "WHERE", + "template_type_description", + "=", + "``", + "Book", + "''" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "ref_template_types", + "where", + "template_type_description", + "=", + "value" + ], + "question": "テンプレート説明Bookのテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Book\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"", + "query_toks": [ + "SELECT", + "template_type_code", + "FROM", + "Ref_template_types", + "WHERE", + "template_type_description", + "=", + "``", + "Book", + "''" + ], + "query_toks_no_value": [ + "select", + "template_type_code", + "from", + "ref_template_types", + "where", + "template_type_description", + "=", + "value" + ], + "question": "テンプレート説明Bookのテンプレートコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Book\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.template_type_description", + "FROM", + "Ref_template_types", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_type_code", + "=", + "T2.template_type_code", + "JOIN", + "Documents", + "AS", + "T3", + "ON", + "T2.Template_ID", + "=", + "T3.template_ID" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "template_type_description", + "from", + "ref_template_types", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_type_code", + "=", + "t2", + ".", + "template_type_code", + "join", + "documents", + "as", + "t3", + "on", + "t2", + ".", + "template_id", + "=", + "t3", + ".", + "template_id" + ], + "question": "文書に使ったテンプレートタイプ", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.template_type_description", + "FROM", + "Ref_template_types", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_type_code", + "=", + "T2.template_type_code", + "JOIN", + "Documents", + "AS", + "T3", + "ON", + "T2.Template_ID", + "=", + "T3.template_ID" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "template_type_description", + "from", + "ref_template_types", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_type_code", + "=", + "t2", + ".", + "template_type_code", + "join", + "documents", + "as", + "t3", + "on", + "t2", + ".", + "template_id", + "=", + "t3", + ".", + "template_id" + ], + "question": "文書に使ったテンプレートの異なる説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", + "query_toks": [ + "SELECT", + "T2.template_id", + "FROM", + "Ref_template_types", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_type_code", + "=", + "T2.template_type_code", + "WHERE", + "T1.template_type_description", + "=", + "``", + "Presentation", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "template_id", + "from", + "ref_template_types", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_type_code", + "=", + "t2", + ".", + "template_type_code", + "where", + "t1", + ".", + "template_type_description", + "=", + "value" + ], + "question": "テンプレート説明PresentationのテンプレートID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Presentation\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"", + "query_toks": [ + "SELECT", + "T2.template_id", + "FROM", + "Ref_template_types", + "AS", + "T1", + "JOIN", + "Templates", + "AS", + "T2", + "ON", + "T1.template_type_code", + "=", + "T2.template_type_code", + "WHERE", + "T1.template_type_description", + "=", + "``", + "Presentation", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "template_id", + "from", + "ref_template_types", + "as", + "t1", + "join", + "templates", + "as", + "t2", + "on", + "t1", + ".", + "template_type_code", + "=", + "t2", + ".", + "template_type_code", + "where", + "t1", + ".", + "template_type_description", + "=", + "value" + ], + "question": "説明はPresentationのテンプレートのID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 5, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Presentation\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Paragraphs", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "paragraphs" + ], + "question": "段落の総数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Paragraphs", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "paragraphs" + ], + "question": "段落の数を数える", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_ID", + "=", + "T2.document_ID", + "WHERE", + "T2.document_name", + "=", + "'Summer", + "Show", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question": "文書Summer Showの段落の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Summer Show\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_ID", + "=", + "T2.document_ID", + "WHERE", + "T2.document_name", + "=", + "'Summer", + "Show", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question": "Summer という文書の段落の数を数える", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Summer Show\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "select other_details from paragraphs where paragraph_text like 'korea'", + "query_toks": [ + "select", + "other_details", + "from", + "paragraphs", + "where", + "paragraph_text", + "like", + "\"korea\"" + ], + "query_toks_no_value": [ + "select", + "other_details", + "from", + "paragraphs", + "where", + "paragraph_text", + "like", + "value" + ], + "question": "Koreaを含む段落の情報", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"korea\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "select other_details from paragraphs where paragraph_text like 'korea'", + "query_toks": [ + "select", + "other_details", + "from", + "paragraphs", + "where", + "paragraph_text", + "like", + "\"korea\"" + ], + "query_toks_no_value": [ + "select", + "other_details", + "from", + "paragraphs", + "where", + "paragraph_text", + "like", + "value" + ], + "question": "Koreaを含む段落の情報は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"korea\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", + "query_toks": [ + "SELECT", + "T1.paragraph_id", + ",", + "T1.paragraph_text", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "WHERE", + "T2.Document_Name", + "=", + "'Welcome", + "to", + "NY", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "paragraph_id", + ",", + "t1", + ".", + "paragraph_text", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question": "Welcome to NYという文書のすべての段落のIDと内容", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Welcome to NY\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", + "query_toks": [ + "SELECT", + "T1.paragraph_id", + ",", + "T1.paragraph_text", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "WHERE", + "T2.Document_Name", + "=", + "'Welcome", + "to", + "NY", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "paragraph_id", + ",", + "t1", + ".", + "paragraph_text", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question": "Welcome to NYという文書のすべての段落のIDと内容", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Welcome to NY\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"", + "query_toks": [ + "SELECT", + "T1.paragraph_text", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "WHERE", + "T2.document_name", + "=", + "``", + "Customer", + "reviews", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "paragraph_text", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question": "Customer reviewsという文書の段落の内容", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Customer reviews\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"", + "query_toks": [ + "SELECT", + "T1.paragraph_text", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "WHERE", + "T2.document_name", + "=", + "``", + "Customer", + "reviews", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "paragraph_text", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "where", + "t2", + ".", + "document_name", + "=", + "value" + ], + "question": "Customer reviewsという文書の段落の内容", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Customer reviews\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", + "query_toks": [ + "SELECT", + "document_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "ORDER", + "BY", + "document_id" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "group", + "by", + "document_id", + "order", + "by", + "document_id" + ], + "question": "各文書での文書IDと段落の数、文書IDの順で並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", + "query_toks": [ + "SELECT", + "document_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "ORDER", + "BY", + "document_id" + ], + "query_toks_no_value": [ + "select", + "document_id", + ",", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "group", + "by", + "document_id", + "order", + "by", + "document_id" + ], + "question": "文書IDの順でIDと段落の数を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", + "query_toks": [ + "SELECT", + "T1.document_id", + ",", + "T2.document_name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "GROUP", + "BY", + "T1.document_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "document_id", + ",", + "t2", + ".", + "document_name", + ",", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "group", + "by", + "t1", + ".", + "document_id" + ], + "question": "各文書のID、名前と段落の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id", + "query_toks": [ + "SELECT", + "T1.document_id", + ",", + "T2.document_name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "GROUP", + "BY", + "T1.document_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "document_id", + ",", + "t2", + ".", + "document_name", + ",", + "count", + "(", + "*", + ")", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "group", + "by", + "t1", + ".", + "document_id" + ], + "question": "各文書のID、名前と段落の数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "段落が二つ以上の文書のID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "段落≧2の文書のID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.document_id", + ",", + "T2.document_name", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "GROUP", + "BY", + "T1.document_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "document_id", + ",", + "t2", + ".", + "document_name", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "group", + "by", + "t1", + ".", + "document_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "一番の段落の文書IDと名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.document_id", + ",", + "T2.document_name", + "FROM", + "Paragraphs", + "AS", + "T1", + "JOIN", + "Documents", + "AS", + "T2", + "ON", + "T1.document_id", + "=", + "T2.document_id", + "GROUP", + "BY", + "T1.document_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "document_id", + ",", + "t2", + ".", + "document_name", + "from", + "paragraphs", + "as", + "t1", + "join", + "documents", + "as", + "t2", + "on", + "t1", + ".", + "document_id", + "=", + "t2", + ".", + "document_id", + "group", + "by", + "t1", + ".", + "document_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "一番の段落の文書のIDと名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question": "番号が最もない段落の文書ID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question": "段落が最もない文書のID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "HAVING", + "count", + "(", + "*", + ")", + "BETWEEN", + "1", + "AND", + "2" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "having", + "count", + "(", + "*", + ")", + "between", + "value", + "and", + "value" + ], + "question": "第一段落と第二段落の文書のID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [ + [ + false, + 1, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + 2 + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "GROUP", + "BY", + "document_id", + "HAVING", + "count", + "(", + "*", + ")", + "BETWEEN", + "1", + "AND", + "2" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "group", + "by", + "document_id", + "having", + "count", + "(", + "*", + ")", + "between", + "value", + "and", + "value" + ], + "question": "第一段落と第二段落の文書のID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 15, + false + ] + ], + "having": [ + [ + false, + 1, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + 2 + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "WHERE", + "paragraph_text", + "=", + "'Brazil", + "'", + "INTERSECT", + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "WHERE", + "paragraph_text", + "=", + "'Ireland", + "'" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "where", + "paragraph_text", + "=", + "value", + "intersect", + "select", + "document_id", + "from", + "paragraphs", + "where", + "paragraph_text", + "=", + "value" + ], + "question": "内容には「Brazil' and 'Ireland」を含む文書のID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"Brazil\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"Ireland\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "cre_Doc_Template_Mgt", + "query": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", + "query_toks": [ + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "WHERE", + "paragraph_text", + "=", + "'Brazil", + "'", + "INTERSECT", + "SELECT", + "document_id", + "FROM", + "Paragraphs", + "WHERE", + "paragraph_text", + "=", + "'Ireland", + "'" + ], + "query_toks_no_value": [ + "select", + "document_id", + "from", + "paragraphs", + "where", + "paragraph_text", + "=", + "value", + "intersect", + "select", + "document_id", + "from", + "paragraphs", + "where", + "paragraph_text", + "=", + "value" + ], + "question": "内容には「Brazil' and 'Ireland」を含む文書のID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"Brazil\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"Ireland\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT count(*) FROM teacher", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "teacher" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "teacher" + ], + "question": "教師の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT count(*) FROM teacher", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "teacher" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "teacher" + ], + "question": "教師の総人数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher ORDER BY Age ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "ORDER", + "BY", + "Age", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "order", + "by", + "age", + "asc" + ], + "question": "年齢の昇順に教師の名前を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher ORDER BY Age ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "ORDER", + "BY", + "Age", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "order", + "by", + "age", + "asc" + ], + "question": "年齢の昇順での教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Age , Hometown FROM teacher", + "query_toks": [ + "SELECT", + "Age", + ",", + "Hometown", + "FROM", + "teacher" + ], + "query_toks_no_value": [ + "select", + "age", + ",", + "hometown", + "from", + "teacher" + ], + "question": "教師の年齢と故郷", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Age , Hometown FROM teacher", + "query_toks": [ + "SELECT", + "Age", + ",", + "Hometown", + "FROM", + "teacher" + ], + "query_toks_no_value": [ + "select", + "age", + ",", + "hometown", + "from", + "teacher" + ], + "question": "各教師のそれぞれの年齢と故郷", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "select name from teacher where hometown != \"little lever urban district\"", + "query_toks": [ + "select", + "name", + "from", + "teacher", + "where", + "hometown", + "!=", + "\"little lever urban district\"" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "hometown", + "!", + "=", + "value" + ], + "question": "故郷は「Little Lever Urban District��ではない教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"little lever urban district\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "select name from teacher where hometown != \"little lever urban district\"", + "query_toks": [ + "select", + "name", + "from", + "teacher", + "where", + "hometown", + "!=", + "\"little lever urban district\"" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "hometown", + "!", + "=", + "value" + ], + "question": "故郷は「Little Lever Urban District」ではない教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"little lever urban district\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "WHERE", + "Age", + "=", + "32", + "OR", + "Age", + "=", + "33" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "age", + "=", + "value", + "or", + "age", + "=", + "value" + ], + "question": "年齢が32~33の教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 32, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 33, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "WHERE", + "Age", + "=", + "32", + "OR", + "Age", + "=", + "33" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "age", + "=", + "value", + "or", + "age", + "=", + "value" + ], + "question": "年齢が32~33の教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 32, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 33, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "ORDER", + "BY", + "Age", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "order", + "by", + "age", + "asc", + "limit", + "value" + ], + "question": "一番若い教師の故郷", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "ORDER", + "BY", + "Age", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "order", + "by", + "age", + "asc", + "limit", + "value" + ], + "question": "一番若い教師の故郷", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown", + "query_toks": [ + "SELECT", + "Hometown", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown" + ], + "query_toks_no_value": [ + "select", + "hometown", + ",", + "count", + "(", + "*", + ")", + "from", + "teacher", + "group", + "by", + "hometown" + ], + "question": "教師の異なる故郷と各故郷の教師の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown", + "query_toks": [ + "SELECT", + "Hometown", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown" + ], + "query_toks_no_value": [ + "select", + "hometown", + ",", + "count", + "(", + "*", + ")", + "from", + "teacher", + "group", + "by", + "hometown" + ], + "question": "各故郷の教師の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "group", + "by", + "hometown", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "教師が一番多い故郷の教師を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "group", + "by", + "hometown", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "教師が一番多い故郷は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "group", + "by", + "hometown", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "2人以上の教師がある故郷", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "Hometown", + "FROM", + "teacher", + "GROUP", + "BY", + "Hometown", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "hometown", + "from", + "teacher", + "group", + "by", + "hometown", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "2人以上の教師がある故郷", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 7, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID", + "query_toks": [ + "SELECT", + "T3.Name", + ",", + "T2.Course", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + ",", + "t2", + ".", + "course", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id" + ], + "question": "教師の名前と授業名", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID", + "query_toks": [ + "SELECT", + "T3.Name", + ",", + "T2.Course", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + ",", + "t2", + ".", + "course", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id" + ], + "question": "各教師の名前と授業名", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name", + "query_toks": [ + "SELECT", + "T3.Name", + ",", + "T2.Course", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID", + "ORDER", + "BY", + "T3.Name" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + ",", + "t2", + ".", + "course", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id", + "order", + "by", + "t3", + ".", + "name" + ], + "question": "アルファベット順で教師の名前とその授業名を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name", + "query_toks": [ + "SELECT", + "T3.Name", + ",", + "T2.Course", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID", + "ORDER", + "BY", + "T3.Name" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + ",", + "t2", + ".", + "course", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id", + "order", + "by", + "t3", + ".", + "name" + ], + "question": "教師の名前アルファベット順に名前と授業名を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"", + "query_toks": [ + "SELECT", + "T3.Name", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID", + "WHERE", + "T2.Course", + "=", + "``", + "Math", + "''" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id", + "where", + "t2", + ".", + "course", + "=", + "value" + ], + "question": "数学授業の教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + "\"Math\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"", + "query_toks": [ + "SELECT", + "T3.Name", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "course", + "AS", + "T2", + "ON", + "T1.Course_ID", + "=", + "T2.Course_ID", + "JOIN", + "teacher", + "AS", + "T3", + "ON", + "T1.Teacher_ID", + "=", + "T3.Teacher_ID", + "WHERE", + "T2.Course", + "=", + "``", + "Math", + "''" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + "from", + "course_arrange", + "as", + "t1", + "join", + "course", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "join", + "teacher", + "as", + "t3", + "on", + "t1", + ".", + "teacher_id", + "=", + "t3", + ".", + "teacher_id", + "where", + "t2", + ".", + "course", + "=", + "value" + ], + "question": "数学教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + "\"Math\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", + "query_toks": [ + "SELECT", + "T2.Name", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "teacher", + "AS", + "T2", + "ON", + "T1.Teacher_ID", + "=", + "T2.Teacher_ID", + "GROUP", + "BY", + "T2.Name" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "course_arrange", + "as", + "t1", + "join", + "teacher", + "as", + "t2", + "on", + "t1", + ".", + "teacher_id", + "=", + "t2", + ".", + "teacher_id", + "group", + "by", + "t2", + ".", + "name" + ], + "question": "教師の名前と授業の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", + "query_toks": [ + "SELECT", + "T2.Name", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "teacher", + "AS", + "T2", + "ON", + "T1.Teacher_ID", + "=", + "T2.Teacher_ID", + "GROUP", + "BY", + "T2.Name" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "course_arrange", + "as", + "t1", + "join", + "teacher", + "as", + "t2", + "on", + "t1", + ".", + "teacher_id", + "=", + "t2", + ".", + "teacher_id", + "group", + "by", + "t2", + ".", + "name" + ], + "question": "教師の名前と授業の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "T2.Name", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "teacher", + "AS", + "T2", + "ON", + "T1.Teacher_ID", + "=", + "T2.Teacher_ID", + "GROUP", + "BY", + "T2.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "course_arrange", + "as", + "t1", + "join", + "teacher", + "as", + "t2", + "on", + "t1", + ".", + "teacher_id", + "=", + "t2", + ".", + "teacher_id", + "group", + "by", + "t2", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "二つ以上の授業がある教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "T2.Name", + "FROM", + "course_arrange", + "AS", + "T1", + "JOIN", + "teacher", + "AS", + "T2", + "ON", + "T1.Teacher_ID", + "=", + "T2.Teacher_ID", + "GROUP", + "BY", + "T2.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "course_arrange", + "as", + "t1", + "join", + "teacher", + "as", + "t2", + "on", + "t1", + ".", + "teacher_id", + "=", + "t2", + ".", + "teacher_id", + "group", + "by", + "t2", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "二つ以上の授業がある教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + [ + 0, + 4, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "WHERE", + "Teacher_id", + "NOT", + "IN", + "(", + "SELECT", + "Teacher_id", + "FROM", + "course_arrange", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "teacher_id", + "not", + "in", + "(", + "select", + "teacher_id", + "from", + "course_arrange", + ")" + ], + "question": "授業がない教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "course_teach", + "query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "teacher", + "WHERE", + "Teacher_id", + "NOT", + "IN", + "(", + "SELECT", + "Teacher_id", + "FROM", + "course_arrange", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "teacher", + "where", + "teacher_id", + "not", + "in", + "(", + "select", + "teacher_id", + "from", + "course_arrange", + ")" + ], + "question": "授業がない教師の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT count(*) FROM visitor WHERE age < 30", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "visitor", + "WHERE", + "age", + "<", + "30" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "visitor", + "where", + "age", + "<", + "value" + ], + "question": "30歳以下の観光者の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + 30, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC", + "query_toks": [ + "SELECT", + "name", + "FROM", + "visitor", + "WHERE", + "Level_of_membership", + ">", + "4", + "ORDER", + "BY", + "Level_of_membership", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "visitor", + "where", + "level_of_membership", + ">", + "value", + "order", + "by", + "level_of_membership", + "desc" + ], + "question": "会員レベルが4以上の観光者の名前、その結果をレベルの降順に並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT avg(age) FROM visitor WHERE Level_of_membership <= 4", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "visitor", + "WHERE", + "Level_of_membership", + "<", + "=", + "4" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "visitor", + "where", + "level_of_membership", + "<", + "=", + "value" + ], + "question": "会員レベルが4以下の観光者の平均年齢", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 6, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "Level_of_membership", + "FROM", + "visitor", + "WHERE", + "Level_of_membership", + ">", + "4", + "ORDER", + "BY", + "age", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "level_of_membership", + "from", + "visitor", + "where", + "level_of_membership", + ">", + "value", + "order", + "by", + "age", + "desc" + ], + "question": "観光者の名前と会員レベル、その年齢の降順に並べる。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + 4, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT museum_id , name FROM museum ORDER BY num_of_staff DESC LIMIT 1", + "query_toks": [ + "SELECT", + "museum_id", + ",", + "name", + "FROM", + "museum", + "ORDER", + "BY", + "num_of_staff", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "museum_id", + ",", + "name", + "from", + "museum", + "order", + "by", + "num_of_staff", + "desc", + "limit", + "value" + ], + "question": "スタッフが最も多い博物館のIDと名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009", + "query_toks": [ + "SELECT", + "avg", + "(", + "num_of_staff", + ")", + "FROM", + "museum", + "WHERE", + "open_year", + "<", + "2009" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "num_of_staff", + ")", + "from", + "museum", + "where", + "open_year", + "<", + "value" + ], + "question": "2009年以前に開かれた博物館のスタッフの平均人数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2009, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT Num_of_Staff , Open_Year FROM museum WHERE name = 'Plaza Museum'", + "query_toks": [ + "SELECT", + "Num_of_Staff", + ",", + "Open_Year", + "FROM", + "museum", + "WHERE", + "name", + "=", + "'Plaza", + "Museum", + "'" + ], + "query_toks_no_value": [ + "select", + "num_of_staff", + ",", + "open_year", + "from", + "museum", + "where", + "name", + "=", + "value" + ], + "question": "Plaza博物館の開かれた年とスタッフの人数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Plaza Museum\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "museum", + "WHERE", + "num_of_staff", + ">", + "(", + "SELECT", + "min", + "(", + "num_of_staff", + ")", + "FROM", + "museum", + "WHERE", + "open_year", + ">", + "2010", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "museum", + "where", + "num_of_staff", + ">", + "(", + "select", + "min", + "(", + "num_of_staff", + ")", + "from", + "museum", + "where", + "open_year", + ">", + "value", + ")" + ], + "question": "2010年後に開かれた博物館の最小スタッフ人数より多い博物館の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2010, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT t1.id , t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING count(*) > 1", + "query_toks": [ + "SELECT", + "t1.id", + ",", + "t1.name", + ",", + "t1.age", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "GROUP", + "BY", + "t1.id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "id", + ",", + "t1", + ".", + "name", + ",", + "t1", + ".", + "age", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "group", + "by", + "t1", + ".", + "id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "二つ以上の博物館を訪れた観光者のID、名前と年齢", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT t2.visitor_id , t1.name , t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t2.visitor_id", + ",", + "t1.name", + ",", + "t1.Level_of_membership", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "GROUP", + "BY", + "t2.visitor_id", + "ORDER", + "BY", + "sum", + "(", + "t2.Total_spent", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "visitor_id", + ",", + "t1", + ".", + "name", + ",", + "t1", + ".", + "level_of_membership", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "group", + "by", + "t2", + ".", + "visitor_id", + "order", + "by", + "sum", + "(", + "t2", + ".", + "total_spent", + ")", + "desc", + "limit", + "value" + ], + "question": "博物館の入場券にかかったお金が一番多い観光者のID、名前と会員レベル", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 4, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT t2.Museum_ID , t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t2.Museum_ID", + ",", + "t1.name", + "FROM", + "museum", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.Museum_ID", + "=", + "t2.Museum_ID", + "GROUP", + "BY", + "t2.Museum_ID", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "museum_id", + ",", + "t1", + ".", + "name", + "from", + "museum", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "museum_id", + "=", + "t2", + ".", + "museum_id", + "group", + "by", + "t2", + ".", + "museum_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "観光回数が一番多い博物館のIDと名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)", + "query_toks": [ + "SELECT", + "name", + "FROM", + "museum", + "WHERE", + "Museum_ID", + "NOT", + "IN", + "(", + "SELECT", + "museum_id", + "FROM", + "visit", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "museum", + "where", + "museum_id", + "not", + "in", + "(", + "select", + "museum_id", + "from", + "visit", + ")" + ], + "question": "観光者がいない博物館の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1", + "query_toks": [ + "SELECT", + "t1.name", + ",", + "t1.age", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "ORDER", + "BY", + "t2.num_of_ticket", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "age", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "order", + "by", + "t2", + ".", + "num_of_ticket", + "desc", + "limit", + "value" + ], + "question": "一時に買ったチケットが1番多い観光者の名前と年齢", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit", + "query_toks": [ + "SELECT", + "avg", + "(", + "num_of_ticket", + ")", + ",", + "max", + "(", + "num_of_ticket", + ")", + "FROM", + "visit" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "num_of_ticket", + ")", + ",", + "max", + "(", + "num_of_ticket", + ")", + "from", + "visit" + ], + "question": "全ての観光者の買ったチケットの平均値と最高値", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1", + "query_toks": [ + "SELECT", + "sum", + "(", + "t2.Total_spent", + ")", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "WHERE", + "t1.Level_of_membership", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "t2", + ".", + "total_spent", + ")", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "where", + "t1", + ".", + "level_of_membership", + "=", + "value" + ], + "question": "会員レベルは1の観光客の総入場料", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + 1, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011", + "query_toks": [ + "SELECT", + "t1.name", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "JOIN", + "museum", + "AS", + "t3", + "ON", + "t3.Museum_ID", + "=", + "t2.Museum_ID", + "WHERE", + "t3.open_year", + "<", + "2009", + "INTERSECT", + "SELECT", + "t1.name", + "FROM", + "visitor", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.id", + "=", + "t2.visitor_id", + "JOIN", + "museum", + "AS", + "t3", + "ON", + "t3.Museum_ID", + "=", + "t2.Museum_ID", + "WHERE", + "t3.open_year", + ">", + "2011" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "join", + "museum", + "as", + "t3", + "on", + "t3", + ".", + "museum_id", + "=", + "t2", + ".", + "museum_id", + "where", + "t3", + ".", + "open_year", + "<", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "visitor", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "visitor_id", + "join", + "museum", + "as", + "t3", + "on", + "t3", + ".", + "museum_id", + "=", + "t2", + ".", + "museum_id", + "where", + "t3", + ".", + "open_year", + ">", + "value" + ], + "question": "2009年の前に開かれた博物館と2010年の後に開かれた博物館を共に訪れた観光者の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2009, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2011, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "visitor", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "t2.visitor_id", + "FROM", + "museum", + "AS", + "t1", + "JOIN", + "visit", + "AS", + "t2", + "ON", + "t1.Museum_ID", + "=", + "t2.Museum_ID", + "WHERE", + "t1.open_year", + ">", + "2010", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "visitor", + "where", + "id", + "not", + "in", + "(", + "select", + "t2", + ".", + "visitor_id", + "from", + "museum", + "as", + "t1", + "join", + "visit", + "as", + "t2", + "on", + "t1", + ".", + "museum_id", + "=", + "t2", + ".", + "museum_id", + "where", + "t1", + ".", + "open_year", + ">", + "value", + ")" + ], + "question": "2010年の後に開かれた博物館を訪れない観光者の人数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 9, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2010, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "museum_visit", + "query": "SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "museum", + "WHERE", + "open_year", + ">", + "2013", + "OR", + "open_year", + "<", + "2008" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "museum", + "where", + "open_year", + ">", + "value", + "or", + "open_year", + "<", + "value" + ], + "question": "2013年の後あるいは2008年の前に開かれた博物館の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2013, + null + ], + "or", + [ + false, + 4, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + 2008, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) FROM players", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "players" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "players" + ], + "question": "プレイヤーの総人数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) FROM players", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "players" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "players" + ], + "question": "プレイヤーの総人数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) FROM matches", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "matches" + ], + "question": "試合の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) FROM matches", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "matches" + ], + "question": "試合の数を数える", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'", + "query_toks": [ + "SELECT", + "first_name", + ",", + "birth_date", + "FROM", + "players", + "WHERE", + "country_code", + "=", + "'USA", + "'" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "birth_date", + "from", + "players", + "where", + "country_code", + "=", + "value" + ], + "question": " USAを含む国の全てのプレイヤーのファーストネームと生年月日", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'", + "query_toks": [ + "SELECT", + "first_name", + ",", + "birth_date", + "FROM", + "players", + "WHERE", + "country_code", + "=", + "'USA", + "'" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "birth_date", + "from", + "players", + "where", + "country_code", + "=", + "value" + ], + "question": "USAのプレイヤーのファーストネームと生年月日", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(loser_age) , avg(winner_age) FROM matches", + "query_toks": [ + "SELECT", + "avg", + "(", + "loser_age", + ")", + ",", + "avg", + "(", + "winner_age", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "loser_age", + ")", + ",", + "avg", + "(", + "winner_age", + ")", + "from", + "matches" + ], + "question": "全ての試合のルーサーとウィンナーの平均年齢", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(loser_age) , avg(winner_age) FROM matches", + "query_toks": [ + "SELECT", + "avg", + "(", + "loser_age", + ")", + ",", + "avg", + "(", + "winner_age", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "loser_age", + ")", + ",", + "avg", + "(", + "winner_age", + ")", + "from", + "matches" + ], + "question": "全ての試合のルーサーとウィンナーの平均年齢", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(winner_rank) FROM matches", + "query_toks": [ + "SELECT", + "avg", + "(", + "winner_rank", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "winner_rank", + ")", + "from", + "matches" + ], + "question": "すべての試合のウィンナーの平均ランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(winner_rank) FROM matches", + "query_toks": [ + "SELECT", + "avg", + "(", + "winner_rank", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "winner_rank", + ")", + "from", + "matches" + ], + "question": "すべての試合のウィンナーの平均ランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT min(loser_rank) FROM matches", + "query_toks": [ + "SELECT", + "min", + "(", + "loser_rank", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "loser_rank", + ")", + "from", + "matches" + ], + "question": "すべての試合のルーサーの最高ランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT min(loser_rank) FROM matches", + "query_toks": [ + "SELECT", + "min", + "(", + "loser_rank", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "loser_rank", + ")", + "from", + "matches" + ], + "question": "すべての試合のルーサーの最高ランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT country_code) FROM players", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "country_code", + ")", + "FROM", + "players" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "country_code", + ")", + "from", + "players" + ], + "question": "全てのプレイヤーの国のコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 6, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT country_code) FROM players", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "country_code", + ")", + "FROM", + "players" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "country_code", + ")", + "from", + "players" + ], + "question": "全てのプレイヤーの国の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 6, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT loser_name) FROM matches", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "loser_name", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "loser_name", + ")", + "from", + "matches" + ], + "question": "ルーサーの異なる名前の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 15, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT loser_name) FROM matches", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "loser_name", + ")", + "FROM", + "matches" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "loser_name", + ")", + "from", + "matches" + ], + "question": "ルーサーの異なる名前の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 15, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", + "query_toks": [ + "SELECT", + "tourney_name", + "FROM", + "matches", + "GROUP", + "BY", + "tourney_name", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "tourney_name", + "from", + "matches", + "group", + "by", + "tourney_name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "試合が10回以上の勝抜きの名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 27, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 27, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 10, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", + "query_toks": [ + "SELECT", + "tourney_name", + "FROM", + "matches", + "GROUP", + "BY", + "tourney_name", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "tourney_name", + "from", + "matches", + "group", + "by", + "tourney_name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "10回以上の試合がある試合の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 27, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 27, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 10, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", + "query_toks": [ + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2013", + "INTERSECT", + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2016" + ], + "query_toks_no_value": [ + "select", + "winner_name", + "from", + "matches", + "where", + "year", + "=", + "value", + "intersect", + "select", + "winner_name", + "from", + "matches", + "where", + "year", + "=", + "value" + ], + "question": "2013年と2016年でやったすべてのウィンナーの名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2013, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2016, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", + "query_toks": [ + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2013", + "INTERSECT", + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2016" + ], + "query_toks_no_value": [ + "select", + "winner_name", + "from", + "matches", + "where", + "year", + "=", + "value", + "intersect", + "select", + "winner_name", + "from", + "matches", + "where", + "year", + "=", + "value" + ], + "question": "2013年と2016年で勝ったすべてのウィンナーの名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2013, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2016, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2013", + "OR", + "YEAR", + "=", + "2016" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "matches", + "where", + "year", + "=", + "value", + "or", + "year", + "=", + "value" + ], + "question": "2013年あるいは2016年の全ての試合の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2013, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2016, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "matches", + "WHERE", + "YEAR", + "=", + "2013", + "OR", + "YEAR", + "=", + "2016" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "matches", + "where", + "year", + "=", + "value", + "or", + "year", + "=", + "value" + ], + "question": "2013年あるいは2016年の全ての試合の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2013, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + 2016, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'", + "query_toks": [ + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "WHERE", + "T2.tourney_name", + "=", + "'WTA", + "Championships", + "'", + "INTERSECT", + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "WHERE", + "T2.tourney_name", + "=", + "'Australian", + "Open", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "where", + "t2", + ".", + "tourney_name", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "where", + "t2", + ".", + "tourney_name", + "=", + "value" + ], + "question": "WTAとオーストリアオープンで勝ったプレイヤーの国家コードとファーストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"WTA Championships\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"Australian Open\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'", + "query_toks": [ + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "WHERE", + "T2.tourney_name", + "=", + "'WTA", + "Championships", + "'", + "INTERSECT", + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "WHERE", + "T2.tourney_name", + "=", + "'Australian", + "Open", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "where", + "t2", + ".", + "tourney_name", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "where", + "t2", + ".", + "tourney_name", + "=", + "value" + ], + "question": "WTAとオーストリアオープンで勝ったプレイヤーの国家コードとファーストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"WTA Championships\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"Australian Open\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "country_code", + "FROM", + "players", + "ORDER", + "BY", + "birth_date", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "country_code", + "from", + "players", + "order", + "by", + "birth_date", + "limit", + "value" + ], + "question": "一番年が大きいプレイヤーのファーストネームと国家コード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "country_code", + "FROM", + "players", + "ORDER", + "BY", + "birth_date", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "country_code", + "from", + "players", + "order", + "by", + "birth_date", + "limit", + "value" + ], + "question": "一番年が大きいプレイヤーのファーストネームと国家コード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , last_name FROM players ORDER BY birth_date", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + "FROM", + "players", + "ORDER", + "BY", + "birth_date" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + "from", + "players", + "order", + "by", + "birth_date" + ], + "question": "年の順番で全てのプレイヤーのファーストネームとラストネームを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , last_name FROM players ORDER BY birth_date", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + "FROM", + "players", + "ORDER", + "BY", + "birth_date" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + "from", + "players", + "order", + "by", + "birth_date" + ], + "question": "年の順番で全てのプレイヤーのフールネームを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + "FROM", + "players", + "WHERE", + "hand", + "=", + "'L", + "'", + "ORDER", + "BY", + "birth_date" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + "from", + "players", + "where", + "hand", + "=", + "value", + "order", + "by", + "birth_date" + ], + "question": "年齢順に全ての左利きのプレイヤーのファーストネームとラストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"L\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + "FROM", + "players", + "WHERE", + "hand", + "=", + "'L", + "'", + "ORDER", + "BY", + "birth_date" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + "from", + "players", + "where", + "hand", + "=", + "value", + "order", + "by", + "birth_date" + ], + "question": "全ての左利きのプレイヤーのフールネームを誕生日順に並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"L\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "ORDER", + "BY", + "T2.tours", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "order", + "by", + "t2", + ".", + "tours", + "desc", + "limit", + "value" + ], + "question": "トーアが一番多いプレイヤーのファーストネームと国家コード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.country_code", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "ORDER", + "BY", + "T2.tours", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "order", + "by", + "t2", + ".", + "tours", + "desc", + "limit", + "value" + ], + "question": "トーアの最も多いプレイヤーのファーストネームと国家コード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "YEAR", + "FROM", + "matches", + "GROUP", + "BY", + "YEAR", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "year", + "from", + "matches", + "group", + "by", + "year", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "試合が一番多い年", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 38, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "YEAR", + "FROM", + "matches", + "GROUP", + "BY", + "YEAR", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "year", + "from", + "matches", + "group", + "by", + "year", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "試合が最も多い年", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 38, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + ",", + "winner_rank_points", + "FROM", + "matches", + "GROUP", + "BY", + "winner_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + ",", + "winner_rank_points", + "from", + "matches", + "group", + "by", + "winner_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "勝った回数が一番多いウィンナーの名前とランクの得点", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 34, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + ",", + "winner_rank_points", + "FROM", + "matches", + "GROUP", + "BY", + "winner_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + ",", + "winner_rank_points", + "from", + "matches", + "group", + "by", + "winner_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの試合に勝った勝者の名前は何ですか、そしてこのプレーヤーはいくつのランクポイントを持っていますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 34, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "tourney_name", + "=", + "'Australian", + "Open", + "'", + "ORDER", + "BY", + "winner_rank_points", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + "from", + "matches", + "where", + "tourney_name", + "=", + "value", + "order", + "by", + "winner_rank_points", + "desc", + "limit", + "value" + ], + "question": "最高ランクのポイントを持ち、オープントーナメントに参加した勝者の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"Australian Open\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + "FROM", + "matches", + "WHERE", + "tourney_name", + "=", + "'Australian", + "Open", + "'", + "ORDER", + "BY", + "winner_rank_points", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + "from", + "matches", + "where", + "tourney_name", + "=", + "value", + "order", + "by", + "winner_rank_points", + "desc", + "limit", + "value" + ], + "question": "オープントーナメントに参加したランクポイントが最も高い勝者の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"Australian Open\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + ",", + "loser_name", + "FROM", + "matches", + "ORDER", + "BY", + "minutes", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + ",", + "loser_name", + "from", + "matches", + "order", + "by", + "minutes", + "desc", + "limit", + "value" + ], + "question": "試合で最も多くの分数でプレーした敗者と勝者の名前。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1", + "query_toks": [ + "SELECT", + "winner_name", + ",", + "loser_name", + "FROM", + "matches", + "ORDER", + "BY", + "minutes", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "winner_name", + ",", + "loser_name", + "from", + "matches", + "order", + "by", + "minutes", + "desc", + "limit", + "value" + ], + "question": "最長の試合でプレーした勝者と敗者の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "query_toks": [ + "SELECT", + "avg", + "(", + "ranking", + ")", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "GROUP", + "BY", + "T1.first_name" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "ranking", + ")", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "group", + "by", + "t1", + ".", + "first_name" + ], + "question": "各プレーヤーとそのファーストネームの平均ランキング", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "query_toks": [ + "SELECT", + "avg", + "(", + "ranking", + ")", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "GROUP", + "BY", + "T1.first_name" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "ranking", + ")", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "group", + "by", + "t1", + ".", + "first_name" + ], + "question": "すべてのプレーヤーのファーストネームとその平均ランキング", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "query_toks": [ + "SELECT", + "sum", + "(", + "ranking_points", + ")", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "GROUP", + "BY", + "T1.first_name" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "ranking_points", + ")", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "group", + "by", + "t1", + ".", + "first_name" + ], + "question": "各プレイヤーの合計ランキングポイントとそのファーストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", + "query_toks": [ + "SELECT", + "sum", + "(", + "ranking_points", + ")", + ",", + "T1.first_name", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "rankings", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.player_id", + "GROUP", + "BY", + "T1.first_name" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "ranking_points", + ")", + ",", + "t1", + ".", + "first_name", + "from", + "players", + "as", + "t1", + "join", + "rankings", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "player_id", + "group", + "by", + "t1", + ".", + "first_name" + ], + "question": "すべてのプレイヤーのファーストネームとその合計ランキングポイント", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 41, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , country_code FROM players GROUP BY country_code", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "country_code", + "from", + "players", + "group", + "by", + "country_code" + ], + "question": "各国のプレーヤーの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , country_code FROM players GROUP BY country_code", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "country_code", + "from", + "players", + "group", + "by", + "country_code" + ], + "question": "各国のプレーヤーの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "country_code", + "from", + "players", + "group", + "by", + "country_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "プレーヤーの数が最も多い国のコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "country_code", + "from", + "players", + "group", + "by", + "country_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "プレーヤーの数が最も多い国のコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", + "query_toks": [ + "SELECT", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "50" + ], + "query_toks_no_value": [ + "select", + "country_code", + "from", + "players", + "group", + "by", + "country_code", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "50人以上のプレーヤーがいる国のコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 50, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", + "query_toks": [ + "SELECT", + "country_code", + "FROM", + "players", + "GROUP", + "BY", + "country_code", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "50" + ], + "query_toks_no_value": [ + "select", + "country_code", + "from", + "players", + "group", + "by", + "country_code", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "50人以上のプレーヤーがいる国のコード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 50, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date", + "query_toks": [ + "SELECT", + "sum", + "(", + "tours", + ")", + ",", + "ranking_date", + "FROM", + "rankings", + "GROUP", + "BY", + "ranking_date" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "tours", + ")", + ",", + "ranking_date", + "from", + "rankings", + "group", + "by", + "ranking_date" + ], + "question": "各ランキング日のツアーの総数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 39, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 39, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date", + "query_toks": [ + "SELECT", + "sum", + "(", + "tours", + ")", + ",", + "ranking_date", + "FROM", + "rankings", + "GROUP", + "BY", + "ranking_date" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "tours", + ")", + ",", + "ranking_date", + "from", + "rankings", + "group", + "by", + "ranking_date" + ], + "question": "各ランキング日のそれぞれのツアーの総数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 39, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 39, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "YEAR", + "FROM", + "matches", + "GROUP", + "BY", + "YEAR" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "year", + "from", + "matches", + "group", + "by", + "year" + ], + "question": "毎年起こった試合の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 38, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "YEAR", + "FROM", + "matches", + "GROUP", + "BY", + "YEAR" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "year", + "from", + "matches", + "group", + "by", + "year" + ], + "question": "毎年の試合の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 38, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3", + "query_toks": [ + "SELECT", + "DISTINCT", + "winner_name", + ",", + "winner_rank", + "FROM", + "matches", + "ORDER", + "BY", + "winner_age", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "distinct", + "winner_name", + ",", + "winner_rank", + "from", + "matches", + "order", + "by", + "winner_age", + "limit", + "value" + ], + "question": "すべての試合で最年少の3人の勝者の名前とランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3", + "query_toks": [ + "SELECT", + "DISTINCT", + "winner_name", + ",", + "winner_rank", + "FROM", + "matches", + "ORDER", + "BY", + "winner_age", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "distinct", + "winner_name", + ",", + "winner_rank", + "from", + "matches", + "order", + "by", + "winner_age", + "limit", + "value" + ], + "question": "すべての試合で最年少の3人の勝者の名前とランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "winner_name", + ")", + "FROM", + "matches", + "WHERE", + "tourney_name", + "=", + "'WTA", + "Championships", + "'", + "AND", + "winner_hand", + "=", + "'L", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "winner_name", + ")", + "from", + "matches", + "where", + "tourney_name", + "=", + "value", + "and", + "winner_hand", + "=", + "value" + ], + "question": "何人の異なる勝者が両方ともWTAチャンピオンシップに参加し、左利きだでしたか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 34, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"WTA Championships\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 30, + false + ], + null + ], + "\"L\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "winner_name", + ")", + "FROM", + "matches", + "WHERE", + "tourney_name", + "=", + "'WTA", + "Championships", + "'", + "AND", + "winner_hand", + "=", + "'L", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "winner_name", + ")", + "from", + "matches", + "where", + "tourney_name", + "=", + "value", + "and", + "winner_hand", + "=", + "value" + ], + "question": "WTAチャンピオンシップに参加した左利きの勝者の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 34, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 27, + false + ], + null + ], + "\"WTA Championships\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 30, + false + ], + null + ], + "\"L\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.country_code", + ",", + "T1.birth_date", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "ORDER", + "BY", + "T2.winner_rank_points", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "birth_date", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "order", + "by", + "t2", + ".", + "winner_rank_points", + "desc", + "limit", + "value" + ], + "question": "すべての試合で最高ランクのポイントを獲得した勝者のファーストネーム、国コード、生年月日", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.country_code", + ",", + "T1.birth_date", + "FROM", + "players", + "AS", + "T1", + "JOIN", + "matches", + "AS", + "T2", + "ON", + "T1.player_id", + "=", + "T2.winner_id", + "ORDER", + "BY", + "T2.winner_rank_points", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "country_code", + ",", + "t1", + ".", + "birth_date", + "from", + "players", + "as", + "t1", + "join", + "matches", + "as", + "t2", + "on", + "t1", + ".", + "player_id", + "=", + "t2", + ".", + "winner_id", + "order", + "by", + "t2", + ".", + "winner_rank_points", + "desc", + "limit", + "value" + ], + "question": "すべての試合で最高ランクのポイントを獲得した勝者のファーストネーム、国コード、生年月日", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 32, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , hand FROM players GROUP BY hand", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "hand", + "FROM", + "players", + "GROUP", + "BY", + "hand" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "hand", + "from", + "players", + "group", + "by", + "hand" + ], + "question": "各ハンドタイプのプレーヤーの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "wta_1", + "query": "SELECT count(*) , hand FROM players GROUP BY hand", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "hand", + "FROM", + "players", + "GROUP", + "BY", + "hand" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "hand", + "from", + "players", + "group", + "by", + "hand" + ], + "question": "各ハンドタイプには何人のプレーヤーがいますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "ship", + "WHERE", + "disposition_of_ship", + "=", + "'Captured", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "ship", + "where", + "disposition_of_ship", + "=", + "value" + ], + "question": "何隻の船が「捕獲」されたのですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + "\"Captured\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name , tonnage FROM ship ORDER BY name DESC", + "query_toks": [ + "SELECT", + "name", + ",", + "tonnage", + "FROM", + "ship", + "ORDER", + "BY", + "name", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "tonnage", + "from", + "ship", + "order", + "by", + "name", + "desc" + ], + "question": "名前とトン数をアルファベットの降順でリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name , date FROM battle", + "query_toks": [ + "SELECT", + "name", + ",", + "date", + "FROM", + "battle" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "date", + "from", + "battle" + ], + "question": "各バトルの名前、日付、結果", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT max(killed) , min(killed) FROM death", + "query_toks": [ + "SELECT", + "max", + "(", + "killed", + ")", + ",", + "min", + "(", + "killed", + ")", + "FROM", + "death" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "killed", + ")", + ",", + "min", + "(", + "killed", + ")", + "from", + "death" + ], + "question": "毎回発生する最大および最小の死亡者数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT avg(injured) FROM death", + "query_toks": [ + "SELECT", + "avg", + "(", + "injured", + ")", + "FROM", + "death" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "injured", + ")", + "from", + "death" + ], + "question": "毎回発生する負傷の平均数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT T1.killed , T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'", + "query_toks": [ + "SELECT", + "T1.killed", + ",", + "T1.injured", + "FROM", + "death", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "t2", + "ON", + "T1.caused_by_ship_id", + "=", + "T2.id", + "WHERE", + "T2.tonnage", + "=", + "'t", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "killed", + ",", + "t1", + ".", + "injured", + "from", + "death", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "caused_by_ship_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "tonnage", + "=", + "value" + ], + "question": "トン数「t」の船によって引き起こされる死傷者の状況", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"t\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'", + "query_toks": [ + "SELECT", + "name", + ",", + "RESULT", + "FROM", + "battle", + "WHERE", + "bulgarian_commander", + "!", + "=", + "'Boril", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "result", + "from", + "battle", + "where", + "bulgarian_commander", + "!", + "=", + "value" + ], + "question": "ブルガリアの司令官が「ボリル」ではない場合のバトルの名前と結果", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Boril\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT DISTINCT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.id", + ",", + "T1.name", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "WHERE", + "T2.ship_type", + "=", + "'Brig", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "id", + ",", + "t1", + ".", + "name", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "where", + "t2", + ".", + "ship_type", + "=", + "value" + ], + "question": "「ブリッグ」タイプの船を失ったバトルのさまざまなIDと名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Brig\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10", + "query_toks": [ + "SELECT", + "T1.id", + ",", + "T1.name", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "JOIN", + "death", + "AS", + "T3", + "ON", + "T2.id", + "=", + "T3.caused_by_ship_id", + "GROUP", + "BY", + "T1.id", + "HAVING", + "sum", + "(", + "T3.killed", + ")", + ">", + "10" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "id", + ",", + "t1", + ".", + "name", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "join", + "death", + "as", + "t3", + "on", + "t2", + ".", + "id", + "=", + "t3", + ".", + "caused_by_ship_id", + "group", + "by", + "t1", + ".", + "id", + "having", + "sum", + "(", + "t3", + ".", + "killed", + ")", + ">", + "value" + ], + "question": "合計10人以上が殺された戦いのIDと名前は何ですか。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 4, + 17, + false + ], + null + ], + 10, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT T2.id , T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.id", + ",", + "T2.name", + "FROM", + "death", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "t2", + "ON", + "T1.caused_by_ship_id", + "=", + "T2.id", + "GROUP", + "BY", + "T2.id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "id", + ",", + "t2", + ".", + "name", + "from", + "death", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "caused_by_ship_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t2", + ".", + "id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの負傷を引き起こした船のIDと名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'", + "query_toks": [ + "SELECT", + "name", + "FROM", + "battle", + "WHERE", + "bulgarian_commander", + "=", + "'Kaloyan", + "'", + "AND", + "latin_commander", + "=", + "'Baldwin", + "I", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "battle", + "where", + "bulgarian_commander", + "=", + "value", + "and", + "latin_commander", + "=", + "value" + ], + "question": "ブルガリアの司令官「カロヤン」とラテンの司令官「ボールドウィン1世」の間にある明確なバトル名は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Kaloyan\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Baldwin I\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT count(DISTINCT RESULT) FROM battle", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "RESULT", + ")", + "FROM", + "battle" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "result", + ")", + "from", + "battle" + ], + "question": "バトルの結果はいくつありますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 6, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage = '225' );", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "battle", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "lost_in_battle", + "FROM", + "ship", + "WHERE", + "tonnage", + "=", + "'225", + "'", + ")", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "battle", + "where", + "id", + "not", + "in", + "(", + "select", + "lost_in_battle", + "from", + "ship", + "where", + "tonnage", + "=", + "value", + ")" + ], + "question": "トン数「225」の船を失うことのなかったバトルはいくつありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"225\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'", + "query_toks": [ + "SELECT", + "T1.name", + ",", + "T1.date", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "WHERE", + "T2.name", + "=", + "'Lettice", + "'", + "INTERSECT", + "SELECT", + "T1.name", + ",", + "T1.date", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "WHERE", + "T2.name", + "=", + "'HMS", + "Atalanta", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "date", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "where", + "t2", + ".", + "name", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "date", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question": "「レタス」という名前の船と「HMSアトランタ」という名前の船を失った戦いの名前と日付", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Lettice\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"HMS Atalanta\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "battle_death", + "query": "SELECT name , RESULT , bulgarian_commander FROM battle EXCEPT SELECT T1.name , T1.result , T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'", + "query_toks": [ + "SELECT", + "name", + ",", + "RESULT", + ",", + "bulgarian_commander", + "FROM", + "battle", + "EXCEPT", + "SELECT", + "T1.name", + ",", + "T1.result", + ",", + "T1.bulgarian_commander", + "FROM", + "battle", + "AS", + "T1", + "JOIN", + "ship", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.lost_in_battle", + "WHERE", + "T2.location", + "=", + "'English", + "Channel", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "result", + ",", + "bulgarian_commander", + "from", + "battle", + "except", + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "result", + ",", + "t1", + ".", + "bulgarian_commander", + "from", + "battle", + "as", + "t1", + "join", + "ship", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "lost_in_battle", + "where", + "t2", + ".", + "location", + "=", + "value" + ], + "question": "「イギリス海峡」で船を失ったことがないバトルの名前、結果、ブルガリアの司令官を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + "\"English Channel\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "battle_death", + "query": "SELECT note FROM death WHERE note LIKE '%East%'", + "query_toks": [ + "SELECT", + "note", + "FROM", + "death", + "WHERE", + "note", + "LIKE", + "'", + "%", + "East", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "note", + "from", + "death", + "where", + "note", + "like", + "value" + ], + "question": "「East」を持つ死亡イベントの備考", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 16, + false + ], + null + ], + "\"%East%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT line_1 , line_2 FROM addresses", + "query_toks": [ + "SELECT", + "line_1", + ",", + "line_2", + "FROM", + "addresses" + ], + "query_toks_no_value": [ + "select", + "line_1", + ",", + "line_2", + "from", + "addresses" + ], + "question": "ライン1とライン2を含むすべてのアドレス", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT line_1 , line_2 FROM addresses", + "query_toks": [ + "SELECT", + "line_1", + ",", + "line_2", + "FROM", + "addresses" + ], + "query_toks_no_value": [ + "select", + "line_1", + ",", + "line_2", + "from", + "addresses" + ], + "question": "すべての住所のライン1とライン2は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Courses", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Courses" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "courses" + ], + "question": "課程の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Courses", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Courses" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "courses" + ], + "question": "課程はいくつありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT course_description FROM Courses WHERE course_name = 'math'", + "query_toks": [ + "SELECT", + "course_description", + "FROM", + "Courses", + "WHERE", + "course_name", + "=", + "'math", + "'" + ], + "query_toks_no_value": [ + "select", + "course_description", + "from", + "courses", + "where", + "course_name", + "=", + "value" + ], + "question": "数学の課程はどのように説明されていますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"math\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT course_description FROM Courses WHERE course_name = 'math'", + "query_toks": [ + "SELECT", + "course_description", + "FROM", + "Courses", + "WHERE", + "course_name", + "=", + "'math", + "'" + ], + "query_toks_no_value": [ + "select", + "course_description", + "from", + "courses", + "where", + "course_name", + "=", + "value" + ], + "question": "すべての数学課程の説明は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"math\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", + "query_toks": [ + "SELECT", + "zip_postcode", + "FROM", + "Addresses", + "WHERE", + "city", + "=", + "'Port", + "Chelsea", + "'" + ], + "query_toks_no_value": [ + "select", + "zip_postcode", + "from", + "addresses", + "where", + "city", + "=", + "value" + ], + "question": "ポートチェルシー市の住所の郵便番号は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Port Chelsea\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", + "query_toks": [ + "SELECT", + "zip_postcode", + "FROM", + "Addresses", + "WHERE", + "city", + "=", + "'Port", + "Chelsea", + "'" + ], + "query_toks_no_value": [ + "select", + "zip_postcode", + "from", + "addresses", + "where", + "city", + "=", + "value" + ], + "question": "ポートチェルシーの郵便番号は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"Port Chelsea\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.department_name , T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.department_name", + ",", + "T1.department_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Departments", + "AS", + "T2", + "ON", + "T1.department_id", + "=", + "T2.department_id", + "GROUP", + "BY", + "T1.department_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "department_name", + ",", + "t1", + ".", + "department_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "departments", + "as", + "t2", + "on", + "t1", + ".", + "department_id", + "=", + "t2", + ".", + "department_id", + "group", + "by", + "t1", + ".", + "department_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの部門が最も多くの学位を提供していますか? 部門名とIDを一覧表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "select t2.department_name , t1.department_id from degree_programs as t1 join departments as t2 on t1.department_id = t2.department_id group by t1.department_id order by count(*) desc limit 1", + "query_toks": [ + "select", + "t2.department_name", + ",", + "t1.department_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "departments", + "as", + "t2", + "on", + "t1.department_id", + "=", + "t2.department_id", + "group", + "by", + "t1.department_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "department_name", + ",", + "t1", + ".", + "department_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "departments", + "as", + "t2", + "on", + "t1", + ".", + "department_id", + "=", + "t2", + ".", + "department_id", + "group", + "by", + "t1", + ".", + "department_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "学位数が最も多い部門の名前とID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + [ + 0, + 14, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT department_id) FROM Degree_Programs", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "department_id", + ")", + "FROM", + "Degree_Programs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "department_id", + ")", + "from", + "degree_programs" + ], + "question": "学位を提供する部門の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 19, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT department_id) FROM Degree_Programs", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "department_id", + ")", + "FROM", + "Degree_Programs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "department_id", + ")", + "from", + "degree_programs" + ], + "question": "学位を提供する部門はいくつありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 19, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "degree_summary_name", + ")", + "FROM", + "Degree_Programs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "degree_summary_name", + ")", + "from", + "degree_programs" + ], + "question": "異なる学位の数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 20, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "degree_summary_name", + ")", + "FROM", + "Degree_Programs" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "degree_summary_name", + ")", + "from", + "degree_programs" + ], + "question": "いくつの異なる学位が提供されていますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 20, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Departments", + "AS", + "T1", + "JOIN", + "Degree_Programs", + "AS", + "T2", + "ON", + "T1.department_id", + "=", + "T2.department_id", + "WHERE", + "T1.department_name", + "=", + "'engineer", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "departments", + "as", + "t1", + "join", + "degree_programs", + "as", + "t2", + "on", + "t1", + ".", + "department_id", + "=", + "t2", + ".", + "department_id", + "where", + "t1", + ".", + "department_name", + "=", + "value" + ], + "question": "エンジニアリング部門は いくつの学位を提供していますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 19, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"engineer\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Departments", + "AS", + "T1", + "JOIN", + "Degree_Programs", + "AS", + "T2", + "ON", + "T1.department_id", + "=", + "T2.department_id", + "WHERE", + "T1.department_name", + "=", + "'engineer", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "departments", + "as", + "t1", + "join", + "degree_programs", + "as", + "t2", + "on", + "t1", + ".", + "department_id", + "=", + "t2", + ".", + "department_id", + "where", + "t1", + ".", + "department_name", + "=", + "value" + ], + "question": "エンジニアリング部門にはいくつの学位がありますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + [ + 0, + 19, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"engineer\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_name , section_description FROM Sections", + "query_toks": [ + "SELECT", + "section_name", + ",", + "section_description", + "FROM", + "Sections" + ], + "query_toks_no_value": [ + "select", + "section_name", + ",", + "section_description", + "from", + "sections" + ], + "question": "すべてのセクションの名前と説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_name , section_description FROM Sections", + "query_toks": [ + "SELECT", + "section_name", + ",", + "section_description", + "FROM", + "Sections" + ], + "query_toks_no_value": [ + "select", + "section_name", + ",", + "section_description", + "from", + "sections" + ], + "question": "すべてのセクションの名前と説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2", + "query_toks": [ + "SELECT", + "T1.course_name", + ",", + "T1.course_id", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Sections", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id", + "GROUP", + "BY", + "T1.course_id", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "course_name", + ",", + "t1", + ".", + "course_id", + "from", + "courses", + "as", + "t1", + "join", + "sections", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "group", + "by", + "t1", + ".", + "course_id", + "having", + "count", + "(", + "*", + ")", + "<", + "=", + "value" + ], + "question": "最大2つのセクションを持つ課程の名前とID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 24, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 6, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2", + "query_toks": [ + "SELECT", + "T1.course_name", + ",", + "T1.course_id", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Sections", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id", + "GROUP", + "BY", + "T1.course_id", + "HAVING", + "count", + "(", + "*", + ")", + "<", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "course_name", + ",", + "t1", + ".", + "course_id", + "from", + "courses", + "as", + "t1", + "join", + "sections", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "group", + "by", + "t1", + ".", + "course_id", + "having", + "count", + "(", + "*", + ")", + "<", + "=", + "value" + ], + "question": "セクションが2つ未満のすべての課程の名前とIDは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 24, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 6, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_name FROM Sections ORDER BY section_name DESC", + "query_toks": [ + "SELECT", + "section_name", + "FROM", + "Sections", + "ORDER", + "BY", + "section_name", + "DESC" + ], + "query_toks_no_value": [ + "select", + "section_name", + "from", + "sections", + "order", + "by", + "section_name", + "desc" + ], + "question": "アルファベットの逆順でセクションの名前を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_name FROM Sections ORDER BY section_name DESC", + "query_toks": [ + "SELECT", + "section_name", + "FROM", + "Sections", + "ORDER", + "BY", + "section_name", + "DESC" + ], + "query_toks_no_value": [ + "select", + "section_name", + "from", + "sections", + "order", + "by", + "section_name", + "desc" + ], + "question": "アルファベットの逆順でセクションの名前を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.semester_name", + ",", + "T1.semester_id", + "FROM", + "Semesters", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.semester_id", + "=", + "T2.semester_id", + "GROUP", + "BY", + "T1.semester_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "semester_name", + ",", + "t1", + ".", + "semester_id", + "from", + "semesters", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "semester_id", + "=", + "t2", + ".", + "semester_id", + "group", + "by", + "t1", + ".", + "semester_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "ほとんどの学生が登録した学期は何ですか? 名前とIDを表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 28, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 28, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.semester_name", + ",", + "T1.semester_id", + "FROM", + "Semesters", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.semester_id", + "=", + "T2.semester_id", + "GROUP", + "BY", + "T1.semester_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "semester_name", + ",", + "t1", + ".", + "semester_id", + "from", + "semesters", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "semester_id", + "=", + "t2", + ".", + "semester_id", + "group", + "by", + "t1", + ".", + "semester_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "各学期について、最も多くの学生が登録されている学期の名前とIDは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 28, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 28, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 28, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", + "query_toks": [ + "SELECT", + "department_description", + "FROM", + "Departments", + "WHERE", + "department_name", + "LIKE", + "'", + "%", + "computer", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "department_description", + "from", + "departments", + "where", + "department_name", + "like", + "value" + ], + "question": "コンピュータという文字が名前に含まれている部門の説明は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"%computer%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", + "query_toks": [ + "SELECT", + "department_description", + "FROM", + "Departments", + "WHERE", + "department_name", + "LIKE", + "'", + "%", + "computer", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "department_description", + "from", + "departments", + "where", + "department_name", + "like", + "value" + ], + "question": "名前にコンピュータという単語が付いている人の部門の説明は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"%computer%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + ",", + "T1.student_id", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + ",", + "t1", + ".", + "student_id", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + "=", + "value" + ], + "question": "1学期に2学位プログラムに登録しているのは誰ですか? ファーストネーム、ミドルネーム、ラストネーム、およびIDをリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 32, + false + ] + ], + "having": [ + [ + false, + 2, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + ",", + "T1.student_id", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + ",", + "t1", + ".", + "student_id", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + "=", + "value" + ], + "question": "1学期に2学位プログラムに登録したすべての学生のファーストネーム、ミドルネームとラストネームとIDは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 32, + false + ] + ], + "having": [ + [ + false, + 2, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "JOIN", + "Degree_Programs", + "AS", + "T3", + "ON", + "T2.degree_program_id", + "=", + "T3.degree_program_id", + "WHERE", + "T3.degree_summary_name", + "=", + "'Bachelor", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "join", + "degree_programs", + "as", + "t3", + "on", + "t2", + ".", + "degree_program_id", + "=", + "t3", + ".", + "degree_program_id", + "where", + "t3", + ".", + "degree_summary_name", + "=", + "value" + ], + "question": "学位プログラムに登録しているすべての人のファーストネーム、ミドルネームとラストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 45, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Bachelor\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "JOIN", + "Degree_Programs", + "AS", + "T3", + "ON", + "T2.degree_program_id", + "=", + "T3.degree_program_id", + "WHERE", + "T3.degree_summary_name", + "=", + "'Bachelor", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "join", + "degree_programs", + "as", + "t3", + "on", + "t2", + ".", + "degree_program_id", + "=", + "t3", + ".", + "degree_program_id", + "where", + "t3", + ".", + "degree_summary_name", + "=", + "value" + ], + "question": "学位プログラムに登録しているすべての人のファーストネーム、ミドルネームとラストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 45, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Bachelor\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.degree_summary_name", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "GROUP", + "BY", + "T1.degree_summary_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "degree_summary_name", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "group", + "by", + "t1", + ".", + "degree_summary_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの学生が在籍しているプログラムの種類", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 20, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.degree_summary_name", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "GROUP", + "BY", + "T1.degree_summary_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "degree_summary_name", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "group", + "by", + "t1", + ".", + "degree_summary_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "学生数が最も多い学位概要名は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 20, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.degree_program_id", + ",", + "T1.degree_summary_name", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "GROUP", + "BY", + "T1.degree_program_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "degree_program_id", + ",", + "t1", + ".", + "degree_summary_name", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "group", + "by", + "t1", + ".", + "degree_program_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの学生が登録しているプログラム。IDと概要をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.degree_program_id", + ",", + "T1.degree_summary_name", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "GROUP", + "BY", + "T1.degree_program_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "degree_program_id", + ",", + "t1", + ".", + "degree_summary_name", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "group", + "by", + "t1", + ".", + "degree_program_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの学生が登録しているプログラムIDと学位の概要は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 18, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.student_id", + ",", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + ",", + "count", + "(", + "*", + ")", + ",", + "T1.student_id", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "student_id", + ",", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + ",", + "count", + "(", + "*", + ")", + ",", + "t1", + ".", + "student_id", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "プログラムに最も多く登録した学生のファーストネーム、ミドルネームとラストネーム、そのID、登録数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 32, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.student_id", + ",", + "T1.first_name", + ",", + "T1.middle_name", + ",", + "T1.last_name", + ",", + "count", + "(", + "*", + ")", + ",", + "T1.student_id", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.student_id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "student_id", + ",", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "middle_name", + ",", + "t1", + ".", + "last_name", + ",", + "count", + "(", + "*", + ")", + ",", + "t1", + ".", + "student_id", + "from", + "students", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "student_id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "プログラムに最も多く登録した学生のファーストネーム、ミドルネームとラストネーム、そのID、登録数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 32, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )", + "query_toks": [ + "SELECT", + "semester_name", + "FROM", + "Semesters", + "WHERE", + "semester_id", + "NOT", + "IN", + "(", + "SELECT", + "semester_id", + "FROM", + "Student_Enrolment", + ")" + ], + "query_toks_no_value": [ + "select", + "semester_name", + "from", + "semesters", + "where", + "semester_id", + "not", + "in", + "(", + "select", + "semester_id", + "from", + "student_enrolment", + ")" + ], + "question": "学生が在籍していない学期の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 28, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )", + "query_toks": [ + "SELECT", + "semester_name", + "FROM", + "Semesters", + "WHERE", + "semester_id", + "NOT", + "IN", + "(", + "SELECT", + "semester_id", + "FROM", + "Student_Enrolment", + ")" + ], + "query_toks_no_value": [ + "select", + "semester_name", + "from", + "semesters", + "where", + "semester_id", + "not", + "in", + "(", + "select", + "semester_id", + "from", + "student_enrolment", + ")" + ], + "question": "学生が在籍していない学期の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 28, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.course_name", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Student_Enrolment_Courses", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "course_name", + "from", + "courses", + "as", + "t1", + "join", + "student_enrolment_courses", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id" + ], + "question": "学生が登録しているすべての課程の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 8 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 50, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.course_name", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Student_Enrolment_Courses", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "course_name", + "from", + "courses", + "as", + "t1", + "join", + "student_enrolment_courses", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id" + ], + "question": "一部の学生が登録しているすべての課程の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 8 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 50, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.course_name", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Student_Enrolment_Courses", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id", + "GROUP", + "BY", + "T1.course_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "course_name", + "from", + "courses", + "as", + "t1", + "join", + "student_enrolment_courses", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "group", + "by", + "t1", + ".", + "course_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "登録学生が一番多い課程の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 8 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 50, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.course_name", + "FROM", + "Courses", + "AS", + "T1", + "JOIN", + "Student_Enrolment_Courses", + "AS", + "T2", + "ON", + "T1.course_id", + "=", + "T2.course_id", + "GROUP", + "BY", + "T1.course_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "course_name", + "from", + "courses", + "as", + "t1", + "join", + "student_enrolment_courses", + "as", + "t2", + "on", + "t1", + ".", + "course_id", + "=", + "t2", + ".", + "course_id", + "group", + "by", + "t1", + ".", + "course_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの学生が在籍している課程の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 8 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 50, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", + "query_toks": [ + "SELECT", + "T1.last_name", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Addresses", + "AS", + "T2", + "ON", + "T1.current_address_id", + "=", + "T2.address_id", + "WHERE", + "T2.state_province_county", + "=", + "'NorthCarolina", + "'", + "EXCEPT", + "SELECT", + "DISTINCT", + "T3.last_name", + "FROM", + "Students", + "AS", + "T3", + "JOIN", + "Student_Enrolment", + "AS", + "T4", + "ON", + "T3.student_id", + "=", + "T4.student_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "last_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1", + ".", + "current_address_id", + "=", + "t2", + ".", + "address_id", + "where", + "t2", + ".", + "state_province_county", + "=", + "value", + "except", + "select", + "distinct", + "t3", + ".", + "last_name", + "from", + "students", + "as", + "t3", + "join", + "student_enrolment", + "as", + "t4", + "on", + "t3", + ".", + "student_id", + "=", + "t4", + ".", + "student_id" + ], + "question": "ノースカロライナ州に住んで、学位プログラムに登録していない学生のラストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"NorthCarolina\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", + "query_toks": [ + "SELECT", + "T1.last_name", + "FROM", + "Students", + "AS", + "T1", + "JOIN", + "Addresses", + "AS", + "T2", + "ON", + "T1.current_address_id", + "=", + "T2.address_id", + "WHERE", + "T2.state_province_county", + "=", + "'NorthCarolina", + "'", + "EXCEPT", + "SELECT", + "DISTINCT", + "T3.last_name", + "FROM", + "Students", + "AS", + "T3", + "JOIN", + "Student_Enrolment", + "AS", + "T4", + "ON", + "T3.student_id", + "=", + "T4.student_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "last_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1", + ".", + "current_address_id", + "=", + "t2", + ".", + "address_id", + "where", + "t2", + ".", + "state_province_county", + "=", + "value", + "except", + "select", + "distinct", + "t3", + ".", + "last_name", + "from", + "students", + "as", + "t3", + "join", + "student_enrolment", + "as", + "t4", + "on", + "t3", + ".", + "student_id", + "=", + "t4", + ".", + "student_id" + ], + "question": "ノースカロライナ州に住んで、学位プログラムに登録していない学生のラストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"NorthCarolina\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 32, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.transcript_date", + ",", + "T1.transcript_id", + "FROM", + "Transcript_Contents", + "AS", + "T1", + "JOIN", + "Transcripts", + "AS", + "T2", + "ON", + "T1.transcript_id", + "=", + "T2.transcript_id", + "GROUP", + "BY", + "T1.transcript_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "transcript_date", + ",", + "t1", + ".", + "transcript_id", + "from", + "transcript_contents", + "as", + "t1", + "join", + "transcripts", + "as", + "t2", + "on", + "t1", + ".", + "transcript_id", + "=", + "t2", + ".", + "transcript_id", + "group", + "by", + "t1", + ".", + "transcript_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "少なくとも2つの課程結果がある成績証明書の日付とID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ], + [ + "table_unit", + 9 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 56, + false + ], + null + ], + [ + 0, + 52, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 56, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 56, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.transcript_date", + ",", + "T1.transcript_id", + "FROM", + "Transcript_Contents", + "AS", + "T1", + "JOIN", + "Transcripts", + "AS", + "T2", + "ON", + "T1.transcript_id", + "=", + "T2.transcript_id", + "GROUP", + "BY", + "T1.transcript_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "transcript_date", + ",", + "t1", + ".", + "transcript_id", + "from", + "transcript_contents", + "as", + "t1", + "join", + "transcripts", + "as", + "t2", + "on", + "t1", + ".", + "transcript_id", + "=", + "t2", + ".", + "transcript_id", + "group", + "by", + "t1", + ".", + "transcript_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "少なくとも2つの課程がリストされている成績証明書の日付とID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ], + [ + "table_unit", + 9 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 56, + false + ], + null + ], + [ + 0, + 52, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 56, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 56, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'", + "query_toks": [ + "SELECT", + "cell_mobile_number", + "FROM", + "Students", + "WHERE", + "first_name", + "=", + "'Timmothy", + "'", + "AND", + "last_name", + "=", + "'Ward", + "'" + ], + "query_toks_no_value": [ + "select", + "cell_mobile_number", + "from", + "students", + "where", + "first_name", + "=", + "value", + "and", + "last_name", + "=", + "value" + ], + "question": "ファーストネームはTimmothyでラストネームはWardの学生の携帯電話番号", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 35, + false + ], + null + ], + "\"Timmothy\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 37, + false + ], + null + ], + "\"Ward\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'", + "query_toks": [ + "select", + "cell_mobile_number", + "from", + "students", + "where", + "first_name", + "=", + "\"timmothy\"", + "and", + "last_name", + "=", + "\"ward\"" + ], + "query_toks_no_value": [ + "select", + "cell_mobile_number", + "from", + "students", + "where", + "first_name", + "=", + "value", + "and", + "last_name", + "=", + "value" + ], + "question": "Timmothy Wardという学生の携帯電話番号", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 35, + false + ], + null + ], + "\"timmothy\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 37, + false + ], + null + ], + "\"ward\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "FROM", + "Students", + "ORDER", + "BY", + "date_first_registered", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "from", + "students", + "order", + "by", + "date_first_registered", + "asc", + "limit", + "value" + ], + "question": "登録する最初の学生は誰ですか?そのファーストネーム、ミドルネーム、ラストネームを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "FROM", + "Students", + "ORDER", + "BY", + "date_first_registered", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "from", + "students", + "order", + "by", + "date_first_registered", + "asc", + "limit", + "value" + ], + "question": "最初に登録した学生のファーストネーム、ミドルネーム、ラストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "FROM", + "Students", + "ORDER", + "BY", + "date_left", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "from", + "students", + "order", + "by", + "date_left", + "asc", + "limit", + "value" + ], + "question": "学校の最初の卒業生は誰ですか? ファーストネーム、ミドルネーム、ラストネームをリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1", + "query_toks": [ + "SELECT", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "FROM", + "Students", + "ORDER", + "BY", + "date_left", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "middle_name", + ",", + "last_name", + "from", + "students", + "order", + "by", + "date_left", + "asc", + "limit", + "value" + ], + "question": "最年長の卒業生のファーストネーム、ミドルネームとラストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", + "query_toks": [ + "SELECT", + "first_name", + "FROM", + "Students", + "WHERE", + "current_address_id", + "!", + "=", + "permanent_address_id" + ], + "query_toks_no_value": [ + "select", + "first_name", + "from", + "students", + "where", + "current_address_id", + "!", + "=", + "permanent_address_id" + ], + "question": "誰の本籍地が現在の住所と異なりますか? 彼らまたは彼女らのファーストネームをリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 34, + false + ], + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", + "query_toks": [ + "SELECT", + "first_name", + "FROM", + "Students", + "WHERE", + "current_address_id", + "!", + "=", + "permanent_address_id" + ], + "query_toks_no_value": [ + "select", + "first_name", + "from", + "students", + "where", + "current_address_id", + "!", + "=", + "permanent_address_id" + ], + "question": "現在の住所とは本籍地が異なる学生のファーストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 34, + false + ], + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.address_id", + ",", + "T1.line_1", + ",", + "T1.line_2", + "FROM", + "Addresses", + "AS", + "T1", + "JOIN", + "Students", + "AS", + "T2", + "ON", + "T1.address_id", + "=", + "T2.current_address_id", + "GROUP", + "BY", + "T1.address_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "address_id", + ",", + "t1", + ".", + "line_1", + ",", + "t1", + ".", + "line_2", + "from", + "addresses", + "as", + "t1", + "join", + "students", + "as", + "t2", + "on", + "t1", + ".", + "address_id", + "=", + "t2", + ".", + "current_address_id", + "group", + "by", + "t1", + ".", + "address_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "現在最も多くの学生を抱えている住所はどれですか? アドレスIDとすべてのラインを一覧表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 6 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 33, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.address_id", + ",", + "T1.line_1", + ",", + "T1.line_2", + "FROM", + "Addresses", + "AS", + "T1", + "JOIN", + "Students", + "AS", + "T2", + "ON", + "T1.address_id", + "=", + "T2.current_address_id", + "GROUP", + "BY", + "T1.address_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "address_id", + ",", + "t1", + ".", + "line_1", + ",", + "t1", + ".", + "line_2", + "from", + "addresses", + "as", + "t1", + "join", + "students", + "as", + "t2", + "on", + "t1", + ".", + "address_id", + "=", + "t2", + ".", + "current_address_id", + "group", + "by", + "t1", + ".", + "address_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "学生が最も多い住所のID、ライン1、ライン2", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 6 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 33, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT avg(transcript_date) FROM Transcripts", + "query_toks": [ + "SELECT", + "avg", + "(", + "transcript_date", + ")", + "FROM", + "Transcripts" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "transcript_date", + ")", + "from", + "transcripts" + ], + "question": "成績証明書の平均印刷日のは何ですか ", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT avg(transcript_date) FROM Transcripts", + "query_toks": [ + "SELECT", + "avg", + "(", + "transcript_date", + ")", + "FROM", + "Transcripts" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "transcript_date", + ")", + "from", + "transcripts" + ], + "question": "成績証明書の平均日付は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", + "query_toks": [ + "SELECT", + "transcript_date", + ",", + "other_details", + "FROM", + "Transcripts", + "ORDER", + "BY", + "transcript_date", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "transcript_date", + ",", + "other_details", + "from", + "transcripts", + "order", + "by", + "transcript_date", + "asc", + "limit", + "value" + ], + "question": "最初の成績証明書はいつリリースされますか? 日付と詳細をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 54, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", + "query_toks": [ + "SELECT", + "transcript_date", + ",", + "other_details", + "FROM", + "Transcripts", + "ORDER", + "BY", + "transcript_date", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "transcript_date", + ",", + "other_details", + "from", + "transcripts", + "order", + "by", + "transcript_date", + "asc", + "limit", + "value" + ], + "question": "成績証明書のリリースの最も早い日付は何ですか?詳細を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 54, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Transcripts", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Transcripts" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "transcripts" + ], + "question": "いくつの成績証明書がリリースされますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) FROM Transcripts", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Transcripts" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "transcripts" + ], + "question": "いくつの成績証明書がリストされていますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", + "query_toks": [ + "SELECT", + "transcript_date", + "FROM", + "Transcripts", + "ORDER", + "BY", + "transcript_date", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "transcript_date", + "from", + "transcripts", + "order", + "by", + "transcript_date", + "desc", + "limit", + "value" + ], + "question": "最後の成績証明書のリリース日はいつですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", + "query_toks": [ + "SELECT", + "transcript_date", + "FROM", + "Transcripts", + "ORDER", + "BY", + "transcript_date", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "transcript_date", + "from", + "transcripts", + "order", + "by", + "transcript_date", + "desc", + "limit", + "value" + ], + "question": "最後の成績証明書がリリースされたのはいつですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 9 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "student_course_id", + "FROM", + "Transcript_Contents", + "GROUP", + "BY", + "student_course_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "student_course_id", + "from", + "transcript_contents", + "group", + "by", + "student_course_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "課程登録結果は、最大で何回異なる成績証明書で表示できますか? 課程登録IDも表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 55, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 55, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "student_course_id", + "FROM", + "Transcript_Contents", + "GROUP", + "BY", + "student_course_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "student_course_id", + "from", + "transcript_contents", + "group", + "by", + "student_course_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "各成績証明書で最大回数で展示された課程とその課程の登録IDは何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 55, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 55, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.transcript_date", + ",", + "T1.transcript_id", + "FROM", + "Transcript_Contents", + "AS", + "T1", + "JOIN", + "Transcripts", + "AS", + "T2", + "ON", + "T1.transcript_id", + "=", + "T2.transcript_id", + "GROUP", + "BY", + "T1.transcript_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "transcript_date", + ",", + "t1", + ".", + "transcript_id", + "from", + "transcript_contents", + "as", + "t1", + "join", + "transcripts", + "as", + "t2", + "on", + "t1", + ".", + "transcript_id", + "=", + "t2", + ".", + "transcript_id", + "group", + "by", + "t1", + ".", + "transcript_id", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question": "結果の数が最も少ない成績証明書の日付を表示してください。そしてIDをリストしてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ], + [ + "table_unit", + 9 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 56, + false + ], + null + ], + [ + 0, + 52, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 56, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 56, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.transcript_date", + ",", + "T1.transcript_id", + "FROM", + "Transcript_Contents", + "AS", + "T1", + "JOIN", + "Transcripts", + "AS", + "T2", + "ON", + "T1.transcript_id", + "=", + "T2.transcript_id", + "GROUP", + "BY", + "T1.transcript_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "transcript_date", + ",", + "t1", + ".", + "transcript_id", + "from", + "transcript_contents", + "as", + "t1", + "join", + "transcripts", + "as", + "t2", + "on", + "t1", + ".", + "transcript_id", + "=", + "t2", + ".", + "transcript_id", + "group", + "by", + "t1", + ".", + "transcript_id", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question": "結果の数が最も少ない成績証明書の日付とIDは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 10 + ], + [ + "table_unit", + 9 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 56, + false + ], + null + ], + [ + 0, + 52, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 53, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 56, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 56, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.semester_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "WHERE", + "degree_summary_name", + "=", + "'Master", + "'", + "INTERSECT", + "SELECT", + "DISTINCT", + "T2.semester_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "WHERE", + "degree_summary_name", + "=", + "'Bachelor", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "semester_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "where", + "degree_summary_name", + "=", + "value", + "intersect", + "select", + "distinct", + "t2", + ".", + "semester_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "where", + "degree_summary_name", + "=", + "value" + ], + "question": "修士と学士の両方の学生が登録した学期を探してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Master\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Bachelor\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.semester_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "WHERE", + "degree_summary_name", + "=", + "'Master", + "'", + "INTERSECT", + "SELECT", + "DISTINCT", + "T2.semester_id", + "FROM", + "Degree_Programs", + "AS", + "T1", + "JOIN", + "Student_Enrolment", + "AS", + "T2", + "ON", + "T1.degree_program_id", + "=", + "T2.degree_program_id", + "WHERE", + "degree_summary_name", + "=", + "'Bachelor", + "'" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "semester_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "where", + "degree_summary_name", + "=", + "value", + "intersect", + "select", + "distinct", + "t2", + ".", + "semester_id", + "from", + "degree_programs", + "as", + "t1", + "join", + "student_enrolment", + "as", + "t2", + "on", + "t1", + ".", + "degree_program_id", + "=", + "t2", + ".", + "degree_program_id", + "where", + "degree_summary_name", + "=", + "value" + ], + "question": "修士と学士の両方の学生が登録した学期のIDは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Master\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Bachelor\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT current_address_id) FROM Students", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "current_address_id", + ")", + "FROM", + "Students" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "current_address_id", + ")", + "from", + "students" + ], + "question": "学生が住む異なるアドレスの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 33, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT count(DISTINCT current_address_id) FROM Students", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "current_address_id", + ")", + "FROM", + "Students" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "current_address_id", + ")", + "from", + "students" + ], + "question": "学生が住む異なるアドレスは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 33, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", + "query_toks": [ + "SELECT", + "other_student_details", + "FROM", + "Students", + "ORDER", + "BY", + "other_student_details", + "DESC" + ], + "query_toks_no_value": [ + "select", + "other_student_details", + "from", + "students", + "order", + "by", + "other_student_details", + "desc" + ], + "question": "アルファベットの逆の順番に学生の他の情報を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", + "query_toks": [ + "SELECT", + "other_student_details", + "FROM", + "Students", + "ORDER", + "BY", + "other_student_details", + "DESC" + ], + "query_toks_no_value": [ + "select", + "other_student_details", + "from", + "students", + "order", + "by", + "other_student_details", + "desc" + ], + "question": "アルファベットの逆の順番での学生の他の情報", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_description FROM Sections WHERE section_name = 'h'", + "query_toks": [ + "SELECT", + "section_description", + "FROM", + "Sections", + "WHERE", + "section_name", + "=", + "'h", + "'" + ], + "query_toks_no_value": [ + "select", + "section_description", + "from", + "sections", + "where", + "section_name", + "=", + "value" + ], + "question": "セクション名hを説明する", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"h\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "SELECT section_description FROM Sections WHERE section_name = 'h'", + "query_toks": [ + "SELECT", + "section_description", + "FROM", + "Sections", + "WHERE", + "section_name", + "=", + "'h", + "'" + ], + "query_toks_no_value": [ + "select", + "section_description", + "from", + "sections", + "where", + "section_name", + "=", + "value" + ], + "question": "セクション名hの説明", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"h\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'", + "query_toks": [ + "select", + "t1.first_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1.permanent_address_id", + "=", + "t2.address_id", + "where", + "t2.country", + "=", + "\"haiti\"", + "or", + "t1.cell_mobile_number", + "=", + "\"09700166582\"" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1", + ".", + "permanent_address_id", + "=", + "t2", + ".", + "address_id", + "where", + "t2", + ".", + "country", + "=", + "value", + "or", + "t1", + ".", + "cell_mobile_number", + "=", + "value" + ], + "question": "Haitiに永住するあるいは電話番号は09700166582の学生のファーストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 34, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"haiti\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"09700166582\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "student_transcripts_tracking", + "query": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'", + "query_toks": [ + "select", + "t1.first_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1.permanent_address_id", + "=", + "t2.address_id", + "where", + "t2.country", + "=", + "\"haiti\"", + "or", + "t1.cell_mobile_number", + "=", + "\"09700166582\"" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + "from", + "students", + "as", + "t1", + "join", + "addresses", + "as", + "t2", + "on", + "t1", + ".", + "permanent_address_id", + "=", + "t2", + ".", + "address_id", + "where", + "t2", + ".", + "country", + "=", + "value", + "or", + "t1", + ".", + "cell_mobile_number", + "=", + "value" + ], + "question": "Haitiに永住するあるいは電話番号は09700166582の学生のファーストネーム", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 34, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"haiti\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"09700166582\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon ORDER BY title", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "ORDER", + "BY", + "title" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "order", + "by", + "title" + ], + "question": "ファベット順でアニメのタイトルを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon ORDER BY title", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "ORDER", + "BY", + "title" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "order", + "by", + "title" + ], + "question": "アニメのタイトルをアルファベット順に並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "WHERE", + "Directed_by", + "=", + "``", + "Ben", + "Jones", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value" + ], + "question": "Ben Jonesの作ったアニメを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "WHERE", + "Directed_by", + "=", + "``", + "Ben", + "Jones", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value" + ], + "question": "Ben Jonesに作られたすべてのアニメの名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Cartoon", + "WHERE", + "Written_by", + "=", + "``", + "Joseph", + "Kuhr", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cartoon", + "where", + "written_by", + "=", + "value" + ], + "question": "Joseph Kuhrに作られたアニメの数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Joseph Kuhr\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Cartoon", + "WHERE", + "Written_by", + "=", + "``", + "Joseph", + "Kuhr", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "cartoon", + "where", + "written_by", + "=", + "value" + ], + "question": "Joseph Kuhrの作ったアニメの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Joseph Kuhr\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date", + "query_toks": [ + "SELECT", + "title", + ",", + "Directed_by", + "FROM", + "Cartoon", + "ORDER", + "BY", + "Original_air_date" + ], + "query_toks_no_value": [ + "select", + "title", + ",", + "directed_by", + "from", + "cartoon", + "order", + "by", + "original_air_date" + ], + "question": "放送日のすべてのアニメの名前と監督を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date", + "query_toks": [ + "SELECT", + "title", + ",", + "Directed_by", + "FROM", + "Cartoon", + "ORDER", + "BY", + "Original_air_date" + ], + "query_toks_no_value": [ + "select", + "title", + ",", + "directed_by", + "from", + "cartoon", + "order", + "by", + "original_air_date" + ], + "question": "放送日のすべてのアニメの名前と監督", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "WHERE", + "Directed_by", + "=", + "``", + "Ben", + "Jones", + "''", + "OR", + "Directed_by", + "=", + "``", + "Brandon", + "Vietti", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value", + "or", + "directed_by", + "=", + "value" + ], + "question": "Ben JonesあるいはBrandon Viettiに作られたすべてのアニメのタイトルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Brandon Vietti\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";", + "query_toks": [ + "SELECT", + "Title", + "FROM", + "Cartoon", + "WHERE", + "Directed_by", + "=", + "``", + "Ben", + "Jones", + "''", + "OR", + "Directed_by", + "=", + "``", + "Brandon", + "Vietti", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "title", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value", + "or", + "directed_by", + "=", + "value" + ], + "question": "Ben JonesあるいはBrandon Viettiに作られたアニメのタイトル", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Brandon Vietti\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "Country", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "Country", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "country", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "country", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "TV チャンネルが一番多い国は?国とTV チャンネルの数を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", + "query_toks": [ + "SELECT", + "Country", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "Country", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "country", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "country", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "TV チャンネルが一番多い国とそのTV チャンネルの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "series_name", + ")", + ",", + "count", + "(", + "DISTINCT", + "content", + ")", + "FROM", + "TV_Channel", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "series_name", + ")", + ",", + "count", + "(", + "distinct", + "content", + ")", + "from", + "tv_channel" + ], + "question": "異なるシリーズの数とTV チャンネルのコンテント", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 2, + true + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 5, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "series_name", + ")", + ",", + "count", + "(", + "DISTINCT", + "content", + ")", + "FROM", + "TV_Channel", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "series_name", + ")", + ",", + "count", + "(", + "distinct", + "content", + ")", + "from", + "tv_channel" + ], + "question": "異なるシリーズはいくつあるか、TV チャンネルのコンテントは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 2, + true + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 5, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "Content", + "FROM", + "TV_Channel", + "WHERE", + "series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "content", + "from", + "tv_channel", + "where", + "series_name", + "=", + "value" + ], + "question": "Sky RadioというシリーズのTV チャンネルのコンテントは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "Content", + "FROM", + "TV_Channel", + "WHERE", + "series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "content", + "from", + "tv_channel", + "where", + "series_name", + "=", + "value" + ], + "question": "Sky RadioというシリーズのTV チャンネルのコンテント", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "Package_Option", + "FROM", + "TV_Channel", + "WHERE", + "series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "package_option", + "from", + "tv_channel", + "where", + "series_name", + "=", + "value" + ], + "question": "Sky RadioというシリーズのTV チャンネルのパッケージオプションは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "Package_Option", + "FROM", + "TV_Channel", + "WHERE", + "series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "package_option", + "from", + "tv_channel", + "where", + "series_name", + "=", + "value" + ], + "question": "Sky Radioというシリー���のTV チャンネルのパッケージオプションは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "where", + "language", + "=", + "value" + ], + "question": "言語は英語のTV チャンネルの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "where", + "language", + "=", + "value" + ], + "question": "英語を使うTV チャンネルの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "LANGUAGE", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question": "TV チャンネルが使う最も少ない言語、その言語とTV チャンネルの数を並べる。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "LANGUAGE", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1", + ";" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question": "TV チャンネルが使う最も少ない言語は?いくつのTV チャンネルがそれを使うか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "LANGUAGE" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "language" + ], + "question": "各言語とそれを使うTV チャンネルの数を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "count", + "(", + "*", + ")", + "FROM", + "TV_Channel", + "GROUP", + "BY", + "LANGUAGE" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "count", + "(", + "*", + ")", + "from", + "tv_channel", + "group", + "by", + "language" + ], + "question": "各言語について、それを使うTV チャンネルの数を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";", + "query_toks": [ + "SELECT", + "T1.series_name", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "Cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.Title", + "=", + "``", + "The", + "Rise", + "of", + "the", + "Blue", + "Beetle", + "!", + "``", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "title", + "=", + "value" + ], + "question": "アニメ「The Rise of the Blue Beetle!」を放送するTV チャンネルは?そのシリーズの名前を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"The Rise of the Blue Beetle!\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";", + "query_toks": [ + "SELECT", + "T1.series_name", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "Cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.Title", + "=", + "``", + "The", + "Rise", + "of", + "the", + "Blue", + "Beetle", + "!", + "``", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "title", + "=", + "value" + ], + "question": "アニメ「The Rise of the Blue Beetle!」を放送するTV チャンネルのシリーズの名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"The Rise of the Blue Beetle!\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "T2.Title", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "Cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T1.series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "title", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t1", + ".", + "series_name", + "=", + "value" + ], + "question": "TV チャンネルのSky Radioシリーズで放送するすべてのアニメのタイトルを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "T2.Title", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "Cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T1.series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "title", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t1", + ".", + "series_name", + "=", + "value" + ], + "question": "TV チャンネルのSky Radioシリーズで放送するすべてのアニメのタイトル", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Episode FROM TV_series ORDER BY rating", + "query_toks": [ + "SELECT", + "Episode", + "FROM", + "TV_series", + "ORDER", + "BY", + "rating" + ], + "query_toks_no_value": [ + "select", + "episode", + "from", + "tv_series", + "order", + "by", + "rating" + ], + "question": "評価の順番ですべてのTVシリーズのエピソードを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Episode FROM TV_series ORDER BY rating", + "query_toks": [ + "SELECT", + "Episode", + "FROM", + "TV_series", + "ORDER", + "BY", + "rating" + ], + "query_toks_no_value": [ + "select", + "episode", + "from", + "tv_series", + "order", + "by", + "rating" + ], + "question": "評価の順番でのすべてのTVシリーズのエピソードは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", + "query_toks": [ + "SELECT", + "Episode", + ",", + "Rating", + "FROM", + "TV_series", + "ORDER", + "BY", + "Rating", + "DESC", + "LIMIT", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "episode", + ",", + "rating", + "from", + "tv_series", + "order", + "by", + "rating", + "desc", + "limit", + "value" + ], + "question": "評価トップ3のTVシリーズ、そのTVシリーズのエピソードと評価を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", + "query_toks": [ + "SELECT", + "Episode", + ",", + "Rating", + "FROM", + "TV_series", + "ORDER", + "BY", + "Rating", + "DESC", + "LIMIT", + "3", + ";" + ], + "query_toks_no_value": [ + "select", + "episode", + ",", + "rating", + "from", + "tv_series", + "order", + "by", + "rating", + "desc", + "limit", + "value" + ], + "question": "評価トップ3のTVシリーズのエピソードと評価", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT max(SHARE) , min(SHARE) FROM TV_series;", + "query_toks": [ + "SELECT", + "max", + "(", + "SHARE", + ")", + ",", + "min", + "(", + "SHARE", + ")", + "FROM", + "TV_series", + ";" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "share", + ")", + ",", + "min", + "(", + "share", + ")", + "from", + "tv_series" + ], + "question": "TVシリーズの最高シェアと最低シェアは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT max(SHARE) , min(SHARE) FROM TV_series;", + "query_toks": [ + "SELECT", + "max", + "(", + "SHARE", + ")", + ",", + "min", + "(", + "SHARE", + ")", + "FROM", + "TV_series", + ";" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "share", + ")", + ",", + "min", + "(", + "share", + ")", + "from", + "tv_series" + ], + "question": "TVシリーズの最高シェアと最低シェアは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "Air_Date", + "FROM", + "TV_series", + "WHERE", + "Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "air_date", + "from", + "tv_series", + "where", + "episode", + "=", + "value" + ], + "question": "エピソードは「A Love of a Lifetime」のTVシリーズの放送日", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "Air_Date", + "FROM", + "TV_series", + "WHERE", + "Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "air_date", + "from", + "tv_series", + "where", + "episode", + "=", + "value" + ], + "question": "エピソード「A Love of a Lifetime」の放送日", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "Weekly_Rank", + "FROM", + "TV_series", + "WHERE", + "Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "weekly_rank", + "from", + "tv_series", + "where", + "episode", + "=", + "value" + ], + "question": "エピソードは「A Love of a Lifetime」のTVシリーズの週間ランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "Weekly_Rank", + "FROM", + "TV_series", + "WHERE", + "Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "weekly_rank", + "from", + "tv_series", + "where", + "episode", + "=", + "value" + ], + "question": "エピソード「A Love of a Lifetime」の週間ランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "T1.series_name", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "TV_series", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + "from", + "tv_channel", + "as", + "t1", + "join", + "tv_series", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "episode", + "=", + "value" + ], + "question": "エピソードは「A Love of a Lifetime」のTVシリーズのチャンネルは?その名前を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";", + "query_toks": [ + "SELECT", + "T1.series_name", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "TV_series", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.Episode", + "=", + "``", + "A", + "Love", + "of", + "a", + "Lifetime", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + "from", + "tv_channel", + "as", + "t1", + "join", + "tv_series", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "episode", + "=", + "value" + ], + "question": "エピソードは「A Love of a Lifetime」のTVシリーズのチャンネル", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"A Love of a Lifetime\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "T2.Episode", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "TV_series", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T1.series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "episode", + "from", + "tv_channel", + "as", + "t1", + "join", + "tv_series", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t1", + ".", + "series_name", + "=", + "value" + ], + "question": "TVチャンネルでSky Radioというシリーズでのすべてのエピソードを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";", + "query_toks": [ + "SELECT", + "T2.Episode", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "TV_series", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T1.series_name", + "=", + "``", + "Sky", + "Radio", + "''", + ";" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "episode", + "from", + "tv_channel", + "as", + "t1", + "join", + "tv_series", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t1", + ".", + "series_name", + "=", + "value" + ], + "question": "TVシリーズSky Radioのエピソード", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 18, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Sky Radio\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "Directed_by", + "FROM", + "cartoon", + "GROUP", + "BY", + "Directed_by" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "directed_by", + "from", + "cartoon", + "group", + "by", + "directed_by" + ], + "question": "各監督の作ったそれぞれのアニメの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 21, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "Directed_by", + "FROM", + "cartoon", + "GROUP", + "BY", + "Directed_by" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "directed_by", + "from", + "cartoon", + "group", + "by", + "directed_by" + ], + "question": "各監督の作ったアニメの数", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 21, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "select production_code , channel from cartoon order by original_air_date desc limit 1", + "query_toks": [ + "select", + "production_code", + ",", + "channel", + "from", + "cartoon", + "order", + "by", + "original_air_date", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "production_code", + ",", + "channel", + "from", + "cartoon", + "order", + "by", + "original_air_date", + "desc", + "limit", + "value" + ], + "question": "日付の一番近いアニメの製品コードとチャンネル", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "select production_code , channel from cartoon order by original_air_date desc limit 1", + "query_toks": [ + "select", + "production_code", + ",", + "channel", + "from", + "cartoon", + "order", + "by", + "original_air_date", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "production_code", + ",", + "channel", + "from", + "cartoon", + "order", + "by", + "original_air_date", + "desc", + "limit", + "value" + ], + "question": "日付の一番近いアニメの製品コードとチャンネルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", + "query_toks": [ + "SELECT", + "package_option", + ",", + "series_name", + "FROM", + "TV_Channel", + "WHERE", + "hight_definition_TV", + "=", + "``", + "yes", + "''" + ], + "query_toks_no_value": [ + "select", + "package_option", + ",", + "series_name", + "from", + "tv_channel", + "where", + "hight_definition_tv", + "=", + "value" + ], + "question": "ハイビジョンtvのTVチャンネルのパッケージオプションとシリーズ名", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"yes\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"", + "query_toks": [ + "SELECT", + "package_option", + ",", + "series_name", + "FROM", + "TV_Channel", + "WHERE", + "hight_definition_TV", + "=", + "``", + "yes", + "''" + ], + "query_toks_no_value": [ + "select", + "package_option", + ",", + "series_name", + "from", + "tv_channel", + "where", + "hight_definition_tv", + "=", + "value" + ], + "question": "ハイビジョンtvのTVチャンネルのパッケージオプションとシリーズ名は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"yes\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "query_toks": [ + "SELECT", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.written_by", + "=", + "'Todd", + "Casey", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "written_by", + "=", + "value" + ], + "question": " Todd Caseyに作られたアニメがあるTVチャンネルの国", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Todd Casey\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "query_toks": [ + "SELECT", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.written_by", + "=", + "'Todd", + "Casey", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "written_by", + "=", + "value" + ], + "question": " Todd Caseyに作られたアニメがあるTVチャンネルの国は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Todd Casey\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "query_toks": [ + "SELECT", + "country", + "FROM", + "TV_Channel", + "EXCEPT", + "SELECT", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.written_by", + "=", + "'Todd", + "Casey", + "'" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "tv_channel", + "except", + "select", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "written_by", + "=", + "value" + ], + "question": " Todd Caseyに作られたアニメがないTVチャンネルの国", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Todd Casey\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "tvshow", + "query": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", + "query_toks": [ + "SELECT", + "country", + "FROM", + "TV_Channel", + "EXCEPT", + "SELECT", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.written_by", + "=", + "'Todd", + "Casey", + "'" + ], + "query_toks_no_value": [ + "select", + "country", + "from", + "tv_channel", + "except", + "select", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "written_by", + "=", + "value" + ], + "question": "Todd Caseyに作られたアニメがないTVチャンネルの国は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + "\"Todd Casey\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", + "query_toks": [ + "SELECT", + "T1.series_name", + ",", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.directed_by", + "=", + "'Michael", + "Chang", + "'", + "INTERSECT", + "SELECT", + "T1.series_name", + ",", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.directed_by", + "=", + "'Ben", + "Jones", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + ",", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "directed_by", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "series_name", + ",", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "directed_by", + "=", + "value" + ], + "question": "Ben Jones と Michael Changに作られたアニメを放送するTVチャンネルのシリーズ名と国", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Michael Chang\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", + "query_toks": [ + "SELECT", + "T1.series_name", + ",", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.directed_by", + "=", + "'Michael", + "Chang", + "'", + "INTERSECT", + "SELECT", + "T1.series_name", + ",", + "T1.country", + "FROM", + "TV_Channel", + "AS", + "T1", + "JOIN", + "cartoon", + "AS", + "T2", + "ON", + "T1.id", + "=", + "T2.Channel", + "WHERE", + "T2.directed_by", + "=", + "'Ben", + "Jones", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "series_name", + ",", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "directed_by", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "series_name", + ",", + "t1", + ".", + "country", + "from", + "tv_channel", + "as", + "t1", + "join", + "cartoon", + "as", + "t2", + "on", + "t1", + ".", + "id", + "=", + "t2", + ".", + "channel", + "where", + "t2", + ".", + "directed_by", + "=", + "value" + ], + "question": "Ben Jones と Michael Changに作られたアニメを放送するTVチャンネルのシリーズ名と国", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Michael Chang\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 25, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", + "query_toks": [ + "SELECT", + "Pixel_aspect_ratio_PAR", + ",", + "country", + "FROM", + "tv_channel", + "WHERE", + "LANGUAGE", + "!", + "=", + "'English", + "'" + ], + "query_toks_no_value": [ + "select", + "pixel_aspect_ratio_par", + ",", + "country", + "from", + "tv_channel", + "where", + "language", + "!", + "=", + "value" + ], + "question": "英語を使わないTVチャンネルのピクセルアスペクトラジオパーと国", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", + "query_toks": [ + "SELECT", + "Pixel_aspect_ratio_PAR", + ",", + "country", + "FROM", + "tv_channel", + "WHERE", + "LANGUAGE", + "!", + "=", + "'English", + "'" + ], + "query_toks_no_value": [ + "select", + "pixel_aspect_ratio_par", + ",", + "country", + "from", + "tv_channel", + "where", + "language", + "!", + "=", + "value" + ], + "question": "英語を使わないTVチャンネルのピクセルアスペクトラジオパーと国", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", + "query_toks": [ + "SELECT", + "id", + "FROM", + "tv_channel", + "GROUP", + "BY", + "country", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "tv_channel", + "group", + "by", + "country", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "TVチャンネルが二つ以上ある国のチャンネルのID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2", + "query_toks": [ + "SELECT", + "id", + "FROM", + "tv_channel", + "GROUP", + "BY", + "country", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "tv_channel", + "group", + "by", + "country", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "TVチャンネルが二つ以上ある国のチャンネルのIDは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", + "query_toks": [ + "SELECT", + "id", + "FROM", + "TV_Channel", + "EXCEPT", + "SELECT", + "channel", + "FROM", + "cartoon", + "WHERE", + "directed_by", + "=", + "'Ben", + "Jones", + "'" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "tv_channel", + "except", + "select", + "channel", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value" + ], + "question": "Ben Jonesに作られたアニメを放送しないTVチャンネルのID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "tvshow", + "query": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", + "query_toks": [ + "SELECT", + "id", + "FROM", + "TV_Channel", + "EXCEPT", + "SELECT", + "channel", + "FROM", + "cartoon", + "WHERE", + "directed_by", + "=", + "'Ben", + "Jones", + "'" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "tv_channel", + "except", + "select", + "channel", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value" + ], + "question": "Ben Jonesに作られたアニメを放送しないTVチャンネルのID", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "tvshow", + "query": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", + "query_toks": [ + "SELECT", + "package_option", + "FROM", + "TV_Channel", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "channel", + "FROM", + "cartoon", + "WHERE", + "directed_by", + "=", + "'Ben", + "Jones", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "package_option", + "from", + "tv_channel", + "where", + "id", + "not", + "in", + "(", + "select", + "channel", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value", + ")" + ], + "question": "Ben Jonesに作られたアニメを放送しないTVチャンネルのパッケージオプション", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "tvshow", + "query": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", + "query_toks": [ + "SELECT", + "package_option", + "FROM", + "TV_Channel", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "channel", + "FROM", + "cartoon", + "WHERE", + "directed_by", + "=", + "'Ben", + "Jones", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "package_option", + "from", + "tv_channel", + "where", + "id", + "not", + "in", + "(", + "select", + "channel", + "from", + "cartoon", + "where", + "directed_by", + "=", + "value", + ")" + ], + "question": "Ben Jonesに作られたアニメを放送しないTVチャンネルのパッケージオプションは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + "\"Ben Jones\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT count(*) FROM poker_player", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "poker_player" + ], + "question": "ポーカープレイヤーはいくつあるか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT count(*) FROM poker_player", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "poker_player" + ], + "question": "ポーカープレイヤーの数を数える", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", + "query_toks": [ + "SELECT", + "Earnings", + "FROM", + "poker_player", + "ORDER", + "BY", + "Earnings", + "DESC" + ], + "query_toks_no_value": [ + "select", + "earnings", + "from", + "poker_player", + "order", + "by", + "earnings", + "desc" + ], + "question": "ポーカープレイヤーの所得を降順に並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", + "query_toks": [ + "SELECT", + "Earnings", + "FROM", + "poker_player", + "ORDER", + "BY", + "Earnings", + "DESC" + ], + "query_toks_no_value": [ + "select", + "earnings", + "from", + "poker_player", + "order", + "by", + "earnings", + "desc" + ], + "question": "降順でのポーカープレイヤーの所得", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Final_Table_Made , Best_Finish FROM poker_player", + "query_toks": [ + "SELECT", + "Final_Table_Made", + ",", + "Best_Finish", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "final_table_made", + ",", + "best_finish", + "from", + "poker_player" + ], + "question": "最終的テーブルとポーカープレイヤーのベストフィニッシュを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Final_Table_Made , Best_Finish FROM poker_player", + "query_toks": [ + "SELECT", + "Final_Table_Made", + ",", + "Best_Finish", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "final_table_made", + ",", + "best_finish", + "from", + "poker_player" + ], + "question": "最終的テーブルとすべてのポーカープレイヤーのベストフィニッシュ", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT avg(Earnings) FROM poker_player", + "query_toks": [ + "SELECT", + "avg", + "(", + "Earnings", + ")", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "earnings", + ")", + "from", + "poker_player" + ], + "question": "ポーカープレイヤーの平均収益は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT avg(Earnings) FROM poker_player", + "query_toks": [ + "SELECT", + "avg", + "(", + "Earnings", + ")", + "FROM", + "poker_player" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "earnings", + ")", + "from", + "poker_player" + ], + "question": "すべてのポーカープレイヤーの平均収益", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Money_Rank", + "FROM", + "poker_player", + "ORDER", + "BY", + "Earnings", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "money_rank", + "from", + "poker_player", + "order", + "by", + "earnings", + "desc", + "limit", + "value" + ], + "question": "収益が一番多いプレイヤーのマネーランクは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Money_Rank", + "FROM", + "poker_player", + "ORDER", + "BY", + "Earnings", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "money_rank", + "from", + "poker_player", + "order", + "by", + "earnings", + "desc", + "limit", + "value" + ], + "question": "収益が一番多いプレイヤーのマネーランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", + "query_toks": [ + "SELECT", + "max", + "(", + "Final_Table_Made", + ")", + "FROM", + "poker_player", + "WHERE", + "Earnings", + "<", + "200000" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "final_table_made", + ")", + "from", + "poker_player", + "where", + "earnings", + "<", + "value" + ], + "question": "収益が200000以下のポーカープレイヤーの最高の最終的テーブルは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 200000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", + "query_toks": [ + "SELECT", + "max", + "(", + "Final_Table_Made", + ")", + "FROM", + "poker_player", + "WHERE", + "Earnings", + "<", + "200000" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "final_table_made", + ")", + "from", + "poker_player", + "where", + "earnings", + "<", + "value" + ], + "question": "収益が200000以下のポーカープレイヤーの最高の最終的テーブル", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 200000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id" + ], + "question": "ポーカープレイヤーの名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id" + ], + "question": "すべてのポーカープレイヤーの名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "WHERE", + "T2.Earnings", + ">", + "300000" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "where", + "t2", + ".", + "earnings", + ">", + "value" + ], + "question": "300000以上の収益があるポーカープレイヤーの名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 300000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "WHERE", + "T2.Earnings", + ">", + "300000" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "where", + "t2", + ".", + "earnings", + ">", + "value" + ], + "question": "収益が300000を超えたポーカープレイヤーの名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + 300000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Final_Table_Made" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "final_table_made" + ], + "question": "最終的テーブルの昇順にポーカープレイヤーの名前を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Final_Table_Made" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "final_table_made" + ], + "question": "ポーカープレイヤーの最終的テーブルの昇順にその名前を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Birth_Date", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Earnings", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "birth_date", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "earnings", + "asc", + "limit", + "value" + ], + "question": "収益が最も少ないポーカープレイヤーの生年月日は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Birth_Date", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Earnings", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "birth_date", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "earnings", + "asc", + "limit", + "value" + ], + "question": "収益が最も少ないポーカープレイヤーの生年月日", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Money_Rank", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T1.Height", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "money_rank", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t1", + ".", + "height", + "desc", + "limit", + "value" + ], + "question": "一番高いポーカープレイヤーのマネーランクは?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Money_Rank", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T1.Height", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "money_rank", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t1", + ".", + "height", + "desc", + "limit", + "value" + ], + "question": "一番高いポーカープレイヤーのマネーランク", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", + "query_toks": [ + "SELECT", + "avg", + "(", + "T2.Earnings", + ")", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "WHERE", + "T1.Height", + ">", + "200" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "t2", + ".", + "earnings", + ")", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "where", + "t1", + ".", + "height", + ">", + "value" + ], + "question": "身長は200を超えたポーカープレイヤーの平均収益は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + 200, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", + "query_toks": [ + "SELECT", + "avg", + "(", + "T2.Earnings", + ")", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "WHERE", + "T1.Height", + ">", + "200" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "t2", + ".", + "earnings", + ")", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "where", + "t1", + ".", + "height", + ">", + "value" + ], + "question": "身長200以上のポーカープレイヤーの平均収益", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + 200, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Earnings", + "DESC" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "earnings", + "desc" + ], + "question": "収益の降順にポーカープレイヤーを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "people", + "AS", + "T1", + "JOIN", + "poker_player", + "AS", + "T2", + "ON", + "T1.People_ID", + "=", + "T2.People_ID", + "ORDER", + "BY", + "T2.Earnings", + "DESC" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "people", + "as", + "t1", + "join", + "poker_player", + "as", + "t2", + "on", + "t1", + ".", + "people_id", + "=", + "t2", + ".", + "people_id", + "order", + "by", + "t2", + ".", + "earnings", + "desc" + ], + "question": "収益の降順にポーカープレイヤーを並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality", + "query_toks": [ + "SELECT", + "Nationality", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "people", + "GROUP", + "BY", + "Nationality" + ], + "query_toks_no_value": [ + "select", + "nationality", + ",", + "count", + "(", + "*", + ")", + "from", + "people", + "group", + "by", + "nationality" + ], + "question": "異なる国の国籍とそれぞれの人口", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality", + "query_toks": [ + "SELECT", + "Nationality", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "people", + "GROUP", + "BY", + "Nationality" + ], + "query_toks_no_value": [ + "select", + "nationality", + ",", + "count", + "(", + "*", + ")", + "from", + "people", + "group", + "by", + "nationality" + ], + "question": "各国のそれぞれの人口", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Nationality", + "FROM", + "people", + "GROUP", + "BY", + "Nationality", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "nationality", + "from", + "people", + "group", + "by", + "nationality", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "現れた回数が一番多い国の国籍", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Nationality", + "FROM", + "people", + "GROUP", + "BY", + "Nationality", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "nationality", + "from", + "people", + "group", + "by", + "nationality", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "現れた回数が一番多い国の国籍", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "Nationality", + "FROM", + "people", + "GROUP", + "BY", + "Nationality", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "nationality", + "from", + "people", + "group", + "by", + "nationality", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "少なくとも2人がある国の国籍は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", + "query_toks": [ + "SELECT", + "Nationality", + "FROM", + "people", + "GROUP", + "BY", + "Nationality", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "nationality", + "from", + "people", + "group", + "by", + "nationality", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "人口は二人以上の国の国籍", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC", + "query_toks": [ + "SELECT", + "Name", + ",", + "Birth_Date", + "FROM", + "people", + "ORDER", + "BY", + "Name", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "birth_date", + "from", + "people", + "order", + "by", + "name", + "asc" + ], + "question": "アルファベット順で名前とその生年月日を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC", + "query_toks": [ + "SELECT", + "Name", + ",", + "Birth_Date", + "FROM", + "people", + "ORDER", + "BY", + "Name", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "birth_date", + "from", + "people", + "order", + "by", + "name", + "asc" + ], + "question": "アルファベット順で名前とその生年月日を並べる", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name FROM people WHERE Nationality != \"Russia\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "people", + "WHERE", + "Nationality", + "!", + "=", + "``", + "Russia", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "people", + "where", + "nationality", + "!", + "=", + "value" + ], + "question": "国籍はロシアでなはい人の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"Russia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name FROM people WHERE Nationality != \"Russia\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "people", + "WHERE", + "Nationality", + "!", + "=", + "``", + "Russia", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "people", + "where", + "nationality", + "!", + "=", + "value" + ], + "question": "ロシア人ではない人の名前", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + "\"Russia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "people", + "WHERE", + "People_ID", + "NOT", + "IN", + "(", + "SELECT", + "People_ID", + "FROM", + "poker_player", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "people", + "where", + "people_id", + "not", + "in", + "(", + "select", + "people_id", + "from", + "poker_player", + ")" + ], + "question": "ポーカーをしない人の名前を並べる。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "people", + "WHERE", + "People_ID", + "NOT", + "IN", + "(", + "SELECT", + "People_ID", + "FROM", + "poker_player", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "people", + "where", + "people_id", + "not", + "in", + "(", + "select", + "people_id", + "from", + "poker_player", + ")" + ], + "question": "ポーカーをしない人の名前は何だか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT count(DISTINCT Nationality) FROM people", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "Nationality", + ")", + "FROM", + "people" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "nationality", + ")", + "from", + "people" + ], + "question": "異なる国籍はいくつあるか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 8, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "poker_player", + "query": "SELECT count(DISTINCT Nationality) FROM people", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "Nationality", + ")", + "FROM", + "people" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "nationality", + ")", + "from", + "people" + ], + "question": "異なる国籍の数を数える。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 8, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT count(*) FROM area_code_state", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "area_code_state" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "area_code_state" + ], + "question": "そこいくつの州ありますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC", + "query_toks": [ + "SELECT", + "contestant_number", + ",", + "contestant_name", + "FROM", + "contestants", + "ORDER", + "BY", + "contestant_name", + "DESC" + ], + "query_toks_no_value": [ + "select", + "contestant_number", + ",", + "contestant_name", + "from", + "contestants", + "order", + "by", + "contestant_name", + "desc" + ], + "question": "降順で候補者番号と名前をリストしてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT vote_id , phone_number , state FROM votes", + "query_toks": [ + "SELECT", + "vote_id", + ",", + "phone_number", + ",", + "state", + "FROM", + "votes" + ], + "query_toks_no_value": [ + "select", + "vote_id", + ",", + "phone_number", + ",", + "state", + "from", + "votes" + ], + "question": "投票ID、電話番号および投票を参加した全部の州をリストしてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT max(area_code) , min(area_code) FROM area_code_state", + "query_toks": [ + "SELECT", + "max", + "(", + "area_code", + ")", + ",", + "min", + "(", + "area_code", + ")", + "FROM", + "area_code_state" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "area_code", + ")", + ",", + "min", + "(", + "area_code", + ")", + "from", + "area_code_state" + ], + "question": "地区コードの最大値と最小値は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT max(created) FROM votes WHERE state = 'CA'", + "query_toks": [ + "SELECT", + "max", + "(", + "created", + ")", + "FROM", + "votes", + "WHERE", + "state", + "=", + "'CA", + "'" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "created", + ")", + "from", + "votes", + "where", + "state", + "=", + "value" + ], + "question": "州「CA」の投票の最終日は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"CA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway'", + "query_toks": [ + "SELECT", + "contestant_name", + "FROM", + "contestants", + "WHERE", + "contestant_name", + "!", + "=", + "'Jessie", + "Alloway", + "'" + ], + "query_toks_no_value": [ + "select", + "contestant_name", + "from", + "contestants", + "where", + "contestant_name", + "!", + "=", + "value" + ], + "question": "「ジェシー・アロウエイ」以外の候補者の名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Jessie Alloway\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT DISTINCT state , created FROM votes", + "query_toks": [ + "SELECT", + "DISTINCT", + "state", + ",", + "created", + "FROM", + "votes" + ], + "query_toks_no_value": [ + "select", + "distinct", + "state", + ",", + "created", + "from", + "votes" + ], + "question": "確実に投票を行われた州とその時間は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.contestant_number", + ",", + "T1.contestant_name", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "GROUP", + "BY", + "T1.contestant_number", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "contestant_number", + ",", + "t1", + ".", + "contestant_name", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "group", + "by", + "t1", + ".", + "contestant_number", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "2票以上の候補者の番号と名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY count(*) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.contestant_number", + ",", + "T1.contestant_name", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "GROUP", + "BY", + "T1.contestant_number", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "contestant_number", + ",", + "t1", + ".", + "contestant_name", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "group", + "by", + "t1", + ".", + "contestant_number", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value" + ], + "question": "投票されたすべての候補者のうち、投票数が最も少ない候補者の番号と名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA'", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "votes", + "WHERE", + "state", + "=", + "'NY", + "'", + "OR", + "state", + "=", + "'CA", + "'" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "votes", + "where", + "state", + "=", + "value", + "or", + "state", + "=", + "value" + ], + "question": "州「NY」または「CA」からの投票数はいくつですか。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"NY\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"CA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "contestants", + "WHERE", + "contestant_number", + "NOT", + "IN", + "(", + "SELECT", + "contestant_number", + "FROM", + "votes", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "contestants", + "where", + "contestant_number", + "not", + "in", + "(", + "select", + "contestant_number", + "from", + "votes", + ")" + ], + "question": "投票しなかった候補者は何人いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.area_code", + "FROM", + "area_code_state", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.state", + "=", + "T2.state", + "GROUP", + "BY", + "T1.area_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "area_code", + "from", + "area_code_state", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "state", + "=", + "t2", + ".", + "state", + "group", + "by", + "t1", + ".", + "area_code", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの投票者が投票した地区コードは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + [ + 0, + 7, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 1, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T2.created , T2.state , T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'", + "query_toks": [ + "SELECT", + "T2.created", + ",", + "T2.state", + ",", + "T2.phone_number", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "WHERE", + "T1.contestant_name", + "=", + "'Tabatha", + "Gehling", + "'" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "created", + ",", + "t2", + ".", + "state", + ",", + "t2", + ".", + "phone_number", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "where", + "t1", + ".", + "contestant_name", + "=", + "value" + ], + "question": "「TabathaGehling」という名前の候補者に対する投票の作成日、州、および電話番号は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Tabatha Gehling\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss'", + "query_toks": [ + "SELECT", + "T3.area_code", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "JOIN", + "area_code_state", + "AS", + "T3", + "ON", + "T2.state", + "=", + "T3.state", + "WHERE", + "T1.contestant_name", + "=", + "'Tabatha", + "Gehling", + "'", + "INTERSECT", + "SELECT", + "T3.area_code", + "FROM", + "contestants", + "AS", + "T1", + "JOIN", + "votes", + "AS", + "T2", + "ON", + "T1.contestant_number", + "=", + "T2.contestant_number", + "JOIN", + "area_code_state", + "AS", + "T3", + "ON", + "T2.state", + "=", + "T3.state", + "WHERE", + "T1.contestant_name", + "=", + "'Kelly", + "Clauss", + "'" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "area_code", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "join", + "area_code_state", + "as", + "t3", + "on", + "t2", + ".", + "state", + "=", + "t3", + ".", + "state", + "where", + "t1", + ".", + "contestant_name", + "=", + "value", + "intersect", + "select", + "t3", + ".", + "area_code", + "from", + "contestants", + "as", + "t1", + "join", + "votes", + "as", + "t2", + "on", + "t1", + ".", + "contestant_number", + "=", + "t2", + ".", + "contestant_number", + "join", + "area_code_state", + "as", + "t3", + "on", + "t2", + ".", + "state", + "=", + "t3", + ".", + "state", + "where", + "t1", + ".", + "contestant_name", + "=", + "value" + ], + "question": "投票者が候補者「TabathaGehling」と候補者「KellyClaus」の両方に投票した地区コードをリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Tabatha Gehling\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 2, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Kelly Clauss\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "voter_1", + "query": "select contestant_name from contestants where contestant_name like \"%al%\"", + "query_toks": [ + "select", + "contestant_name", + "from", + "contestants", + "where", + "contestant_name", + "like", + "\"%al%\"" + ], + "query_toks_no_value": [ + "select", + "contestant_name", + "from", + "contestants", + "where", + "contestant_name", + "like", + "value" + ], + "question": "名前に「Al」が含まれている候補者の名前をリータンします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"%al%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE IndepYear > 1950", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "IndepYear", + ">", + "1950" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "indepyear", + ">", + "value" + ], + "question": "1950年以降に独立したすべての国の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1950, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE IndepYear > 1950", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "IndepYear", + ">", + "1950" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "indepyear", + ">", + "value" + ], + "question": "1950年以降に建国された国の名前を挙げてください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1950, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "=", + "``", + "Republic", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "where", + "governmentform", + "=", + "value" + ], + "question": "政府の形態が共和国の国はいくつありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "=", + "``", + "Republic", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "where", + "governmentform", + "=", + "value" + ], + "question": "共和国での政府のある国はいくつありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Region", + "=", + "``", + "Caribbean", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "region", + "=", + "value" + ], + "question": "カリブ海地域の国々の総表面積はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Caribbean\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Region", + "=", + "``", + "Caribbean", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "region", + "=", + "value" + ], + "question": "カリブ海の国々が共有する表面積はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Caribbean\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", + "query_toks": [ + "SELECT", + "Continent", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Anguilla", + "''" + ], + "query_toks_no_value": [ + "select", + "continent", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question": "アンギラはどの大陸にありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Anguilla\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Continent FROM country WHERE Name = \"Anguilla\"", + "query_toks": [ + "SELECT", + "Continent", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Anguilla", + "''" + ], + "query_toks_no_value": [ + "select", + "continent", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question": "アンギラはなんという大陸���所属しますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Anguilla\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", + "query_toks": [ + "SELECT", + "Region", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "city", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Name", + "=", + "``", + "Kabul", + "''" + ], + "query_toks_no_value": [ + "select", + "region", + "from", + "country", + "as", + "t1", + "join", + "city", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question": "カブール市はどの地域にありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kabul\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"", + "query_toks": [ + "SELECT", + "Region", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "city", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Name", + "=", + "``", + "Kabul", + "''" + ], + "query_toks_no_value": [ + "select", + "region", + "from", + "country", + "as", + "t1", + "join", + "city", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question": "カブール市はどの地域にありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kabul\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Aruba", + "''", + "ORDER", + "BY", + "Percentage", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value", + "order", + "by", + "percentage", + "desc", + "limit", + "value" + ], + "question": "アルバで最も人気のある言語はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Aruba\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Aruba", + "''", + "ORDER", + "BY", + "Percentage", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value", + "order", + "by", + "percentage", + "desc", + "limit", + "value" + ], + "question": "アルバでは主にどの言語が話されていますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Aruba\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\"", + "query_toks": [ + "SELECT", + "Population", + ",", + "LifeExpectancy", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Brazil", + "''" + ], + "query_toks_no_value": [ + "select", + "population", + ",", + "lifeexpectancy", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question": "ブラジルの人口と平均余命はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Brazil\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\"", + "query_toks": [ + "SELECT", + "Population", + ",", + "LifeExpectancy", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Brazil", + "''" + ], + "query_toks_no_value": [ + "select", + "population", + ",", + "lifeexpectancy", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question": "ブラジルの人口と平均余命を教えてください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Brazil\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Population , Region FROM country WHERE Name = \"Angola\"", + "query_toks": [ + "SELECT", + "Population", + ",", + "Region", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Angola", + "''" + ], + "query_toks_no_value": [ + "select", + "population", + ",", + "region", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question": "アンゴラはどのエリアに所属し、人口はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Angola\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Population , Region FROM country WHERE Name = \"Angola\"", + "query_toks": [ + "SELECT", + "Population", + ",", + "Region", + "FROM", + "country", + "WHERE", + "Name", + "=", + "``", + "Angola", + "''" + ], + "query_toks_no_value": [ + "select", + "population", + ",", + "region", + "from", + "country", + "where", + "name", + "=", + "value" + ], + "question": "アンゴラはどのエリアに所属し、人口はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Angola\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Region", + "=", + "``", + "Central", + "Africa", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "region", + "=", + "value" + ], + "question": "中央アフリカ地域の国々の平均余命はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Central Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Region", + "=", + "``", + "Central", + "Africa", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "region", + "=", + "value" + ], + "question": "中央アフリカ地域の人の平均余命はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"Central Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "ORDER", + "BY", + "LifeExpectancy", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "order", + "by", + "lifeexpectancy", + "limit", + "value" + ], + "question": "アジアで平均余命が最も短い国の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "ORDER", + "BY", + "LifeExpectancy", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "order", + "by", + "lifeexpectancy", + "limit", + "value" + ], + "question": "アジアで平均余命が最も短い国の名前を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "max", + "(", + "GNP", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "max", + "(", + "gnp", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question": "アジアの総人口と最大GNPはどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "max", + "(", + "GNP", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "max", + "(", + "gnp", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question": "アジアにどれくらいの人が住んでいて、GNPの最大値はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + "AND", + "GovernmentForm", + "=", + "``", + "Republic", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "governmentform", + "=", + "value" + ], + "question": "アフリカの共和国の諸国の平均寿命はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + "AND", + "GovernmentForm", + "=", + "``", + "Republic", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "governmentform", + "=", + "value" + ], + "question": "アフリカの共和国の諸国の平均寿命を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "OR", + "Continent", + "=", + "``", + "Europe", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "or", + "continent", + "=", + "value" + ], + "question": "アジア大陸とヨーロッパ大陸の総表面積はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "OR", + "Continent", + "=", + "``", + "Europe", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "or", + "continent", + "=", + "value" + ], + "question": "アジア大陸とヨーロッパ大陸の総表面積を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + "FROM", + "city", + "WHERE", + "District", + "=", + "``", + "Gelderland", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + "from", + "city", + "where", + "district", + "=", + "value" + ], + "question": "ヘルダーラント地区には何人住んでいますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Gelderland\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\"", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + "FROM", + "city", + "WHERE", + "District", + "=", + "``", + "Gelderland", + "''" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + "from", + "city", + "where", + "district", + "=", + "value" + ], + "question": "ヘルダーラント地区の総人口はどれくらいですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"Gelderland\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "GNP", + ")", + ",", + "sum", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "=", + "``", + "US", + "Territory", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "gnp", + ")", + ",", + "sum", + "(", + "population", + ")", + "from", + "country", + "where", + "governmentform", + "=", + "value" + ], + "question": "米国政府に所属しているすべての国の平均GNPと総人口はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ], + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"US Territory\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\"", + "query_toks": [ + "SELECT", + "avg", + "(", + "GNP", + ")", + ",", + "sum", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "=", + "``", + "US", + "Territory", + "''" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "gnp", + ")", + ",", + "sum", + "(", + "population", + ")", + "from", + "country", + "where", + "governmentform", + "=", + "value" + ], + "question": "米国政府に所属しているすべての国の平均GNPと総人口を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ], + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"US Territory\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "LANGUAGE", + ")", + "FROM", + "countrylanguage" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "language", + ")", + "from", + "countrylanguage" + ], + "question": "世界でいくつのユニークな言語が話されていますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "LANGUAGE", + ")", + "FROM", + "countrylanguage" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "language", + ")", + "from", + "countrylanguage" + ], + "question": "世界でどのくらいのユニークな言語が使われていますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "GovernmentForm", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "governmentform", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question": "アフリカにはいくつのタイプの政府がありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 19, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "GovernmentForm", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "governmentform", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question": "アフリカにはいくつのタイプの政府がありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 19, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "T2.Language", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Aruba", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "t2", + ".", + "language", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value" + ], + "question": "アルバで使用されている言語の総数はいくつですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Aruba\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "T2.Language", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Aruba", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "t2", + ".", + "language", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value" + ], + "question": "アルバで使われている言語の総数はいくつですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Aruba\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Afghanistan", + "''", + "AND", + "IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value", + "and", + "isofficial", + "=", + "value" + ], + "question": "アフガニスタンにはいくつの公用語がありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Afghanistan\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Name", + "=", + "``", + "Afghanistan", + "''", + "AND", + "IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "name", + "=", + "value", + "and", + "isofficial", + "=", + "value" + ], + "question": "アフガニスタンにはいくつの公用語が使わていますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + "\"Afghanistan\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Name", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "言語の数が最も多い国の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Name", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "言語の数が最も多い国の名前をおしえてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Continent", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Continent", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "continent", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "continent", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの大陸が種類が最も多くの言語がありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Continent", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Continent", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "continent", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "continent", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの大陸が種類が最も多くの言語を話しますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Dutch", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + ")" + ], + "question": "英語とオランダ語の両方を話す国はいくつありますか?", + "sql": { + "from": { + "table_units": [ + [ + "sql", + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Dutch", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + ")" + ], + "question": "英語とオランダ語の両方を使う国はいくつありますか?", + "sql": { + "from": { + "table_units": [ + [ + "sql", + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\"", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "French", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value" + ], + "question": "英語とフランス語の両方を話す国の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"French\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\"", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "French", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value" + ], + "question": "英語とフランス語の両方を話す国の名前を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"French\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "French", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question": "公用語が英語とフランス語の国の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"French\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''", + "INTERSECT", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "French", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value", + "intersect", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question": "公用語が英語とフランス語の国の名前を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"French\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "DISTINCT", + "Continent", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Chinese", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "continent", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value" + ], + "question": "中国語を話す大陸の数はいくつですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 10, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Chinese\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "DISTINCT", + "Continent", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Chinese", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "continent", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value" + ], + "question": "中国語を話す大陸はいくつありますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 10, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Chinese\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Region", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "OR", + "T2.Language", + "=", + "``", + "Dutch", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "region", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "or", + "t2", + ".", + "language", + "=", + "value" + ], + "question": "英語またはオランダ語を使用する地域はどこですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Region", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "OR", + "T2.Language", + "=", + "``", + "Dutch", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "region", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "or", + "t2", + ".", + "language", + "=", + "value" + ], + "question": "英語またはオランダ語を話す地域はどこですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", + "query_toks": [ + "select", + "t1.name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1.code", + "=", + "t2.countrycode", + "where", + "t2.language", + "=", + "\"english\"", + "and", + "isofficial", + "=", + "\"t\"", + "union", + "select", + "t1.name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1.code", + "=", + "t2.countrycode", + "where", + "t2.language", + "=", + "\"dutch\"", + "and", + "isofficial", + "=", + "\"t\"" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "isofficial", + "=", + "value", + "union", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "isofficial", + "=", + "value" + ], + "question": "英語またはオランダ語が公用語である国はどこですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"english\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"t\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"dutch\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"t\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\" AND IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "*", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "IsOfficial", + "=", + "``", + "T", + "''", + "UNION", + "SELECT", + "*", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "Dutch", + "''", + "AND", + "IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "*", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "isofficial", + "=", + "value", + "union", + "select", + "*", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "isofficial", + "=", + "value" + ], + "question": "英語またはオランダ語が公用語である国はどこですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Dutch\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Continent", + "=", + "``", + "Asia", + "''", + "GROUP", + "BY", + "T2.Language", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "continent", + "=", + "value", + "group", + "by", + "t2", + ".", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "アジア大陸で最も人気のある言語はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.Continent", + "=", + "``", + "Asia", + "''", + "GROUP", + "BY", + "T2.Language", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "continent", + "=", + "value", + "group", + "by", + "t2", + ".", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "アジア大陸で最も使われている言語はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.GovernmentForm", + "=", + "``", + "Republic", + "''", + "GROUP", + "BY", + "T2.Language", + "HAVING", + "COUNT", + "(", + "*", + ")", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "governmentform", + "=", + "value", + "group", + "by", + "t2", + ".", + "language", + "having", + "count", + "(", + "*", + ")", + "=", + "value" + ], + "question": "1つだけの共和国が話している言語はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [ + [ + false, + 2, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.GovernmentForm", + "=", + "``", + "Republic", + "''", + "GROUP", + "BY", + "T2.Language", + "HAVING", + "COUNT", + "(", + "*", + ")", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "governmentform", + "=", + "value", + "group", + "by", + "t2", + ".", + "language", + "having", + "count", + "(", + "*", + ")", + "=", + "value" + ], + "question": "1つだけの共和国が使っている言語はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [ + [ + false, + 2, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "T1.Population", + "FROM", + "city", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.CountryCode", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "ORDER", + "BY", + "T1.Population", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "population", + "from", + "city", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "countrycode", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "order", + "by", + "t1", + ".", + "population", + "desc", + "limit", + "value" + ], + "question": "英語を使用する人口が最も多い都市を探します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "T1.Population", + "FROM", + "city", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.CountryCode", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "ORDER", + "BY", + "T1.Population", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t1", + ".", + "population", + "from", + "city", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "countrycode", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "order", + "by", + "t1", + ".", + "population", + "desc", + "limit", + "value" + ], + "question": "英語を使用する人口が最も多い都市は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "Population", + ",", + "LifeExpectancy", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "population", + ",", + "lifeexpectancy", + "from", + "country", + "where", + "continent", + "=", + "value", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question": "面積が最大のアジアの国の名前、人口、予想寿命を探します", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "Population", + ",", + "LifeExpectancy", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "population", + ",", + "lifeexpectancy", + "from", + "country", + "where", + "continent", + "=", + "value", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question": "領土面積が最大のアジアの国の名前、人口、予想寿命は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Name", + "NOT", + "IN", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "name", + "not", + "in", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value", + ")" + ], + "question": "英語が公用語でない国の平均寿命はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", + "query_toks": [ + "SELECT", + "avg", + "(", + "LifeExpectancy", + ")", + "FROM", + "country", + "WHERE", + "Name", + "NOT", + "IN", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "lifeexpectancy", + ")", + "from", + "country", + "where", + "name", + "not", + "in", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value", + ")" + ], + "question": "英語が公用語ではない国の平均寿命を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + "FROM", + "country", + "WHERE", + "Name", + "NOT", + "IN", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + "from", + "country", + "where", + "name", + "not", + "in", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + ")" + ], + "question": "英語を使わない国に住む人の総数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + "FROM", + "country", + "WHERE", + "Name", + "NOT", + "IN", + "(", + "SELECT", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T2.Language", + "=", + "``", + "English", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + "from", + "country", + "where", + "name", + "not", + "in", + "(", + "select", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t2", + ".", + "language", + "=", + "value", + ")" + ], + "question": "英語を使わない国にどれくらいの人が住んでいますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.HeadOfState", + "=", + "``", + "Beatrix", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "headofstate", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question": "国家元首がビアトリクスである国で話されている公用語は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Beatrix\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "T2.Language", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "T1.HeadOfState", + "=", + "``", + "Beatrix", + "''", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "language", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "t1", + ".", + "headofstate", + "=", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question": "国家元首がビアトリクスである国で使われている公用語は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + "\"Beatrix\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "T2.Language", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "IndepYear", + "<", + "1930", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "t2", + ".", + "language", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "indepyear", + "<", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question": "1930年以前に成立された国で話されている公用語の総数はいくつですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1930, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\"", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "T2.Language", + ")", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "WHERE", + "IndepYear", + "<", + "1930", + "AND", + "T2.IsOfficial", + "=", + "``", + "T", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "t2", + ".", + "language", + ")", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "where", + "indepyear", + "<", + "value", + "and", + "t2", + ".", + "isofficial", + "=", + "value" + ], + "question": "1930年以前に設立された国の話されている公用語の総数はいくつですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + true + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 13, + false + ], + null + ], + 1930, + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "SurfaceArea", + ">", + "(", + "SELECT", + "min", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Europe", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "surfacearea", + ">", + "(", + "select", + "min", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question": "ヨーロッパのどの国よりも表面積が大きい国はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "SurfaceArea", + ">", + "(", + "SELECT", + "min", + "(", + "SurfaceArea", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Europe", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "surfacearea", + ">", + "(", + "select", + "min", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question": "ヨーロッパのどの国よりも表面積が大きい国はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT max(population) FROM country WHERE Continent = \"Asia\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + "AND", + "population", + "<", + "(", + "SELECT", + "max", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + "<", + "(", + "select", + "max", + "(", + "population", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question": "アジアのどの国よりも人口が少ないアフリカの国は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ], + "and", + [ + false, + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT min(population) FROM country WHERE Continent = \"Asia\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + "AND", + "population", + "<", + "(", + "SELECT", + "min", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + "<", + "(", + "select", + "min", + "(", + "population", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question": "アジアのどの国よりも人口が少ないアフリカの国は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ], + "and", + [ + false, + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT max(population) FROM country WHERE Continent = \"Africa\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "AND", + "population", + ">", + "(", + "SELECT", + "max", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + ">", + "(", + "select", + "max", + "(", + "population", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question": "アフリカのどの国よりも人口が多いアジアの国はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT min(population) FROM country WHERE Continent = \"Africa\")", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Asia", + "''", + "AND", + "population", + ">", + "(", + "SELECT", + "min", + "(", + "population", + ")", + "FROM", + "country", + "WHERE", + "Continent", + "=", + "``", + "Africa", + "''", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + ">", + "(", + "select", + "min", + "(", + "population", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + ")" + ], + "question": "アフリカのどの国よりも人口が���いアジアの国はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Africa\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "query_toks": [ + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "EXCEPT", + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "countrycode", + "from", + "countrylanguage", + "except", + "select", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "=", + "value" + ], + "question": "英語を話さない国の国コードは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "world_1", + "query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "query_toks": [ + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "EXCEPT", + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "countrycode", + "from", + "countrylanguage", + "except", + "select", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "=", + "value" + ], + "question": "英語を話さない国の国コードをリータンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "!", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "!", + "=", + "value" + ], + "question": "英語以外の言語を使用している国の国コードは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "!", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "!", + "=", + "value" + ], + "question": "英語以外の言語を使用している国の国コードを教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "query_toks": [ + "SELECT", + "Code", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "!", + "=", + "``", + "Republic", + "''", + "EXCEPT", + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "code", + "from", + "country", + "where", + "governmentform", + "!", + "=", + "value", + "except", + "select", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "=", + "value" + ], + "question": "英語を話さず、政府の形態が共和国でない国のコードは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "world_1", + "query": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", + "query_toks": [ + "SELECT", + "Code", + "FROM", + "country", + "WHERE", + "GovernmentForm", + "!", + "=", + "``", + "Republic", + "''", + "EXCEPT", + "SELECT", + "CountryCode", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "English", + "''" + ], + "query_toks_no_value": [ + "select", + "code", + "from", + "country", + "where", + "governmentform", + "!", + "=", + "value", + "except", + "select", + "countrycode", + "from", + "countrylanguage", + "where", + "language", + "=", + "value" + ], + "question": "英語を話さず、共和国の政府がない国のコードは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 19, + false + ], + null + ], + "\"Republic\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "city", + "AS", + "T2", + "ON", + "T2.CountryCode", + "=", + "T1.Code", + "WHERE", + "T1.Continent", + "=", + "'Europe", + "'", + "AND", + "T1.Name", + "NOT", + "IN", + "(", + "SELECT", + "T3.Name", + "FROM", + "country", + "AS", + "T3", + "JOIN", + "countrylanguage", + "AS", + "T4", + "ON", + "T3.Code", + "=", + "T4.CountryCode", + "WHERE", + "T4.IsOfficial", + "=", + "'T", + "'", + "AND", + "T4.Language", + "=", + "'English", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "city", + "as", + "t2", + "on", + "t2", + ".", + "countrycode", + "=", + "t1", + ".", + "code", + "where", + "t1", + ".", + "continent", + "=", + "value", + "and", + "t1", + ".", + "name", + "not", + "in", + "(", + "select", + "t3", + ".", + "name", + "from", + "country", + "as", + "t3", + "join", + "countrylanguage", + "as", + "t4", + "on", + "t3", + ".", + "code", + "=", + "t4", + ".", + "countrycode", + "where", + "t4", + ".", + "isofficial", + "=", + "value", + "and", + "t4", + ".", + "language", + "=", + "value", + ")" + ], + "question": "英語が公用語ではないヨーロッパ諸国のどの都市ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ], + "and", + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", + "query_toks": [ + "SELECT", + "DISTINCT", + "T2.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "city", + "AS", + "T2", + "ON", + "T2.CountryCode", + "=", + "T1.Code", + "WHERE", + "T1.Continent", + "=", + "'Europe", + "'", + "AND", + "T1.Name", + "NOT", + "IN", + "(", + "SELECT", + "T3.Name", + "FROM", + "country", + "AS", + "T3", + "JOIN", + "countrylanguage", + "AS", + "T4", + "ON", + "T3.Code", + "=", + "T4.CountryCode", + "WHERE", + "T4.IsOfficial", + "=", + "'T", + "'", + "AND", + "T4.Language", + "=", + "'English", + "'", + ")" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t2", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "city", + "as", + "t2", + "on", + "t2", + ".", + "countrycode", + "=", + "t1", + ".", + "code", + "where", + "t1", + ".", + "continent", + "=", + "value", + "and", + "t1", + ".", + "name", + "not", + "in", + "(", + "select", + "t3", + ".", + "name", + "from", + "country", + "as", + "t3", + "join", + "countrylanguage", + "as", + "t4", + "on", + "t3", + ".", + "code", + "=", + "t4", + ".", + "countrycode", + "where", + "t4", + ".", + "isofficial", + "=", + "value", + "and", + "t4", + ".", + "language", + "=", + "value", + ")" + ], + "question": "英語が公用語ではないヨーロッパ諸国のどの都市の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ], + "and", + [ + true, + 8, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"English\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = \"asia\"", + "query_toks": [ + "select", + "distinct", + "t3.name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1.code", + "=", + "t2.countrycode", + "join", + "city", + "as", + "t3", + "on", + "t1.code", + "=", + "t3.countrycode", + "where", + "t2.isofficial", + "=", + "\"t\"", + "and", + "t2.language", + "=", + "\"chinese\"", + "and", + "t1.continent", + "=", + "\"asia\"" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t3", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "join", + "city", + "as", + "t3", + "on", + "t1", + ".", + "code", + "=", + "t3", + ".", + "countrycode", + "where", + "t2", + ".", + "isofficial", + "=", + "value", + "and", + "t2", + ".", + "language", + "=", + "value", + "and", + "t1", + ".", + "continent", + "=", + "value" + ], + "question": "中国語が公用語であるアジア諸国のユニークな都市はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"t\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"chinese\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = \"Asia\"", + "query_toks": [ + "SELECT", + "DISTINCT", + "T3.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "JOIN", + "city", + "AS", + "T3", + "ON", + "T1.Code", + "=", + "T3.CountryCode", + "WHERE", + "T2.IsOfficial", + "=", + "'T", + "'", + "AND", + "T2.Language", + "=", + "'Chinese", + "'", + "AND", + "T1.Continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t3", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "join", + "city", + "as", + "t3", + "on", + "t1", + ".", + "code", + "=", + "t3", + ".", + "countrycode", + "where", + "t2", + ".", + "isofficial", + "=", + "value", + "and", + "t2", + ".", + "language", + "=", + "value", + "and", + "t1", + ".", + "continent", + "=", + "value" + ], + "question": "中国語が公用語であるアジア諸国のユニークな都市をリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 25, + false + ], + null + ], + "\"T\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Chinese\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "SurfaceArea", + ",", + "IndepYear", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "surfacearea", + ",", + "indepyear", + "from", + "country", + "order", + "by", + "population", + "limit", + "value" + ], + "question": "人口が最も少ない国の名前、成立の年、総面積は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "SurfaceArea", + ",", + "IndepYear", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "surfacearea", + ",", + "indepyear", + "from", + "country", + "order", + "by", + "population", + "limit", + "value" + ], + "question": "人口が最も少ない国の名前、成立の年、総面積を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "population", + ",", + "HeadOfState", + "FROM", + "country", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "population", + ",", + "headofstate", + "from", + "country", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question": "最大の面積を持つ国の人口、名前、国家元首は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + ",", + "population", + ",", + "HeadOfState", + "FROM", + "country", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "population", + ",", + "headofstate", + "from", + "country", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question": "最大の面積を持つ国の人口、名前、国家元首を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 20, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "T2.Language", + ")", + ",", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "t2", + ".", + "language", + ")", + ",", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "少なくとも3つの言語を話す国ごとに話されている言語の数と国名をリターンします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "T2.Language", + ")", + ",", + "T1.Name", + "FROM", + "country", + "AS", + "T1", + "JOIN", + "countrylanguage", + "AS", + "T2", + "ON", + "T1.Code", + "=", + "T2.CountryCode", + "GROUP", + "BY", + "T1.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "t2", + ".", + "language", + ")", + ",", + "t1", + ".", + "name", + "from", + "country", + "as", + "t1", + "join", + "countrylanguage", + "as", + "t2", + "on", + "t1", + ".", + "code", + "=", + "t2", + ".", + "countrycode", + "group", + "by", + "t1", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "少なくとも3つの言語を話す国ごとに話されている言語の数と国名は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "District", + "FROM", + "city", + "WHERE", + "Population", + ">", + "(", + "SELECT", + "avg", + "(", + "Population", + ")", + "FROM", + "city", + ")", + "GROUP", + "BY", + "District" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "district", + "from", + "city", + "where", + "population", + ">", + "(", + "select", + "avg", + "(", + "population", + ")", + "from", + "city", + ")", + "group", + "by", + "district" + ], + "question": "人口が都市の平均人口よりも多い各地区の都市の数を探します", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "District", + "FROM", + "city", + "WHERE", + "Population", + ">", + "(", + "SELECT", + "avg", + "(", + "Population", + ")", + "FROM", + "city", + ")", + "GROUP", + "BY", + "District" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "district", + "from", + "city", + "where", + "population", + ">", + "(", + "select", + "avg", + "(", + "population", + ")", + "from", + "city", + ")", + "group", + "by", + "district" + ], + "question": "人口が都市の平均人口よりも多い各地区の都市の数はどれくらいですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "GovernmentForm", + "FROM", + "country", + "GROUP", + "BY", + "GovernmentForm", + "HAVING", + "avg", + "(", + "LifeExpectancy", + ")", + ">", + "72" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "governmentform", + "from", + "country", + "group", + "by", + "governmentform", + "having", + "avg", + "(", + "lifeexpectancy", + ")", + ">", + "value" + ], + "question": "平均寿命が72を超える各政府形態の名前と総人口を探します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 5, + 15, + false + ], + null + ], + 72, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "GovernmentForm", + "FROM", + "country", + "GROUP", + "BY", + "GovernmentForm", + "HAVING", + "avg", + "(", + "LifeExpectancy", + ")", + ">", + "72" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "governmentform", + "from", + "country", + "group", + "by", + "governmentform", + "having", + "avg", + "(", + "lifeexpectancy", + ")", + ">", + "value" + ], + "question": "平均寿命が72を超える各政府形態の名前と総人口は何ですか。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 19, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 19, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 5, + 15, + false + ], + null + ], + 72, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "avg", + "(", + "LifeExpectancy", + ")", + ",", + "Continent", + "FROM", + "country", + "GROUP", + "BY", + "Continent", + "HAVING", + "avg", + "(", + "LifeExpectancy", + ")", + "<", + "72" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "lifeexpectancy", + ")", + ",", + "continent", + "from", + "country", + "group", + "by", + "continent", + "having", + "avg", + "(", + "lifeexpectancy", + ")", + "<", + "value" + ], + "question": "平均余命が72より短い各大陸の平均余命と総人口を探します", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 5, + 15, + false + ], + null + ], + 72, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", + "query_toks": [ + "SELECT", + "sum", + "(", + "Population", + ")", + ",", + "avg", + "(", + "LifeExpectancy", + ")", + ",", + "Continent", + "FROM", + "country", + "GROUP", + "BY", + "Continent", + "HAVING", + "avg", + "(", + "LifeExpectancy", + ")", + "<", + "72" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "lifeexpectancy", + ")", + ",", + "continent", + "from", + "country", + "group", + "by", + "continent", + "having", + "avg", + "(", + "lifeexpectancy", + ")", + "<", + "value" + ], + "question": "平均余命が72より短い各大陸の平均余命と総人口は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [ + [ + false, + 4, + [ + 0, + [ + 5, + 15, + false + ], + null + ], + 72, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", + "query_toks": [ + "SELECT", + "Name", + ",", + "SurfaceArea", + "FROM", + "country", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "5" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "surfacearea", + "from", + "country", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question": "面積が上位5位の国の名前と地域は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 5, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", + "query_toks": [ + "SELECT", + "Name", + ",", + "SurfaceArea", + "FROM", + "country", + "ORDER", + "BY", + "SurfaceArea", + "DESC", + "LIMIT", + "5" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "surfacearea", + "from", + "country", + "order", + "by", + "surfacearea", + "desc", + "limit", + "value" + ], + "question": "面積が上位5位の国の名前と地域をリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ], + "limit": 5, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "DESC", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "order", + "by", + "population", + "desc", + "limit", + "value" + ], + "question": "人口が上位3位の国の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "DESC", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "order", + "by", + "population", + "desc", + "limit", + "value" + ], + "question": "人口が上位3位の国の名前をリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "ASC", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "order", + "by", + "population", + "asc", + "limit", + "value" + ], + "question": "人口が最も少ない3つの国の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "ORDER", + "BY", + "Population", + "ASC", + "LIMIT", + "3" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "order", + "by", + "population", + "asc", + "limit", + "value" + ], + "question": "人口が最も少ない3つの国の名前をリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ] + ], + "limit": 3, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) FROM country WHERE continent = \"Asia\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "country", + "WHERE", + "continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question": "アジアにはいくつの国がありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) FROM country WHERE continent = \"Asia\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "country", + "WHERE", + "continent", + "=", + "``", + "Asia", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "country", + "where", + "continent", + "=", + "value" + ], + "question": "アジアにはいくつの国があるか数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Asia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "continent", + "=", + "``", + "Europe", + "''", + "AND", + "Population", + "=", + "``", + "80000", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + "=", + "value" + ], + "question": "ヨーロッパ大陸にあり、人口が80000人の国の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"80000\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "country", + "WHERE", + "continent", + "=", + "``", + "Europe", + "''", + "AND", + "Population", + "=", + "``", + "80000", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "population", + "=", + "value" + ], + "question": "ヨーロッパ大陸にあり、人口が80000人の国の名前を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Europe\"", + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"80000\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", + "query_toks": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "\"north america\"", + "and", + "surfacearea", + ">", + "3000" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "surfacearea", + ">", + "value" + ], + "question": "面積が3000より大きい北アメリカ大陸の国々の総人口と平均面積はどれくらいですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"north america\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + 3000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", + "query_toks": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "\"north america\"", + "and", + "surfacearea", + ">", + "3000" + ], + "query_toks_no_value": [ + "select", + "sum", + "(", + "population", + ")", + ",", + "avg", + "(", + "surfacearea", + ")", + "from", + "country", + "where", + "continent", + "=", + "value", + "and", + "surfacearea", + ">", + "value" + ], + "question": "面積が3000より大きい北アメリカ大陸の国々の総人口と平均面積を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 4, + [ + 0, + [ + 0, + 14, + false + ], + null + ] + ], + [ + 5, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"north america\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 12, + false + ], + null + ], + 3000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000", + "query_toks": [ + "SELECT", + "name", + "FROM", + "city", + "WHERE", + "Population", + "BETWEEN", + "160000", + "AND", + "900000" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "city", + "where", + "population", + "between", + "value", + "and", + "value" + ], + "question": "人口が160000から900000の間の都市は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + 160000, + 900000 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "select name from city where population between 160000 and 900000", + "query_toks": [ + "select", + "name", + "from", + "city", + "where", + "population", + "between", + "160000", + "and", + "900000" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "city", + "where", + "population", + "between", + "value", + "and", + "value" + ], + "question": "人口が160000から900000の間の都市をリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 1, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + 160000, + 900000 + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "LANGUAGE", + "FROM", + "countrylanguage", + "GROUP", + "BY", + "LANGUAGE", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "language", + "from", + "countrylanguage", + "group", + "by", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの国で話されている言語はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "LANGUAGE", + "FROM", + "countrylanguage", + "GROUP", + "BY", + "LANGUAGE", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "language", + "from", + "countrylanguage", + "group", + "by", + "language", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの国で話されている言語を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 24, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "CountryCode", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "countrycode", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "group", + "by", + "countrycode" + ], + "question": "各国で最も多くの人が話す言語は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "LANGUAGE", + ",", + "CountryCode", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "language", + ",", + "countrycode", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "group", + "by", + "countrycode" + ], + "question": "各国の国家コードと最も多くの人が話す言語は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "Spanish", + "''", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "where", + "language", + "=", + "value", + "group", + "by", + "countrycode" + ], + "question": "スペイン語が最も多くの人に話されている国の総数はいくつですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Spanish\"", + null + ] + ], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "Spanish", + "''", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "where", + "language", + "=", + "value", + "group", + "by", + "countrycode" + ], + "question": "スペイン語が最も多くの人に話されている国の数を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Spanish\"", + null + ] + ], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "CountryCode", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "Spanish", + "''", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "countrycode", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "where", + "language", + "=", + "value", + "group", + "by", + "countrycode" + ], + "question": "スペイン語が最も多くの人に話されている国のコードは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Spanish\"", + null + ] + ], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "world_1", + "query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", + "query_toks": [ + "SELECT", + "CountryCode", + ",", + "max", + "(", + "Percentage", + ")", + "FROM", + "countrylanguage", + "WHERE", + "LANGUAGE", + "=", + "``", + "Spanish", + "''", + "GROUP", + "BY", + "CountryCode" + ], + "query_toks_no_value": [ + "select", + "countrycode", + ",", + "max", + "(", + "percentage", + ")", + "from", + "countrylanguage", + "where", + "language", + "=", + "value", + "group", + "by", + "countrycode" + ], + "question": "スペイン語が最も多くの人に話されている国のコードをリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 24, + false + ], + null + ], + "\"Spanish\"", + null + ] + ], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT count(*) FROM conductor", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "conductor" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "conductor" + ], + "question": "そこで指揮者何人いますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT count(*) FROM conductor", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "conductor" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "conductor" + ], + "question": "指揮者の数を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Age ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Age", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "age", + "asc" + ], + "question": "年齢の昇順で指揮者の名前をリストします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Age ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Age", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "age", + "asc" + ], + "question": "年齢の昇順での指揮者の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor WHERE Nationality != 'USA'", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "WHERE", + "Nationality", + "!", + "=", + "'USA", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "where", + "nationality", + "!", + "=", + "value" + ], + "question": "国籍がアメリカでない指揮者の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor WHERE Nationality != 'USA'", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "WHERE", + "Nationality", + "!", + "=", + "'USA", + "'" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "where", + "nationality", + "!", + "=", + "value" + ], + "question": "国籍がアメリカでない指揮者の名前をリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + "\"USA\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "ORDER", + "BY", + "Year_of_Founded", + "DESC" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "order", + "by", + "year_of_founded", + "desc" + ], + "question": "オーケストラのレコード会社は、成立された年の降順で何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "ORDER", + "BY", + "Year_of_Founded", + "DESC" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "order", + "by", + "year_of_founded", + "desc" + ], + "question": "オーケストラのレコード会社は、成立された年の降順をリターンします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT avg(Attendance) FROM SHOW", + "query_toks": [ + "SELECT", + "avg", + "(", + "Attendance", + ")", + "FROM", + "SHOW" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "attendance", + ")", + "from", + "show" + ], + "question": "ショーの平均出席者数は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT avg(Attendance) FROM SHOW", + "query_toks": [ + "SELECT", + "avg", + "(", + "Attendance", + ")", + "FROM", + "SHOW" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "attendance", + ")", + "from", + "show" + ], + "question": "ショーの平均出席者数をリターンします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", + "query_toks": [ + "SELECT", + "max", + "(", + "SHARE", + ")", + ",", + "min", + "(", + "SHARE", + ")", + "FROM", + "performance", + "WHERE", + "TYPE", + "!", + "=", + "``", + "Live", + "final", + "''" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "share", + ")", + ",", + "min", + "(", + "share", + ")", + "from", + "performance", + "where", + "type", + "!", + "=", + "value" + ], + "question": "タイプが「ライブファイナル」ではないパフォーマンスの最大および最小のシェアはどれくらいですか。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"Live final\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"", + "query_toks": [ + "SELECT", + "max", + "(", + "SHARE", + ")", + ",", + "min", + "(", + "SHARE", + ")", + "FROM", + "performance", + "WHERE", + "TYPE", + "!", + "=", + "``", + "Live", + "final", + "''" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "share", + ")", + ",", + "min", + "(", + "share", + ")", + "from", + "performance", + "where", + "type", + "!", + "=", + "value" + ], + "question": "タイプが「ライブファイナル」ではないパフォーマンスの最大および最小のシェアをリターンします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ], + [ + 2, + [ + 0, + [ + 0, + 18, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 14, + false + ], + null + ], + "\"Live final\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT count(DISTINCT Nationality) FROM conductor", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "Nationality", + ")", + "FROM", + "conductor" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "nationality", + ")", + "from", + "conductor" + ], + "question": "指揮者にはいくつの国籍がありますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 4, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT count(DISTINCT Nationality) FROM conductor", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "Nationality", + ")", + "FROM", + "conductor" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "nationality", + ")", + "from", + "conductor" + ], + "question": "指揮者の国籍の数を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 4, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Year_of_Work", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "year_of_work", + "desc" + ], + "question": "指揮者の名前を勤務年数の降順でリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Year_of_Work", + "DESC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "year_of_work", + "desc" + ], + "question": "指揮者の名前と降順での勤務年数は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Year_of_Work", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "year_of_work", + "desc", + "limit", + "value" + ], + "question": "勤続年数が最も多い指揮者の名前をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "conductor", + "ORDER", + "BY", + "Year_of_Work", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "conductor", + "order", + "by", + "year_of_work", + "desc", + "limit", + "value" + ], + "question": "勤続年数が最も多い指揮者の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "T2.Orchestra", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t2", + ".", + "orchestra", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id" + ], + "question": "指揮者と彼らが指揮したオーケストラの名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "T2.Orchestra", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t2", + ".", + "orchestra", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id" + ], + "question": "指揮者と彼らが指揮したオーケストラの名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "GROUP", + "BY", + "T2.Conductor_ID", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "group", + "by", + "t2", + ".", + "conductor_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "複数のオーケストラを指揮した指揮者の名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "GROUP", + "BY", + "T2.Conductor_ID", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "group", + "by", + "t2", + ".", + "conductor_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "複数のオーケストラを指揮した指揮者の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "GROUP", + "BY", + "T2.Conductor_ID", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "group", + "by", + "t2", + ".", + "conductor_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くのオーケストラを指揮した指揮者の名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "GROUP", + "BY", + "T2.Conductor_ID", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "group", + "by", + "t2", + ".", + "conductor_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くのオーケストラを指揮した指揮者の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "WHERE", + "Year_of_Founded", + ">", + "2008" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "where", + "year_of_founded", + ">", + "value" + ], + "question": "2008年以降に設立されたオーケストラを指揮した指揮者の名前を教えてください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2008, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "conductor", + "AS", + "T1", + "JOIN", + "orchestra", + "AS", + "T2", + "ON", + "T1.Conductor_ID", + "=", + "T2.Conductor_ID", + "WHERE", + "Year_of_Founded", + ">", + "2008" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "conductor", + "as", + "t1", + "join", + "orchestra", + "as", + "t2", + "on", + "t1", + ".", + "conductor_id", + "=", + "t2", + ".", + "conductor_id", + "where", + "year_of_founded", + ">", + "value" + ], + "question": "2008年以降に設立されたオーケストラを指揮した指揮者の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2008, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company", + "query_toks": [ + "SELECT", + "Record_Company", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "orchestra", + "GROUP", + "BY", + "Record_Company" + ], + "query_toks_no_value": [ + "select", + "record_company", + ",", + "count", + "(", + "*", + ")", + "from", + "orchestra", + "group", + "by", + "record_company" + ], + "question": "さまざまなレコード会社とそれに対応するオーケストラの数を示してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company", + "query_toks": [ + "SELECT", + "Record_Company", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "orchestra", + "GROUP", + "BY", + "Record_Company" + ], + "query_toks_no_value": [ + "select", + "record_company", + ",", + "count", + "(", + "*", + ")", + "from", + "orchestra", + "group", + "by", + "record_company" + ], + "question": "さまざまなレコード会社にあるオーケストラの数は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", + "query_toks": [ + "SELECT", + "Major_Record_Format", + "FROM", + "orchestra", + "GROUP", + "BY", + "Major_Record_Format", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "ASC" + ], + "query_toks_no_value": [ + "select", + "major_record_format", + "from", + "orchestra", + "group", + "by", + "major_record_format", + "order", + "by", + "count", + "(", + "*", + ")", + "asc" + ], + "question": "オーケストラのレコード形式を数の昇順で表示してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", + "query_toks": [ + "SELECT", + "Major_Record_Format", + "FROM", + "orchestra", + "GROUP", + "BY", + "Major_Record_Format", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "ASC" + ], + "query_toks_no_value": [ + "select", + "major_record_format", + "from", + "orchestra", + "group", + "by", + "major_record_format", + "order", + "by", + "count", + "(", + "*", + ")", + "asc" + ], + "question": "頻度でソートされているオーケストラの主なレコード形式は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 11, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "GROUP", + "BY", + "Record_Company", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "group", + "by", + "record_company", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くのオーケストラがシェアしているレコード会社をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "GROUP", + "BY", + "Record_Company", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "group", + "by", + "record_company", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くのオーケストラがシェアしているレコード会社はどれですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 9, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", + "query_toks": [ + "SELECT", + "Orchestra", + "FROM", + "orchestra", + "WHERE", + "Orchestra_ID", + "NOT", + "IN", + "(", + "SELECT", + "Orchestra_ID", + "FROM", + "performance", + ")" + ], + "query_toks_no_value": [ + "select", + "orchestra", + "from", + "orchestra", + "where", + "orchestra_id", + "not", + "in", + "(", + "select", + "orchestra_id", + "from", + "performance", + ")" + ], + "question": "パフォーマンスのないオーケストラの名前をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", + "query_toks": [ + "SELECT", + "Orchestra", + "FROM", + "orchestra", + "WHERE", + "Orchestra_ID", + "NOT", + "IN", + "(", + "SELECT", + "Orchestra_ID", + "FROM", + "performance", + ")" + ], + "query_toks_no_value": [ + "select", + "orchestra", + "from", + "orchestra", + "where", + "orchestra_id", + "not", + "in", + "(", + "select", + "orchestra_id", + "from", + "performance", + ")" + ], + "question": "パフォーマンスのないオーケストラはどれですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "WHERE", + "Year_of_Founded", + "<", + "2003", + "INTERSECT", + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "WHERE", + "Year_of_Founded", + ">", + "2003" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "where", + "year_of_founded", + "<", + "value", + "intersect", + "select", + "record_company", + "from", + "orchestra", + "where", + "year_of_founded", + ">", + "value" + ], + "question": "2003年以前と2003年以降に設立されたオーケストラがシェアされたレコード会社を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2003, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2003, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", + "query_toks": [ + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "WHERE", + "Year_of_Founded", + "<", + "2003", + "INTERSECT", + "SELECT", + "Record_Company", + "FROM", + "orchestra", + "WHERE", + "Year_of_Founded", + ">", + "2003" + ], + "query_toks_no_value": [ + "select", + "record_company", + "from", + "orchestra", + "where", + "year_of_founded", + "<", + "value", + "intersect", + "select", + "record_company", + "from", + "orchestra", + "where", + "year_of_founded", + ">", + "value" + ], + "question": "2003年以前と2003年以降に設立されたオーケストラがシェアされたレコード会社は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2003, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + 2003, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "orchestra", + "WHERE", + "Major_Record_Format", + "=", + "``", + "CD", + "''", + "OR", + "Major_Record_Format", + "=", + "``", + "DVD", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "orchestra", + "where", + "major_record_format", + "=", + "value", + "or", + "major_record_format", + "=", + "value" + ], + "question": "レコード形式が「CD」または「DVD」であるオーケストラの数を探します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"CD\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"DVD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"", + "query_toks": [ + "SELECT", + "COUNT", + "(", + "*", + ")", + "FROM", + "orchestra", + "WHERE", + "Major_Record_Format", + "=", + "``", + "CD", + "''", + "OR", + "Major_Record_Format", + "=", + "``", + "DVD", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "orchestra", + "where", + "major_record_format", + "=", + "value", + "or", + "major_record_format", + "=", + "value" + ], + "question": "レコード形式が「CD」または「DVD」であるオーケストラの数を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"CD\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 11, + false + ], + null + ], + "\"DVD\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "Year_of_Founded", + "FROM", + "orchestra", + "AS", + "T1", + "JOIN", + "performance", + "AS", + "T2", + "ON", + "T1.Orchestra_ID", + "=", + "T2.Orchestra_ID", + "GROUP", + "BY", + "T2.Orchestra_ID", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "year_of_founded", + "from", + "orchestra", + "as", + "t1", + "join", + "performance", + "as", + "t2", + "on", + "t1", + ".", + "orchestra_id", + "=", + "t2", + ".", + "orchestra_id", + "group", + "by", + "t2", + ".", + "orchestra_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "複数のパーフォーマンスを行ったオーケストラが設立された年を示してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 13, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "orchestra", + "query": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "Year_of_Founded", + "FROM", + "orchestra", + "AS", + "T1", + "JOIN", + "performance", + "AS", + "T2", + "ON", + "T1.Orchestra_ID", + "=", + "T2.Orchestra_ID", + "GROUP", + "BY", + "T2.Orchestra_ID", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "year_of_founded", + "from", + "orchestra", + "as", + "t1", + "join", + "performance", + "as", + "t2", + "on", + "t1", + ".", + "orchestra_id", + "=", + "t2", + ".", + "orchestra_id", + "group", + "by", + "t2", + ".", + "orchestra_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "複数のパーフォーマンスを行ったオーケストラが設立された年は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 2 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 13, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 13, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Highschooler", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "highschooler" + ], + "question": "高校生は何人いますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Highschooler", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "highschooler" + ], + "question": "高校生の人数を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT name , grade FROM Highschooler", + "query_toks": [ + "SELECT", + "name", + ",", + "grade", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "grade", + "from", + "highschooler" + ], + "question": "各高校生の名前と学年を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT name , grade FROM Highschooler", + "query_toks": [ + "SELECT", + "name", + ",", + "grade", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "grade", + "from", + "highschooler" + ], + "question": "各高校生の名前と学年は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler" + ], + "question": "高校生全員の学年を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler" + ], + "question": "各高校生の学年は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "WHERE", + "name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "where", + "name", + "=", + "value" + ], + "question": "ケイルが入っている学年はどれですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "WHERE", + "name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "where", + "name", + "=", + "value" + ], + "question": "高校生のケイルが入っている学年をリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT name FROM Highschooler WHERE grade = 10", + "query_toks": [ + "SELECT", + "name", + "FROM", + "Highschooler", + "WHERE", + "grade", + "=", + "10" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "highschooler", + "where", + "grade", + "=", + "value" + ], + "question": "学年10の高校生全員の名前を表示します", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 10, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT name FROM Highschooler WHERE grade = 10", + "query_toks": [ + "SELECT", + "name", + "FROM", + "Highschooler", + "WHERE", + "grade", + "=", + "10" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "highschooler", + "where", + "grade", + "=", + "value" + ], + "question": "学年10の高校生全員の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 10, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", + "query_toks": [ + "SELECT", + "ID", + "FROM", + "Highschooler", + "WHERE", + "name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "highschooler", + "where", + "name", + "=", + "value" + ], + "question": "高校生のケイルのIDを表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"", + "query_toks": [ + "SELECT", + "ID", + "FROM", + "Highschooler", + "WHERE", + "name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "highschooler", + "where", + "name", + "=", + "value" + ], + "question": "ケイルのIDは何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler", + "WHERE", + "grade", + "=", + "9", + "OR", + "grade", + "=", + "10" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "highschooler", + "where", + "grade", + "=", + "value", + "or", + "grade", + "=", + "value" + ], + "question": "学年9か10の高校生は何人いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 9, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 10, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler", + "WHERE", + "grade", + "=", + "9", + "OR", + "grade", + "=", + "10" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "highschooler", + "where", + "grade", + "=", + "value", + "or", + "grade", + "=", + "value" + ], + "question": "学年9か10の高校生の数を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 9, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 10, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade , count(*) FROM Highschooler GROUP BY grade", + "query_toks": [ + "SELECT", + "grade", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade" + ], + "query_toks_no_value": [ + "select", + "grade", + ",", + "count", + "(", + "*", + ")", + "from", + "highschooler", + "group", + "by", + "grade" + ], + "question": "各学年の高校生の人数を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade , count(*) FROM Highschooler GROUP BY grade", + "query_toks": [ + "SELECT", + "grade", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade" + ], + "query_toks_no_value": [ + "select", + "grade", + ",", + "count", + "(", + "*", + ")", + "from", + "highschooler", + "group", + "by", + "grade" + ], + "question": "各学年には高校生何人いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "group", + "by", + "grade", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "高校生が一番多い学年は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "group", + "by", + "grade", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "高校生が一番多い学年をリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "4" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "group", + "by", + "grade", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "少なくとも4人いる学年を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 4, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4", + "query_toks": [ + "SELECT", + "grade", + "FROM", + "Highschooler", + "GROUP", + "BY", + "grade", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "4" + ], + "query_toks_no_value": [ + "select", + "grade", + "from", + "highschooler", + "group", + "by", + "grade", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "少なくとも4人いる学年は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 3, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 4, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id , count(*) FROM Friend GROUP BY student_id", + "query_toks": [ + "SELECT", + "student_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "GROUP", + "BY", + "student_id" + ], + "query_toks_no_value": [ + "select", + "student_id", + ",", + "count", + "(", + "*", + ")", + "from", + "friend", + "group", + "by", + "student_id" + ], + "question": "学生IDとそれぞれに対応する友達の数を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id , count(*) FROM Friend GROUP BY student_id", + "query_toks": [ + "SELECT", + "student_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "GROUP", + "BY", + "student_id" + ], + "query_toks_no_value": [ + "select", + "student_id", + ",", + "count", + "(", + "*", + ")", + "from", + "friend", + "group", + "by", + "student_id" + ], + "question": "各学生は友達何人いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id" + ], + "question": "学生の名前とそれぞれに対応する友達の数を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id" + ], + "question": "学生の名前とそれぞれに対応する友達の数は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "友達が���番多い高校生の名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "友達が一番多い高校生の名前をリターンします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "3" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "友達が3人以上いる高校生の名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "3" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "友達が3人以上いる高校生の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 3, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "T3.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "JOIN", + "Highschooler", + "AS", + "T3", + "ON", + "T1.friend_id", + "=", + "T3.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "join", + "highschooler", + "as", + "t3", + "on", + "t1", + ".", + "friend_id", + "=", + "t3", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question": "高校生のケイルの友達全員の名前を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "T3.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "JOIN", + "Highschooler", + "AS", + "T3", + "ON", + "T1.friend_id", + "=", + "T3.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "t3", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "join", + "highschooler", + "as", + "t3", + "on", + "t1", + ".", + "friend_id", + "=", + "t3", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question": "高校生のケイルの友達全員の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question": "高校生のケイルは友達何人いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question": "高校生のケイルの友達の数を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", + "query_toks": [ + "SELECT", + "id", + "FROM", + "Highschooler", + "EXCEPT", + "SELECT", + "student_id", + "FROM", + "Friend" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "highschooler", + "except", + "select", + "student_id", + "from", + "friend" + ], + "question": "友達いない学生のIDを表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "network_1", + "query": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend", + "query_toks": [ + "SELECT", + "id", + "FROM", + "Highschooler", + "EXCEPT", + "SELECT", + "student_id", + "FROM", + "Friend" + ], + "query_toks_no_value": [ + "select", + "id", + "from", + "highschooler", + "except", + "select", + "student_id", + "from", + "friend" + ], + "question": "友達いない学生のIDは何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 1, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "network_1", + "query": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", + "query_toks": [ + "SELECT", + "name", + "FROM", + "Highschooler", + "EXCEPT", + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "highschooler", + "except", + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id" + ], + "question": "友達いない全ての学生の名前を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "network_1", + "query": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", + "query_toks": [ + "SELECT", + "name", + "FROM", + "Highschooler", + "EXCEPT", + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "highschooler", + "except", + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id" + ], + "question": "友達いない全ての学生の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", + "query_toks": [ + "SELECT", + "student_id", + "FROM", + "Friend", + "INTERSECT", + "SELECT", + "liked_id", + "FROM", + "Likes" + ], + "query_toks_no_value": [ + "select", + "student_id", + "from", + "friend", + "intersect", + "select", + "liked_id", + "from", + "likes" + ], + "question": "友達がいて、いいねされた高校生のIDを表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", + "query_toks": [ + "SELECT", + "student_id", + "FROM", + "Friend", + "INTERSECT", + "SELECT", + "liked_id", + "FROM", + "Likes" + ], + "query_toks_no_value": [ + "select", + "student_id", + "from", + "friend", + "intersect", + "select", + "liked_id", + "from", + "likes" + ], + "question": "友達がいて、いいねされた高校生のIDは何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "INTERSECT", + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.liked_id", + "=", + "T2.id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "intersect", + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "liked_id", + "=", + "t2", + ".", + "id" + ], + "question": "友達がいて、いいねされた高校生の名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "INTERSECT", + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.liked_id", + "=", + "T2.id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "intersect", + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "liked_id", + "=", + "t2", + ".", + "id" + ], + "question": "友達がいて、いいねされた高校生の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id , count(*) FROM Likes GROUP BY student_id", + "query_toks": [ + "SELECT", + "student_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "GROUP", + "BY", + "student_id" + ], + "query_toks_no_value": [ + "select", + "student_id", + ",", + "count", + "(", + "*", + ")", + "from", + "likes", + "group", + "by", + "student_id" + ], + "question": "各学生IDのいいねの数を数えてください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT student_id , count(*) FROM Likes GROUP BY student_id", + "query_toks": [ + "SELECT", + "student_id", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "GROUP", + "BY", + "student_id" + ], + "query_toks_no_value": [ + "select", + "student_id", + ",", + "count", + "(", + "*", + ")", + "from", + "likes", + "group", + "by", + "student_id" + ], + "question": "各学生IDのいいねの数はどれくらいありますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 6, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id" + ], + "question": "いいねをもらえた各高校生の名前とそのいいねの数を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id", + "query_toks": [ + "SELECT", + "T2.name", + ",", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + ",", + "count", + "(", + "*", + ")", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id" + ], + "question": "いいねをもらえた各高校生の名前とそのいいねの数は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "いいねが一番多い高校生の名前は?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "いいねが一番多い学生の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "いいねが2つ以上ある学生の名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "いいねが2つ以上ある学生の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 6, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.grade", + ">", + "5", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "grade", + ">", + "value", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "成績が5以上で、友達が2人以上いる学生の名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 5, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T2.name", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.grade", + ">", + "5", + "GROUP", + "BY", + "T1.student_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "name", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "grade", + ">", + "value", + "group", + "by", + "t1", + ".", + "student_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "成績が5以上で、友達が2人以上いる学生の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 5, + null + ] + ], + "groupBy": [ + [ + 0, + 4, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question": "ケイルがどれくらいのいいねありますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Likes", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + "WHERE", + "T2.name", + "=", + "``", + "Kyle", + "''" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "likes", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + "where", + "t2", + ".", + "name", + "=", + "value" + ], + "question": "ケイルがもらったいいねの数をリターンします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 2, + false + ], + null + ], + "\"Kyle\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", + "query_toks": [ + "SELECT", + "avg", + "(", + "grade", + ")", + "FROM", + "Highschooler", + "WHERE", + "id", + "IN", + "(", + "SELECT", + "T1.student_id", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "grade", + ")", + "from", + "highschooler", + "where", + "id", + "in", + "(", + "select", + "t1", + ".", + "student_id", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + ")" + ], + "question": "友達がいる学生の平均学年を探します", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", + "query_toks": [ + "SELECT", + "avg", + "(", + "grade", + ")", + "FROM", + "Highschooler", + "WHERE", + "id", + "IN", + "(", + "SELECT", + "T1.student_id", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "grade", + ")", + "from", + "highschooler", + "where", + "id", + "in", + "(", + "select", + "t1", + ".", + "student_id", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + ")" + ], + "question": "友達がいる学生の平均学年は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", + "query_toks": [ + "SELECT", + "min", + "(", + "grade", + ")", + "FROM", + "Highschooler", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "T1.student_id", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + ")" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "grade", + ")", + "from", + "highschooler", + "where", + "id", + "not", + "in", + "(", + "select", + "t1", + ".", + "student_id", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + ")" + ], + "question": "友達いない学生の最低学年をさがしてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "network_1", + "query": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", + "query_toks": [ + "SELECT", + "min", + "(", + "grade", + ")", + "FROM", + "Highschooler", + "WHERE", + "id", + "NOT", + "IN", + "(", + "SELECT", + "T1.student_id", + "FROM", + "Friend", + "AS", + "T1", + "JOIN", + "Highschooler", + "AS", + "T2", + "ON", + "T1.student_id", + "=", + "T2.id", + ")" + ], + "query_toks_no_value": [ + "select", + "min", + "(", + "grade", + ")", + "from", + "highschooler", + "where", + "id", + "not", + "in", + "(", + "select", + "t1", + ".", + "student_id", + "from", + "friend", + "as", + "t1", + "join", + "highschooler", + "as", + "t2", + "on", + "t1", + ".", + "student_id", + "=", + "t2", + ".", + "id", + ")" + ], + "question": "友達いない学生の最低学年は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 4, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", + "query_toks": [ + "SELECT", + "state", + "FROM", + "Owners", + "INTERSECT", + "SELECT", + "state", + "FROM", + "Professionals" + ], + "query_toks_no_value": [ + "select", + "state", + "from", + "owners", + "intersect", + "select", + "state", + "from", + "professionals" + ], + "question": "所有者とプロが住んでいる州はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", + "query_toks": [ + "SELECT", + "state", + "FROM", + "Owners", + "INTERSECT", + "SELECT", + "state", + "FROM", + "Professionals" + ], + "query_toks_no_value": [ + "select", + "state", + "from", + "owners", + "intersect", + "select", + "state", + "from", + "professionals" + ], + "question": "所有者とプロが住んでいる州は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 15, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs", + "WHERE", + "dog_id", + "IN", + "(", + "SELECT", + "dog_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs", + "where", + "dog_id", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "question": "治療を受けた犬の平均年齢は何歳ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs", + "WHERE", + "dog_id", + "IN", + "(", + "SELECT", + "dog_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs", + "where", + "dog_id", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "question": "治療を受けた犬の平均年齢は何歳を探します", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", + "query_toks": [ + "SELECT", + "professional_id", + ",", + "last_name", + ",", + "cell_number", + "FROM", + "Professionals", + "WHERE", + "state", + "=", + "'Indiana", + "'", + "UNION", + "SELECT", + "T1.professional_id", + ",", + "T1.last_name", + ",", + "T1.cell_number", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "professional_id", + ",", + "last_name", + ",", + "cell_number", + "from", + "professionals", + "where", + "state", + "=", + "value", + "union", + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "last_name", + ",", + "t1", + ".", + "cell_number", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "インディアナ州に住んでいる2つ以上の手術をしたプロは誰ですか? 彼または彼女のID、苗字、携帯電話をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Indiana\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", + "query_toks": [ + "SELECT", + "professional_id", + ",", + "last_name", + ",", + "cell_number", + "FROM", + "Professionals", + "WHERE", + "state", + "=", + "'Indiana", + "'", + "UNION", + "SELECT", + "T1.professional_id", + ",", + "T1.last_name", + ",", + "T1.cell_number", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "2" + ], + "query_toks_no_value": [ + "select", + "professional_id", + ",", + "last_name", + ",", + "cell_number", + "from", + "professionals", + "where", + "state", + "=", + "value", + "union", + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "last_name", + ",", + "t1", + ".", + "cell_number", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "インディアナ州に住んでいる2つ以上の手術をしたプロのID、苗字、携帯電話をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Indiana\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", + "query_toks": [ + "select", + "name", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + "group", + "by", + "dog_id", + "having", + "sum", + "(", + "cost_of_treatment", + ")", + ">", + "1000", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + "group", + "by", + "dog_id", + "having", + "sum", + "(", + "cost_of_treatment", + ")", + ">", + "value", + ")" + ], + "question": "飼い主の治療費が1000を超えている犬はどれですか? 犬の名前をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 45, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 4, + 49, + false + ], + null + ], + 1000, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )", + "query_toks": [ + "select", + "name", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + "group", + "by", + "dog_id", + "having", + "sum", + "(", + "cost_of_treatment", + ")", + ">", + "1000", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + "group", + "by", + "dog_id", + "having", + "sum", + "(", + "cost_of_treatment", + ")", + ">", + "value", + ")" + ], + "question": "飼い主の治療費が1000を超えている犬の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 45, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 4, + 49, + false + ], + null + ], + 1000, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", + "query_toks": [ + "SELECT", + "first_name", + "FROM", + "Professionals", + "UNION", + "SELECT", + "first_name", + "FROM", + "Owners", + "EXCEPT", + "SELECT", + "name", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "first_name", + "from", + "professionals", + "union", + "select", + "first_name", + "from", + "owners", + "except", + "select", + "name", + "from", + "dogs" + ], + "question": "プロや飼い主に使用されて犬の名前として使用されていない名はどれですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", + "query_toks": [ + "SELECT", + "first_name", + "FROM", + "Professionals", + "UNION", + "SELECT", + "first_name", + "FROM", + "Owners", + "EXCEPT", + "SELECT", + "name", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "first_name", + "from", + "professionals", + "union", + "select", + "first_name", + "from", + "owners", + "except", + "select", + "name", + "from", + "dogs" + ], + "question": "プロや飼い主に使用されて犬の名前として使用されていない名を探してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", + "query_toks": [ + "SELECT", + "professional_id", + ",", + "role_code", + ",", + "email_address", + "FROM", + "Professionals", + "EXCEPT", + "SELECT", + "T1.professional_id", + ",", + "T1.role_code", + ",", + "T1.email_address", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id" + ], + "query_toks_no_value": [ + "select", + "professional_id", + ",", + "role_code", + ",", + "email_address", + "from", + "professionals", + "except", + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "role_code", + ",", + "t1", + ".", + "email_address", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id" + ], + "question": "どのプロが犬の手術をしたことありませんか? プロのID、役割、および電子メールをリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", + "query_toks": [ + "SELECT", + "professional_id", + ",", + "role_code", + ",", + "email_address", + "FROM", + "Professionals", + "EXCEPT", + "SELECT", + "T1.professional_id", + ",", + "T1.role_code", + ",", + "T1.email_address", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id" + ], + "query_toks_no_value": [ + "select", + "professional_id", + ",", + "role_code", + ",", + "email_address", + "from", + "professionals", + "except", + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "role_code", + ",", + "t1", + ".", + "email_address", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id" + ], + "question": "犬の手術をしたことないプロの名前とID、役割、および電子メールをリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T2.first_name", + ",", + "T2.last_name", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Owners", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t2", + ".", + "first_name", + ",", + "t2", + ".", + "last_name", + "from", + "dogs", + "as", + "t1", + "join", + "owners", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの飼い主が最も多くの犬を飼っていますか? 飼い主のID、名前、苗字をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 21, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T2.first_name", + ",", + "T2.last_name", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Owners", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t2", + ".", + "first_name", + ",", + "t2", + ".", + "last_name", + "from", + "dogs", + "as", + "t1", + "join", + "owners", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "最も多くの犬を飼っている飼い主のID、名前、苗字をリターンします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 4 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 21, + false + ], + null + ], + [ + 0, + 10, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 21, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.professional_id", + ",", + "T1.role_code", + ",", + "T1.first_name", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "role_code", + ",", + "t1", + ".", + "first_name", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "どのプロが少なくとも2つ手術を行っていましたか? プロのID、役割、および名前をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.professional_id", + ",", + "T1.role_code", + ",", + "T1.first_name", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "role_code", + ",", + "t1", + ".", + "first_name", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "少なくとも2つ手術を行っていたプロのID、役割、および名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.breed_name", + "FROM", + "Breeds", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.breed_code", + "=", + "T2.breed_code", + "GROUP", + "BY", + "T1.breed_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "breed_name", + "from", + "breeds", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "breed_code", + "=", + "t2", + ".", + "breed_code", + "group", + "by", + "t1", + ".", + "breed_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "犬が最も多い品種の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.breed_name", + "FROM", + "Breeds", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.breed_code", + "=", + "T2.breed_code", + "GROUP", + "BY", + "T1.breed_name", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "breed_name", + "from", + "breeds", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "breed_code", + "=", + "t2", + ".", + "breed_code", + "group", + "by", + "t1", + ".", + "breed_name", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "犬が最も多い品種の名前は何ですか?教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 23, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T1.last_name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "JOIN", + "Treatments", + "AS", + "T3", + "ON", + "T2.dog_id", + "=", + "T3.dog_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t1", + ".", + "last_name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "join", + "treatments", + "as", + "t3", + "on", + "t2", + ".", + "dog_id", + "=", + "t3", + ".", + "dog_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "どの飼い主が彼または彼女の犬の最も多くの治療にお金を払っていますか? 飼い主のIDと苗字をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T1.last_name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "JOIN", + "Treatments", + "AS", + "T3", + "ON", + "T2.dog_id", + "=", + "T3.dog_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t1", + ".", + "last_name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "join", + "treatments", + "as", + "t3", + "on", + "t2", + ".", + "dog_id", + "=", + "t3", + ".", + "dog_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "彼または彼女の犬の最も多くの治療にお金を払っていた飼い主のIDと苗字を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.treatment_type_description", + "FROM", + "Treatment_types", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.treatment_type_code", + "=", + "T2.treatment_type_code", + "GROUP", + "BY", + "T1.treatment_type_code", + "ORDER", + "BY", + "sum", + "(", + "cost_of_treatment", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "treatment_type_description", + "from", + "treatment_types", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "treatment_type_code", + "=", + "t2", + ".", + "treatment_type_code", + "group", + "by", + "t1", + ".", + "treatment_type_code", + "order", + "by", + "sum", + "(", + "cost_of_treatment", + ")", + "asc", + "limit", + "value" + ], + "question": "合計で最も費用がかからない治療タイプは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 4, + 49, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.treatment_type_description", + "FROM", + "Treatment_types", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.treatment_type_code", + "=", + "T2.treatment_type_code", + "GROUP", + "BY", + "T1.treatment_type_code", + "ORDER", + "BY", + "sum", + "(", + "cost_of_treatment", + ")", + "ASC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "treatment_type_description", + "from", + "treatment_types", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "treatment_type_code", + "=", + "t2", + ".", + "treatment_type_code", + "group", + "by", + "t1", + ".", + "treatment_type_code", + "order", + "by", + "sum", + "(", + "cost_of_treatment", + ")", + "asc", + "limit", + "value" + ], + "question": "合計で最も費用が最低の治療タイプを教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 8, + false + ], + null + ], + [ + 0, + 47, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 8, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 4, + 49, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T1.zip_code", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "JOIN", + "Treatments", + "AS", + "T3", + "ON", + "T2.dog_id", + "=", + "T3.dog_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "sum", + "(", + "T3.cost_of_treatment", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t1", + ".", + "zip_code", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "join", + "treatments", + "as", + "t3", + "on", + "t2", + ".", + "dog_id", + "=", + "t3", + ".", + "dog_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "sum", + "(", + "t3", + ".", + "cost_of_treatment", + ")", + "desc", + "limit", + "value" + ], + "question": "犬に合計で最も多くの金額を支払った飼い主は誰ですか? 飼い主のIDと郵便番号を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 4, + 49, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "T1.owner_id", + ",", + "T1.zip_code", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "JOIN", + "Treatments", + "AS", + "T3", + "ON", + "T2.dog_id", + "=", + "T3.dog_id", + "GROUP", + "BY", + "T1.owner_id", + "ORDER", + "BY", + "sum", + "(", + "T3.cost_of_treatment", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "owner_id", + ",", + "t1", + ".", + "zip_code", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "join", + "treatments", + "as", + "t3", + "on", + "t2", + ".", + "dog_id", + "=", + "t3", + ".", + "dog_id", + "group", + "by", + "t1", + ".", + "owner_id", + "order", + "by", + "sum", + "(", + "t3", + ".", + "cost_of_treatment", + ")", + "desc", + "limit", + "value" + ], + "question": "犬に合計で最も多くの金額を支払った飼い主とその飼い主のIDと郵便番号を探します", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 10, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 16, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 4, + 49, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.professional_id", + ",", + "T1.cell_number", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "cell_number", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "どのプロが少なくとも2種類の治療を行っていますか? プロのIDと携帯電話をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", + "query_toks": [ + "SELECT", + "T1.professional_id", + ",", + "T1.cell_number", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "GROUP", + "BY", + "T1.professional_id", + "HAVING", + "count", + "(", + "*", + ")", + ">", + "=", + "2" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "professional_id", + ",", + "t1", + ".", + "cell_number", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "group", + "by", + "t1", + ".", + "professional_id", + "having", + "count", + "(", + "*", + ")", + ">", + "=", + "value" + ], + "question": "少なくとも2種類の治療を行っているプロとそのプロのIDと携帯電話は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 33, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 33, + false + ] + ], + "having": [ + [ + false, + 5, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 2, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T1.last_name", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "WHERE", + "cost_of_treatment", + "<", + "(", + "SELECT", + "avg", + "(", + "cost_of_treatment", + ")", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "last_name", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "where", + "cost_of_treatment", + "<", + "(", + "select", + "avg", + "(", + "cost_of_treatment", + ")", + "from", + "treatments", + ")" + ], + "question": "平均以下の費用で治療を行ったプロの苗字と名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 49, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T1.last_name", + "FROM", + "Professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "WHERE", + "cost_of_treatment", + "<", + "(", + "SELECT", + "avg", + "(", + "cost_of_treatment", + ")", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "last_name", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "where", + "cost_of_treatment", + "<", + "(", + "select", + "avg", + "(", + "cost_of_treatment", + ")", + "from", + "treatments", + ")" + ], + "question": "平均よりも安い治療を行ったプロは誰ですか? 苗字と名前を教えてください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 40, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 49, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", + "query_toks": [ + "SELECT", + "T1.date_of_treatment", + ",", + "T2.first_name", + "FROM", + "Treatments", + "AS", + "T1", + "JOIN", + "Professionals", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "date_of_treatment", + ",", + "t2", + ".", + "first_name", + "from", + "treatments", + "as", + "t1", + "join", + "professionals", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id" + ], + "question": "各治療の日付を、それを操作したプロの名前とともにリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ], + [ + "table_unit", + 6 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 46, + false + ], + null + ], + [ + 0, + 33, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", + "query_toks": [ + "SELECT", + "T1.date_of_treatment", + ",", + "T2.first_name", + "FROM", + "Treatments", + "AS", + "T1", + "JOIN", + "Professionals", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "date_of_treatment", + ",", + "t2", + ".", + "first_name", + "from", + "treatments", + "as", + "t1", + "join", + "professionals", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id" + ], + "question": "各治療の日付と手術するプロの名は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ], + [ + "table_unit", + 6 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 46, + false + ], + null + ], + [ + 0, + 33, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", + "query_toks": [ + "SELECT", + "T1.cost_of_treatment", + ",", + "T2.treatment_type_description", + "FROM", + "Treatments", + "AS", + "T1", + "JOIN", + "treatment_types", + "AS", + "T2", + "ON", + "T1.treatment_type_code", + "=", + "T2.treatment_type_code" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "cost_of_treatment", + ",", + "t2", + ".", + "treatment_type_description", + "from", + "treatments", + "as", + "t1", + "join", + "treatment_types", + "as", + "t2", + "on", + "t1", + ".", + "treatment_type_code", + "=", + "t2", + ".", + "treatment_type_code" + ], + "question": "各治療の費用と対応する治療タイプをリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 47, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", + "query_toks": [ + "SELECT", + "T1.cost_of_treatment", + ",", + "T2.treatment_type_description", + "FROM", + "Treatments", + "AS", + "T1", + "JOIN", + "treatment_types", + "AS", + "T2", + "ON", + "T1.treatment_type_code", + "=", + "T2.treatment_type_code" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "cost_of_treatment", + ",", + "t2", + ".", + "treatment_type_description", + "from", + "treatments", + "as", + "t1", + "join", + "treatment_types", + "as", + "t2", + "on", + "t1", + ".", + "treatment_type_code", + "=", + "t2", + ".", + "treatment_type_code" + ], + "question": "各治療の費用と対応する治療タイプは何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 47, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.last_name", + ",", + "T2.size_code", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "last_name", + ",", + "t2", + ".", + "size_code", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id" + ], + "question": "各飼い主の名、姓、犬のサイズを記入してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T1.last_name", + ",", + "T2.size_code", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t1", + ".", + "last_name", + ",", + "t2", + ".", + "size_code", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id" + ], + "question": "各飼い主の名、姓、犬のサイズは何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T2.name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t2", + ".", + "name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id" + ], + "question": "各飼い主の名とそのひとが飼っている犬の名前をリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T2.name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t2", + ".", + "name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id" + ], + "question": "各飼い主の名とそのひとが飼っている犬の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )", + "query_toks": [ + "SELECT", + "T1.name", + ",", + "T2.date_of_treatment", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.dog_id", + "=", + "T2.dog_id", + "WHERE", + "T1.breed_code", + "=", + "(", + "SELECT", + "breed_code", + "FROM", + "Dogs", + "GROUP", + "BY", + "breed_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t2", + ".", + "date_of_treatment", + "from", + "dogs", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "dog_id", + "=", + "t2", + ".", + "dog_id", + "where", + "t1", + ".", + "breed_code", + "=", + "(", + "select", + "breed_code", + "from", + "dogs", + "group", + "by", + "breed_code", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value", + ")" + ], + "question": "数が最もすくない品種の犬の名前とそれらの治療日をリストしてください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )", + "query_toks": [ + "SELECT", + "T1.name", + ",", + "T2.date_of_treatment", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.dog_id", + "=", + "T2.dog_id", + "WHERE", + "T1.breed_code", + "=", + "(", + "SELECT", + "breed_code", + "FROM", + "Dogs", + "GROUP", + "BY", + "breed_code", + "ORDER", + "BY", + "count", + "(", + "*", + ")", + "ASC", + "LIMIT", + "1", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "t2", + ".", + "date_of_treatment", + "from", + "dogs", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "dog_id", + "=", + "t2", + ".", + "dog_id", + "where", + "t1", + ".", + "breed_code", + "=", + "(", + "select", + "breed_code", + "from", + "dogs", + "group", + "by", + "breed_code", + "order", + "by", + "count", + "(", + "*", + ")", + "asc", + "limit", + "value", + ")" + ], + "question": "数が最もすくない品種の犬は何ですか?名前とそれらの治療日を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 23, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 23, + false + ] + ], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T2.name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "WHERE", + "T1.state", + "=", + "'Virginia", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t2", + ".", + "name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "where", + "t1", + ".", + "state", + "=", + "value" + ], + "question": "バージニアに住む人が飼っている犬はどれですか? 飼い主の名と犬の名前を表示してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"Virginia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", + "query_toks": [ + "SELECT", + "T1.first_name", + ",", + "T2.name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "WHERE", + "T1.state", + "=", + "'Virginia", + "'" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "first_name", + ",", + "t2", + ".", + "name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "where", + "t1", + ".", + "state", + "=", + "value" + ], + "question": "バージニアに住んでいる飼い主の名と犬の名前を探します", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"Virginia\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.date_arrived", + ",", + "T1.date_departed", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.dog_id", + "=", + "T2.dog_id" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "date_arrived", + ",", + "t1", + ".", + "date_departed", + "from", + "dogs", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "dog_id", + "=", + "t2", + ".", + "dog_id" + ], + "question": "治療を受けた犬の到着日と出発日はいつですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 30, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.date_arrived", + ",", + "T1.date_departed", + "FROM", + "Dogs", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.dog_id", + "=", + "T2.dog_id" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "date_arrived", + ",", + "t1", + ".", + "date_departed", + "from", + "dogs", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "dog_id", + "=", + "t2", + ".", + "dog_id" + ], + "question": "治療を受けた犬の到着日と出発日を探してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ], + [ + "table_unit", + 7 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + [ + 0, + 45, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 30, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )", + "query_toks": [ + "SELECT", + "T1.last_name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "WHERE", + "T2.age", + "=", + "(", + "SELECT", + "max", + "(", + "age", + ")", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "last_name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "where", + "t2", + ".", + "age", + "=", + "(", + "select", + "max", + "(", + "age", + ")", + "from", + "dogs", + ")" + ], + "question": "最も年齢の低い犬を飼っている飼い主の苗字を表示してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 26, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )", + "query_toks": [ + "SELECT", + "T1.last_name", + "FROM", + "Owners", + "AS", + "T1", + "JOIN", + "Dogs", + "AS", + "T2", + "ON", + "T1.owner_id", + "=", + "T2.owner_id", + "WHERE", + "T2.age", + "=", + "(", + "SELECT", + "max", + "(", + "age", + ")", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "last_name", + "from", + "owners", + "as", + "t1", + "join", + "dogs", + "as", + "t2", + "on", + "t1", + ".", + "owner_id", + "=", + "t2", + ".", + "owner_id", + "where", + "t2", + ".", + "age", + "=", + "(", + "select", + "max", + "(", + "age", + ")", + "from", + "dogs", + ")" + ], + "question": "最も年齢の低い犬を飼っている飼い主は誰ですか?彼または彼女の苗字をリストします", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ], + [ + "table_unit", + 5 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 21, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 26, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", + "query_toks": [ + "SELECT", + "email_address", + "FROM", + "Professionals", + "WHERE", + "state", + "=", + "'Hawaii", + "'", + "OR", + "state", + "=", + "'Wisconsin", + "'" + ], + "query_toks_no_value": [ + "select", + "email_address", + "from", + "professionals", + "where", + "state", + "=", + "value", + "or", + "state", + "=", + "value" + ], + "question": "ハワイ州またはウィスコンシン州に住むプロのメールアドレスを表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Hawaii\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Wisconsin\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", + "query_toks": [ + "SELECT", + "email_address", + "FROM", + "Professionals", + "WHERE", + "state", + "=", + "'Hawaii", + "'", + "OR", + "state", + "=", + "'Wisconsin", + "'" + ], + "query_toks_no_value": [ + "select", + "email_address", + "from", + "professionals", + "where", + "state", + "=", + "value", + "or", + "state", + "=", + "value" + ], + "question": "ハワイ州またはウィスコンシン州に住むプロのメールアドレスは何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Hawaii\"", + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 38, + false + ], + null + ], + "\"Wisconsin\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT date_arrived , date_departed FROM Dogs", + "query_toks": [ + "SELECT", + "date_arrived", + ",", + "date_departed", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "date_arrived", + ",", + "date_departed", + "from", + "dogs" + ], + "question": "すべての犬の到着日と出発日は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 30, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT date_arrived , date_departed FROM Dogs", + "query_toks": [ + "SELECT", + "date_arrived", + ",", + "date_departed", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "date_arrived", + ",", + "date_departed", + "from", + "dogs" + ], + "question": "すべての犬の到着日と出発日をリストしてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 30, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 32, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(DISTINCT dog_id) FROM Treatments", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "dog_id", + ")", + "FROM", + "Treatments" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "dog_id", + ")", + "from", + "treatments" + ], + "question": "治療を受けた犬は何匹いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 45, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(DISTINCT dog_id) FROM Treatments", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "dog_id", + ")", + "FROM", + "Treatments" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "dog_id", + ")", + "from", + "treatments" + ], + "question": "治療をうけた犬の数を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 45, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(DISTINCT professional_id) FROM Treatments", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "professional_id", + ")", + "FROM", + "Treatments" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "professional_id", + ")", + "from", + "treatments" + ], + "question": "犬に手術を行ったプロは何人いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 46, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(DISTINCT professional_id) FROM Treatments", + "query_toks": [ + "SELECT", + "count", + "(", + "DISTINCT", + "professional_id", + ")", + "FROM", + "Treatments" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "distinct", + "professional_id", + ")", + "from", + "treatments" + ], + "question": "犬に手術を行ったプロの人数を探してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 46, + true + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", + "query_toks": [ + "SELECT", + "role_code", + ",", + "street", + ",", + "city", + ",", + "state", + "FROM", + "professionals", + "WHERE", + "city", + "LIKE", + "'", + "%", + "West", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "role_code", + ",", + "street", + ",", + "city", + ",", + "state", + "from", + "professionals", + "where", + "city", + "like", + "value" + ], + "question": "「West」を含む都市に住んでいるプロは誰ですか? 彼または彼女の役割、町、都市、州をリストしてください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 37, + false + ], + null + ], + "\"%West%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", + "query_toks": [ + "SELECT", + "role_code", + ",", + "street", + ",", + "city", + ",", + "state", + "FROM", + "professionals", + "WHERE", + "city", + "LIKE", + "'", + "%", + "West", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "role_code", + ",", + "street", + ",", + "city", + ",", + "state", + "from", + "professionals", + "where", + "city", + "like", + "value" + ], + "question": "「West」を含む都市に住むプロの役割、町、都市、および州を探してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 34, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 36, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 37, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 38, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 37, + false + ], + null + ], + "\"%West%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + ",", + "email_address", + "FROM", + "Owners", + "WHERE", + "state", + "LIKE", + "'", + "%", + "North", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + ",", + "email_address", + "from", + "owners", + "where", + "state", + "like", + "value" + ], + "question": "名前に「North」が含まれている州に住んでいる飼い主は誰ですか? 彼の名前、苗字、メールアドレスを表示してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"%North%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", + "query_toks": [ + "SELECT", + "first_name", + ",", + "last_name", + ",", + "email_address", + "FROM", + "Owners", + "WHERE", + "state", + "LIKE", + "'", + "%", + "North", + "%", + "'" + ], + "query_toks_no_value": [ + "select", + "first_name", + ",", + "last_name", + ",", + "email_address", + "from", + "owners", + "where", + "state", + "like", + "value" + ], + "question": "名前に「North」が含まれている州に住んでいる飼い主の名、姓、および電子メールをリターンします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 11, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 12, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 17, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 9, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + "\"%North%\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Dogs", + "WHERE", + "age", + "<", + "(", + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "age", + "<", + "(", + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs", + ")" + ], + "question": "平均年齢以下の犬は何匹いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 26, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Dogs", + "WHERE", + "age", + "<", + "(", + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "age", + "<", + "(", + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs", + ")" + ], + "question": "平均年齢以下の犬の数を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 26, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", + "query_toks": [ + "SELECT", + "cost_of_treatment", + "FROM", + "Treatments", + "ORDER", + "BY", + "date_of_treatment", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "cost_of_treatment", + "from", + "treatments", + "order", + "by", + "date_of_treatment", + "desc", + "limit", + "value" + ], + "question": "最新の治療費はいくらくらいかかりますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", + "query_toks": [ + "SELECT", + "cost_of_treatment", + "FROM", + "Treatments", + "ORDER", + "BY", + "date_of_treatment", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "cost_of_treatment", + "from", + "treatments", + "order", + "by", + "date_of_treatment", + "desc", + "limit", + "value" + ], + "question": "最新の治療費を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 49, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 48, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Dogs", + "WHERE", + "dog_id", + "NOT", + "IN", + "(", + "SELECT", + "dog_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "question": "治療をうけたことない犬何匹いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", + "query_toks": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "dogs", + "where", + "dog_id", + "not", + "in", + "(", + "select", + "dog_id", + "from", + "treatments", + ")" + ], + "question": "治療を受けたことない犬の数を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 20, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 45, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Owners", + "WHERE", + "owner_id", + "NOT", + "IN", + "(", + "SELECT", + "owner_id", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "owners", + "where", + "owner_id", + "not", + "in", + "(", + "select", + "owner_id", + "from", + "dogs", + ")" + ], + "question": "一時的に犬を飼っていない飼い主は何人いますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Owners", + "WHERE", + "owner_id", + "NOT", + "IN", + "(", + "SELECT", + "owner_id", + "FROM", + "Dogs", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "owners", + "where", + "owner_id", + "not", + "in", + "(", + "select", + "owner_id", + "from", + "dogs", + ")" + ], + "question": "一時的に犬を飼っていない飼い主の人数を探してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 4 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 21, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Professionals", + "WHERE", + "professional_id", + "NOT", + "IN", + "(", + "SELECT", + "professional_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "professionals", + "where", + "professional_id", + "not", + "in", + "(", + "select", + "professional_id", + "from", + "treatments", + ")" + ], + "question": "犬の治療を施したことないプロは何人いますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Professionals", + "WHERE", + "professional_id", + "NOT", + "IN", + "(", + "SELECT", + "professional_id", + "FROM", + "Treatments", + ")" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "professionals", + "where", + "professional_id", + "not", + "in", + "(", + "select", + "professional_id", + "from", + "treatments", + ")" + ], + "question": "犬の治療を施したことないプロの人数を探してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 7 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 46, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", + "query_toks": [ + "SELECT", + "name", + ",", + "age", + ",", + "weight", + "FROM", + "Dogs", + "WHERE", + "abandoned_yn", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "age", + ",", + "weight", + "from", + "dogs", + "where", + "abandoned_yn", + "=", + "value" + ], + "question": "捨てられた犬の名前、年齢、体重を表示してください。 1は「はい」を表し、0は「いいえ」を表します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + 1, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1", + "query_toks": [ + "SELECT", + "name", + ",", + "age", + ",", + "weight", + "FROM", + "Dogs", + "WHERE", + "abandoned_yn", + "=", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + ",", + "age", + ",", + "weight", + "from", + "dogs", + "where", + "abandoned_yn", + "=", + "value" + ], + "question": "捨てられた犬の名前、年齢、体重は何ですか? 1は「はい」で、0は「いいえ」で記入してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 25, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 29, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 22, + false + ], + null + ], + 1, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT avg(age) FROM Dogs", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs" + ], + "question": "犬の平均年齢は何歳ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT avg(age) FROM Dogs", + "query_toks": [ + "SELECT", + "avg", + "(", + "age", + ")", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "avg", + "(", + "age", + ")", + "from", + "dogs" + ], + "question": "犬の平均年齢を数えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 5, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT max(age) FROM Dogs", + "query_toks": [ + "SELECT", + "max", + "(", + "age", + ")", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "age", + ")", + "from", + "dogs" + ], + "question": "一番年齢高い犬の年齢は何歳ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT max(age) FROM Dogs", + "query_toks": [ + "SELECT", + "max", + "(", + "age", + ")", + "FROM", + "Dogs" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "age", + ")", + "from", + "dogs" + ], + "question": "一番年齢高い犬の年齢を教えてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 26, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT charge_type , charge_amount FROM Charges", + "query_toks": [ + "SELECT", + "charge_type", + ",", + "charge_amount", + "FROM", + "Charges" + ], + "query_toks_no_value": [ + "select", + "charge_type", + ",", + "charge_amount", + "from", + "charges" + ], + "question": "各チャージのタイプの費用はどれくらいですか?チャージタイプと数をリストしてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT charge_type , charge_amount FROM Charges", + "query_toks": [ + "SELECT", + "charge_type", + ",", + "charge_amount", + "FROM", + "Charges" + ], + "query_toks_no_value": [ + "select", + "charge_type", + ",", + "charge_amount", + "from", + "charges" + ], + "question": "各チャージタイプの費用と数をリストしてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT max(charge_amount) FROM Charges", + "query_toks": [ + "SELECT", + "max", + "(", + "charge_amount", + ")", + "FROM", + "Charges" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "charge_amount", + ")", + "from", + "charges" + ], + "question": "最も高価なチャージタイプの費用はいくらですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT max(charge_amount) FROM Charges", + "query_toks": [ + "SELECT", + "max", + "(", + "charge_amount", + ")", + "FROM", + "Charges" + ], + "query_toks_no_value": [ + "select", + "max", + "(", + "charge_amount", + ")", + "from", + "charges" + ], + "question": "最も高価なチャージタイプの費用はどれくらいですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 1, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT email_address , cell_number , home_phone FROM professionals", + "query_toks": [ + "SELECT", + "email_address", + ",", + "cell_number", + ",", + "home_phone", + "FROM", + "professionals" + ], + "query_toks_no_value": [ + "select", + "email_address", + ",", + "cell_number", + ",", + "home_phone", + "from", + "professionals" + ], + "question": "プロ全員のメールアドレス、携帯電話番号、自宅の電話番号を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT email_address , cell_number , home_phone FROM professionals", + "query_toks": [ + "SELECT", + "email_address", + ",", + "cell_number", + ",", + "home_phone", + "FROM", + "professionals" + ], + "query_toks_no_value": [ + "select", + "email_address", + ",", + "cell_number", + ",", + "home_phone", + "from", + "professionals" + ], + "question": "各プロのメールアドレス、携帯電話番号、自宅の電話番号は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 41, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 43, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 42, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT breed_code , size_code FROM dogs", + "query_toks": [ + "SELECT", + "DISTINCT", + "breed_code", + ",", + "size_code", + "FROM", + "dogs" + ], + "query_toks_no_value": [ + "select", + "distinct", + "breed_code", + ",", + "size_code", + "from", + "dogs" + ], + "question": "可能なすべての品種タイプとサイズタイプの組み合わせは何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT breed_code , size_code FROM dogs", + "query_toks": [ + "SELECT", + "DISTINCT", + "breed_code", + ",", + "size_code", + "FROM", + "dogs" + ], + "query_toks_no_value": [ + "select", + "distinct", + "breed_code", + ",", + "size_code", + "from", + "dogs" + ], + "question": "確実な犬のすべての品種タイプとサイズタイプの組み合わせを探してください?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 5 + ] + ], + "conds": [] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 23, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 24, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T3.treatment_type_description", + "FROM", + "professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "JOIN", + "Treatment_types", + "AS", + "T3", + "ON", + "T2.treatment_type_code", + "=", + "T3.treatment_type_code" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t3", + ".", + "treatment_type_description", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "join", + "treatment_types", + "as", + "t3", + "on", + "t2", + ".", + "treatment_type_code", + "=", + "t3", + ".", + "treatment_type_code" + ], + "question": "すべてのプロの名前と、彼らが行った治療の説明をリストしてください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 47, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "dog_kennels", + "query": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.first_name", + ",", + "T3.treatment_type_description", + "FROM", + "professionals", + "AS", + "T1", + "JOIN", + "Treatments", + "AS", + "T2", + "ON", + "T1.professional_id", + "=", + "T2.professional_id", + "JOIN", + "Treatment_types", + "AS", + "T3", + "ON", + "T2.treatment_type_code", + "=", + "T3.treatment_type_code" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "first_name", + ",", + "t3", + ".", + "treatment_type_description", + "from", + "professionals", + "as", + "t1", + "join", + "treatments", + "as", + "t2", + "on", + "t1", + ".", + "professional_id", + "=", + "t2", + ".", + "professional_id", + "join", + "treatment_types", + "as", + "t3", + "on", + "t2", + ".", + "treatment_type_code", + "=", + "t3", + ".", + "treatment_type_code" + ], + "question": "各プロの名と彼らが行った治療の説明は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 6 + ], + [ + "table_unit", + 7 + ], + [ + "table_unit", + 3 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 33, + false + ], + null + ], + [ + 0, + 46, + false + ], + null + ], + "and", + [ + false, + 2, + [ + 0, + [ + 0, + 47, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 35, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT count(*) FROM singer", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "singer" + ], + "question": "歌手何人いますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT count(*) FROM singer", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "singer" + ], + "question": "歌手の数は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "ORDER", + "BY", + "Net_Worth_Millions", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "order", + "by", + "net_worth_millions", + "asc" + ], + "question": "歌手の名前を純資産の昇順でリストします。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "ORDER", + "BY", + "Net_Worth_Millions", + "ASC" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "order", + "by", + "net_worth_millions", + "asc" + ], + "question": "純資産の昇順で並べられた歌手の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "asc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Birth_Year , Citizenship FROM singer", + "query_toks": [ + "SELECT", + "Birth_Year", + ",", + "Citizenship", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "birth_year", + ",", + "citizenship", + "from", + "singer" + ], + "question": "歌手の国籍と誕生日は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Birth_Year , Citizenship FROM singer", + "query_toks": [ + "SELECT", + "Birth_Year", + ",", + "Citizenship", + "FROM", + "singer" + ], + "query_toks_no_value": [ + "select", + "birth_year", + ",", + "citizenship", + "from", + "singer" + ], + "question": "歌手の国籍と誕生日は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 3, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Citizenship != \"France\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Citizenship", + "!", + "=", + "``", + "France", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "citizenship", + "!", + "=", + "value" + ], + "question": "フランス人でない歌手の名前をリストしてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"France\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Citizenship != \"France\"", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Citizenship", + "!", + "=", + "``", + "France", + "''" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "citizenship", + "!", + "=", + "value" + ], + "question": "フランス人でない歌手の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 7, + [ + 0, + [ + 0, + 5, + false + ], + null + ], + "\"France\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Birth_Year", + "=", + "1948", + "OR", + "Birth_Year", + "=", + "1949" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "birth_year", + "=", + "value", + "or", + "birth_year", + "=", + "value" + ], + "question": "生年月日が1948年または1949年の歌手の名前を表示します", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1948, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1949, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Birth_Year", + "=", + "1948", + "OR", + "Birth_Year", + "=", + "1949" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "birth_year", + "=", + "value", + "or", + "birth_year", + "=", + "value" + ], + "question": "生年月日が1948年または1949年の歌手の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1948, + null + ], + "or", + [ + false, + 2, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1949, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "ORDER", + "BY", + "Net_Worth_Millions", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "order", + "by", + "net_worth_millions", + "desc", + "limit", + "value" + ], + "question": "最大の純資産を持つ歌手の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "ORDER", + "BY", + "Net_Worth_Millions", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "order", + "by", + "net_worth_millions", + "desc", + "limit", + "value" + ], + "question": "最も価値のある歌手の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship", + "query_toks": [ + "SELECT", + "Citizenship", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship" + ], + "query_toks_no_value": [ + "select", + "citizenship", + ",", + "count", + "(", + "*", + ")", + "from", + "singer", + "group", + "by", + "citizenship" + ], + "question": "歌手の異なる国籍と各国籍の歌手の数を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship", + "query_toks": [ + "SELECT", + "Citizenship", + ",", + "COUNT", + "(", + "*", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship" + ], + "query_toks_no_value": [ + "select", + "citizenship", + ",", + "count", + "(", + "*", + ")", + "from", + "singer", + "group", + "by", + "citizenship" + ], + "question": "国籍ごとに歌手は何人いますか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1", + "query_toks": [ + "SELECT", + "Citizenship", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship", + "ORDER", + "BY", + "COUNT", + "(", + "*", + ")", + "DESC", + "LIMIT", + "1" + ], + "query_toks_no_value": [ + "select", + "citizenship", + "from", + "singer", + "group", + "by", + "citizenship", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "歌手の最も一般的な国籍を示してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "select citizenship from singer group by citizenship order by count(*) desc limit 1", + "query_toks": [ + "select", + "citizenship", + "from", + "singer", + "group", + "by", + "citizenship", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "1" + ], + "query_toks_no_value": [ + "select", + "citizenship", + "from", + "singer", + "group", + "by", + "citizenship", + "order", + "by", + "count", + "(", + "*", + ")", + "desc", + "limit", + "value" + ], + "question": "歌手の最も一般的な国籍を示してください。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [ + "desc", + [ + [ + 0, + [ + 3, + 0, + false + ], + null + ] + ] + ], + "limit": 1, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", + "query_toks": [ + "SELECT", + "Citizenship", + ",", + "max", + "(", + "Net_Worth_Millions", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship" + ], + "query_toks_no_value": [ + "select", + "citizenship", + ",", + "max", + "(", + "net_worth_millions", + ")", + "from", + "singer", + "group", + "by", + "citizenship" + ], + "question": "さまざまな国籍と、各国籍の歌手の最大純資産を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", + "query_toks": [ + "SELECT", + "Citizenship", + ",", + "max", + "(", + "Net_Worth_Millions", + ")", + "FROM", + "singer", + "GROUP", + "BY", + "Citizenship" + ], + "query_toks_no_value": [ + "select", + "citizenship", + ",", + "max", + "(", + "net_worth_millions", + ")", + "from", + "singer", + "group", + "by", + "citizenship" + ], + "question": "各国籍の中、歌手の最大純資産はどれくらいですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ], + [ + 1, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 5, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", + "query_toks": [ + "SELECT", + "T2.Title", + ",", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "title", + ",", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id" + ], + "question": "曲のタイトルと歌手の名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", + "query_toks": [ + "SELECT", + "T2.Title", + ",", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "title", + ",", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id" + ], + "question": "曲のタイトルと歌手の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 7, + false + ], + null + ] + ], + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "WHERE", + "T2.Sales", + ">", + "300000" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "where", + "t2", + ".", + "sales", + ">", + "value" + ], + "question": "売り上げが300000を超える曲を持っている歌手の名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 300000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", + "query_toks": [ + "SELECT", + "DISTINCT", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "WHERE", + "T2.Sales", + ">", + "300000" + ], + "query_toks_no_value": [ + "select", + "distinct", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "where", + "t2", + ".", + "sales", + ">", + "value" + ], + "question": "売り上げが300000を超える曲を持っている歌手の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + true, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 9, + false + ], + null + ], + 300000, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "GROUP", + "BY", + "T1.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t1", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "複数の曲を持っている歌手の名前を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1", + "query_toks": [ + "SELECT", + "T1.Name", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "GROUP", + "BY", + "T1.Name", + "HAVING", + "COUNT", + "(", + "*", + ")", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t1", + ".", + "name", + "having", + "count", + "(", + "*", + ")", + ">", + "value" + ], + "question": "複数の曲を持っている歌手の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [ + [ + false, + 3, + [ + 0, + [ + 3, + 0, + false + ], + null + ], + 1, + null + ] + ], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "sum", + "(", + "T2.Sales", + ")", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "GROUP", + "BY", + "T1.Name" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "sum", + "(", + "t2", + ".", + "sales", + ")", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t1", + ".", + "name" + ], + "question": "歌手の名前と作品の曲の総売上を表示してください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 4, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", + "query_toks": [ + "SELECT", + "T1.Name", + ",", + "sum", + "(", + "T2.Sales", + ")", + "FROM", + "singer", + "AS", + "T1", + "JOIN", + "song", + "AS", + "T2", + "ON", + "T1.Singer_ID", + "=", + "T2.Singer_ID", + "GROUP", + "BY", + "T1.Name" + ], + "query_toks_no_value": [ + "select", + "t1", + ".", + "name", + ",", + "sum", + "(", + "t2", + ".", + "sales", + ")", + "from", + "singer", + "as", + "t1", + "join", + "song", + "as", + "t2", + "on", + "t1", + ".", + "singer_id", + "=", + "t2", + ".", + "singer_id", + "group", + "by", + "t1", + ".", + "name" + ], + "question": "各歌手の作品の曲の総売上はどれくらいですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + [ + 0, + 8, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ], + [ + 4, + [ + 0, + [ + 0, + 9, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 2, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Singer_ID", + "NOT", + "IN", + "(", + "SELECT", + "Singer_ID", + "FROM", + "song", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "singer_id", + "not", + "in", + "(", + "select", + "singer_id", + "from", + "song", + ")" + ], + "question": "作品のない歌手の名前をリストしてください", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", + "query_toks": [ + "SELECT", + "Name", + "FROM", + "singer", + "WHERE", + "Singer_ID", + "NOT", + "IN", + "(", + "SELECT", + "Singer_ID", + "FROM", + "song", + ")" + ], + "query_toks_no_value": [ + "select", + "name", + "from", + "singer", + "where", + "singer_id", + "not", + "in", + "(", + "select", + "singer_id", + "from", + "song", + ")" + ], + "question": "作品のない歌手の名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + true, + 8, + [ + 0, + [ + 0, + 1, + false + ], + null + ], + { + "from": { + "table_units": [ + [ + "table_unit", + 1 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 8, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", + "query_toks": [ + "SELECT", + "Citizenship", + "FROM", + "singer", + "WHERE", + "Birth_Year", + "<", + "1945", + "INTERSECT", + "SELECT", + "Citizenship", + "FROM", + "singer", + "WHERE", + "Birth_Year", + ">", + "1955" + ], + "query_toks_no_value": [ + "select", + "citizenship", + "from", + "singer", + "where", + "birth_year", + "<", + "value", + "intersect", + "select", + "citizenship", + "from", + "singer", + "where", + "birth_year", + ">", + "value" + ], + "question": "1945年以前と1955年以降に生まれた歌手の共同の国籍を示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1945, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1955, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "singer", + "query": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", + "query_toks": [ + "SELECT", + "Citizenship", + "FROM", + "singer", + "WHERE", + "Birth_Year", + "<", + "1945", + "INTERSECT", + "SELECT", + "Citizenship", + "FROM", + "singer", + "WHERE", + "Birth_Year", + ">", + "1955" + ], + "query_toks_no_value": [ + "select", + "citizenship", + "from", + "singer", + "where", + "birth_year", + "<", + "value", + "intersect", + "select", + "citizenship", + "from", + "singer", + "where", + "birth_year", + ">", + "value" + ], + "question": "1945年以前と1955年以降に生まれた歌手の共同の国籍は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 4, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1945, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": { + "from": { + "table_units": [ + [ + "table_unit", + 0 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 5, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 3, + [ + 0, + [ + 0, + 3, + false + ], + null + ], + 1955, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "union": null, + "except": null + } + }, + { + "db_id": "real_estate_properties", + "query": "SELECT count(*) FROM Other_Available_Features", + "query_toks": [ + "SELECT", + "count", + "(", + "*", + ")", + "FROM", + "Other_Available_Features" + ], + "query_toks_no_value": [ + "select", + "count", + "(", + "*", + ")", + "from", + "other_available_features" + ], + "question": "可能なフィーチャはどれくらいありますか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 3, + [ + 0, + [ + 0, + 0, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "real_estate_properties", + "query": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = \"AirCon\"", + "query_toks": [ + "SELECT", + "T2.feature_type_name", + "FROM", + "Other_Available_Features", + "AS", + "T1", + "JOIN", + "Ref_Feature_Types", + "AS", + "T2", + "ON", + "T1.feature_type_code", + "=", + "T2.feature_type_code", + "WHERE", + "T1.feature_name", + "=", + "``", + "AirCon", + "''" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "feature_type_name", + "from", + "other_available_features", + "as", + "t1", + "join", + "ref_feature_types", + "as", + "t2", + "on", + "t1", + ".", + "feature_type_code", + "=", + "t2", + ".", + "feature_type_code", + "where", + "t1", + ".", + "feature_name", + "=", + "value" + ], + "question": "フィーチャ「aircon」のフィーチャタイプの名前は何ですか", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 2 + ], + [ + "table_unit", + 0 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 6, + false + ], + null + ], + [ + 0, + 1, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 2, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 7, + false + ], + null + ], + "\"AirCon\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "real_estate_properties", + "query": "SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code", + "query_toks": [ + "SELECT", + "T2.property_type_description", + "FROM", + "Properties", + "AS", + "T1", + "JOIN", + "Ref_Property_Types", + "AS", + "T2", + "ON", + "T1.property_type_code", + "=", + "T2.property_type_code", + "GROUP", + "BY", + "T1.property_type_code" + ], + "query_toks_no_value": [ + "select", + "t2", + ".", + "property_type_description", + "from", + "properties", + "as", + "t1", + "join", + "ref_property_types", + "as", + "t2", + "on", + "t1", + ".", + "property_type_code", + "=", + "t2", + ".", + "property_type_code", + "group", + "by", + "t1", + ".", + "property_type_code" + ], + "question": "そのコードに属するプロパティのプロパティタイプの説明を表示します。", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ], + [ + "table_unit", + 1 + ] + ], + "conds": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + [ + 0, + 3, + false + ], + null + ] + ] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 4, + false + ], + null + ] + ] + ] + ], + "where": [], + "groupBy": [ + [ + 0, + 10, + false + ] + ], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + } + }, + { + "db_id": "real_estate_properties", + "query": "SELECT property_name FROM Properties WHERE property_type_code = \"House\" UNION SELECT property_name FROM Properties WHERE property_type_code = \"Apartment\" AND room_count > 1", + "query_toks": [ + "SELECT", + "property_name", + "FROM", + "Properties", + "WHERE", + "property_type_code", + "=", + "``", + "House", + "''", + "UNION", + "SELECT", + "property_name", + "FROM", + "Properties", + "WHERE", + "property_type_code", + "=", + "``", + "Apartment", + "''", + "AND", + "room_count", + ">", + "1" + ], + "query_toks_no_value": [ + "select", + "property_name", + "from", + "properties", + "where", + "property_type_code", + "=", + "value", + "union", + "select", + "property_name", + "from", + "properties", + "where", + "property_type_code", + "=", + "value", + "and", + "room_count", + ">", + "value" + ], + "question": "複数の部屋がある家またはアパートのいずれかの物件の名前は何ですか?", + "sql": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"House\"", + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": { + "from": { + "table_units": [ + [ + "table_unit", + 3 + ] + ], + "conds": [] + }, + "select": [ + false, + [ + [ + 0, + [ + 0, + [ + 0, + 13, + false + ], + null + ] + ] + ] + ], + "where": [ + [ + false, + 2, + [ + 0, + [ + 0, + 10, + false + ], + null + ], + "\"Apartment\"", + null + ], + "and", + [ + false, + 3, + [ + 0, + [ + 0, + 15, + false + ], + null + ], + 1, + null + ] + ], + "groupBy": [], + "having": [], + "orderBy": [], + "limit": null, + "intersect": null, + "union": null, + "except": null + }, + "except": null + } + } +] \ No newline at end of file