| [ |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT count(*) FROM singer", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "singer" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer" |
| ], |
| "question": "歌手は何人いるの?", |
| "question_toks": [ |
| "How", |
| "many", |
| "singers", |
| "do", |
| "we", |
| "have", |
| "?" |
| ], |
| "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": "すべての歌手は何人いるの?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "total", |
| "number", |
| "of", |
| "singers", |
| "?" |
| ], |
| "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": "すべての歌手の名前、国、年齢を年齢の高い順に示す。", |
| "question_toks": [ |
| "Show", |
| "name", |
| ",", |
| "country", |
| ",", |
| "age", |
| "for", |
| "all", |
| "singers", |
| "ordered", |
| "by", |
| "age", |
| "from", |
| "the", |
| "oldest", |
| "to", |
| "the", |
| "youngest", |
| "." |
| ], |
| "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": "すべての歌手の名前、国、年齢を年齢の高い順に教えてください。", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| ",", |
| "countries", |
| ",", |
| "and", |
| "ages", |
| "for", |
| "every", |
| "singer", |
| "in", |
| "descending", |
| "order", |
| "of", |
| "age", |
| "?" |
| ], |
| "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": "「France」の歌手の年齢の平均値、最小値と最大値は?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| ",", |
| "minimum", |
| ",", |
| "and", |
| "maximum", |
| "age", |
| "of", |
| "all", |
| "singers", |
| "from", |
| "France", |
| "?" |
| ], |
| "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": "「France」の歌手の年齢の平均値、最小値と最大値は?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| ",", |
| "minimum", |
| ",", |
| "and", |
| "maximum", |
| "age", |
| "for", |
| "all", |
| "French", |
| "singers", |
| "?" |
| ], |
| "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": "最年少の歌手の曲名と曲のリリース年を示す。", |
| "question_toks": [ |
| "Show", |
| "the", |
| "name", |
| "and", |
| "the", |
| "release", |
| "year", |
| "of", |
| "the", |
| "song", |
| "by", |
| "the", |
| "youngest", |
| "singer", |
| "." |
| ], |
| "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": "最年少の歌手の曲名と曲のリリース年は?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "and", |
| "release", |
| "years", |
| "for", |
| "all", |
| "the", |
| "songs", |
| "of", |
| "the", |
| "youngest", |
| "singer", |
| "?" |
| ], |
| "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歳以上の歌手はそれぞれどの国の人ですか?", |
| "question_toks": [ |
| "What", |
| "are", |
| "all", |
| "distinct", |
| "countries", |
| "where", |
| "singers", |
| "above", |
| "age", |
| "20", |
| "are", |
| "from", |
| "?" |
| ], |
| "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歳以上の歌手はそれぞれどの国の人ですか?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "different", |
| "countries", |
| "with", |
| "singers", |
| "above", |
| "age", |
| "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": "すべての国と各国の歌手の人数を示す。", |
| "question_toks": [ |
| "Show", |
| "all", |
| "countries", |
| "and", |
| "the", |
| "number", |
| "of", |
| "singers", |
| "in", |
| "each", |
| "country", |
| "." |
| ], |
| "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": "各国で歌手は何人いる?", |
| "question_toks": [ |
| "How", |
| "many", |
| "singers", |
| "are", |
| "from", |
| "each", |
| "country", |
| "?" |
| ], |
| "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": "平均年齢以上の歌手の曲名を示す。", |
| "question_toks": [ |
| "List", |
| "all", |
| "song", |
| "names", |
| "by", |
| "singers", |
| "above", |
| "the", |
| "average", |
| "age", |
| "." |
| ], |
| "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": "平均年齢以上の歌手のすべての曲名は?", |
| "question_toks": [ |
| "What", |
| "are", |
| "all", |
| "the", |
| "song", |
| "names", |
| "by", |
| "singers", |
| "who", |
| "are", |
| "older", |
| "than", |
| "average", |
| "?" |
| ], |
| "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までのスタジアムの住所と名前を示す。", |
| "question_toks": [ |
| "Show", |
| "location", |
| "and", |
| "name", |
| "for", |
| "all", |
| "stadiums", |
| "with", |
| "a", |
| "capacity", |
| "between", |
| "5000", |
| "and", |
| "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までのスタジアムの住所と名前は?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "locations", |
| "and", |
| "names", |
| "of", |
| "all", |
| "stations", |
| "with", |
| "capacity", |
| "between", |
| "5000", |
| "and", |
| "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": "スタジアムの最大容量と平均容量は?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "maximum", |
| "capacity", |
| "and", |
| "the", |
| "average", |
| "of", |
| "all", |
| "stadiums", |
| "?" |
| ], |
| "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": "スタジアムの最大容量と平均容量は?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| "and", |
| "maximum", |
| "capacities", |
| "for", |
| "all", |
| "stadiums", |
| "?" |
| ], |
| "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": "平均出席者数が一番多いスタジアムの名前と容量は?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "capacity", |
| "for", |
| "the", |
| "stadium", |
| "with", |
| "highest", |
| "average", |
| "attendance", |
| "?" |
| ], |
| "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": "平均出席者数が一番多いスタジアムの名前と容量は?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "capacity", |
| "for", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "highest", |
| "average", |
| "attendance", |
| "?" |
| ], |
| "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年に行われたコンサートが何回ある?", |
| "question_toks": [ |
| "How", |
| "many", |
| "concerts", |
| "are", |
| "there", |
| "in", |
| "year", |
| "2014", |
| "or", |
| "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年に行われたコンサートが何回ある?", |
| "question_toks": [ |
| "How", |
| "many", |
| "concerts", |
| "occurred", |
| "in", |
| "2014", |
| "or", |
| "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": "各スタジアムの名前とそこに行われたコンサートの回数を示す。", |
| "question_toks": [ |
| "Show", |
| "the", |
| "stadium", |
| "name", |
| "and", |
| "the", |
| "number", |
| "of", |
| "concerts", |
| "in", |
| "each", |
| "stadium", |
| "." |
| ], |
| "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": "各スタジアムにコンサートが何回ある?", |
| "question_toks": [ |
| "For", |
| "each", |
| "stadium", |
| ",", |
| "how", |
| "many", |
| "concerts", |
| "play", |
| "there", |
| "?" |
| ], |
| "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年やその以降にコンサートが一番多いスタジアムの名前と容量を示す。", |
| "question_toks": [ |
| "Show", |
| "the", |
| "stadium", |
| "name", |
| "and", |
| "capacity", |
| "with", |
| "most", |
| "number", |
| "of", |
| "concerts", |
| "in", |
| "year", |
| "2014", |
| "or", |
| "after", |
| "." |
| ], |
| "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年以降にコンサートが一番多いスタジアムの名前と容量は?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "capacity", |
| "of", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "most", |
| "concerts", |
| "after", |
| "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": "コンサート回数が一番多い年は?", |
| "question_toks": [ |
| "Which", |
| "year", |
| "has", |
| "most", |
| "number", |
| "of", |
| "concerts", |
| "?" |
| ], |
| "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": "コンサート回数が一番多い年は?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "year", |
| "that", |
| "had", |
| "the", |
| "most", |
| "concerts", |
| "?" |
| ], |
| "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": "コンサートが開催しないスタジアムの名前を示す。", |
| "question_toks": [ |
| "Show", |
| "the", |
| "stadium", |
| "names", |
| "without", |
| "any", |
| "concert", |
| "." |
| ], |
| "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": "コンサートが開催しないスタジアムの名前を示す。", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "the", |
| "stadiums", |
| "without", |
| "any", |
| "concerts", |
| "?" |
| ], |
| "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歳以下の歌手の国籍を示す。", |
| "question_toks": [ |
| "Show", |
| "countries", |
| "where", |
| "a", |
| "singer", |
| "above", |
| "age", |
| "40", |
| "and", |
| "a", |
| "singer", |
| "below", |
| "30", |
| "are", |
| "from", |
| "." |
| ], |
| "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年にコンサートが行われたスタジアムを除いてすべてのスタジアムの名前を示す。", |
| "question_toks": [ |
| "Show", |
| "names", |
| "for", |
| "all", |
| "stadiums", |
| "except", |
| "for", |
| "stadiums", |
| "having", |
| "a", |
| "concert", |
| "in", |
| "year", |
| "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年にコンサートが行わなかったスタジアムの名前を示してください。", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "all", |
| "stadiums", |
| "that", |
| "did", |
| "not", |
| "have", |
| "a", |
| "concert", |
| "in", |
| "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": "すべてのコンサートの名前、テーマ、歌手の人数を示す。", |
| "question_toks": [ |
| "Show", |
| "the", |
| "name", |
| "and", |
| "theme", |
| "for", |
| "all", |
| "concerts", |
| "and", |
| "the", |
| "number", |
| "of", |
| "singers", |
| "in", |
| "each", |
| "concert", |
| "." |
| ], |
| "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": "各コンサートの名前、テーマ、歌手の人数を示す。", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| ",", |
| "themes", |
| ",", |
| "and", |
| "number", |
| "of", |
| "singers", |
| "for", |
| "every", |
| "concert", |
| "?" |
| ], |
| "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": "各歌手の名前とコンサートの回数を示してください。", |
| "question_toks": [ |
| "List", |
| "singer", |
| "names", |
| "and", |
| "number", |
| "of", |
| "concerts", |
| "for", |
| "each", |
| "singer", |
| "." |
| ], |
| "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": "各歌手の名前とコンサートの回数は?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "the", |
| "singers", |
| "and", |
| "number", |
| "of", |
| "concerts", |
| "for", |
| "each", |
| "person", |
| "?" |
| ], |
| "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年のコンサートの出演歌手をすべて挙げてください。", |
| "question_toks": [ |
| "List", |
| "all", |
| "singer", |
| "names", |
| "in", |
| "concerts", |
| "in", |
| "year", |
| "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年にコンサートに出演した歌手たちそれぞれの名前は?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "the", |
| "singers", |
| "who", |
| "performed", |
| "in", |
| "a", |
| "concert", |
| "in", |
| "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」を含む歌手の名前と国籍は?", |
| "question_toks": [ |
| "what", |
| "is", |
| "the", |
| "name", |
| "and", |
| "nation", |
| "of", |
| "the", |
| "singer", |
| "who", |
| "have", |
| "a", |
| "song", |
| "having", |
| "'Hey", |
| "'", |
| "in", |
| "its", |
| "name", |
| "?" |
| ], |
| "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」を含む歌手の名前と国籍は?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "country", |
| "of", |
| "origin", |
| "of", |
| "every", |
| "singer", |
| "who", |
| "has", |
| "a", |
| "song", |
| "with", |
| "the", |
| "word", |
| "'Hey", |
| "'", |
| "in", |
| "its", |
| "title", |
| "?" |
| ], |
| "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年にコンサートが行われたスタジアムの名前と住所を探してください。", |
| "question_toks": [ |
| "Find", |
| "the", |
| "name", |
| "and", |
| "location", |
| "of", |
| "the", |
| "stadiums", |
| "which", |
| "some", |
| "concerts", |
| "happened", |
| "in", |
| "the", |
| "years", |
| "of", |
| "both", |
| "2014", |
| "and", |
| "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年にコンサートが行われたスタジアムの名前と住所は?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "and", |
| "locations", |
| "of", |
| "the", |
| "stadiums", |
| "that", |
| "had", |
| "concerts", |
| "that", |
| "occurred", |
| "in", |
| "both", |
| "2014", |
| "and", |
| "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": "最も収容人数が多いスタジアムで行われたコンサートの回数を探し出してください。", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "concerts", |
| "happened", |
| "in", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "highest", |
| "capacity", |
| "." |
| ], |
| "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": "最も収容人数が多いスタジアムにコンサート何回行われたか?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "number", |
| "of", |
| "concerts", |
| "that", |
| "occurred", |
| "in", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "largest", |
| "capacity", |
| "?" |
| ], |
| "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 |
| } |
| } |
| ] |