| [ | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity > 800", | |
| "query_toks": [ | |
| "SELECT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "EXCEPT", | |
| "SELECT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "capacity", | |
| ">", | |
| "800" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location", | |
| "from", | |
| "cinema", | |
| "except", | |
| "select", | |
| "location", | |
| "from", | |
| "cinema", | |
| "where", | |
| "capacity", | |
| ">", | |
| "value" | |
| ], | |
| "question": "800の容量を超える映画館をすべて表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| 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, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| 800.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011", | |
| "query_toks": [ | |
| "SELECT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "openning_year", | |
| "=", | |
| "2010", | |
| "INTERSECT", | |
| "SELECT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "openning_year", | |
| "=", | |
| "2011" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location", | |
| "from", | |
| "cinema", | |
| "where", | |
| "openning_year", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "location", | |
| "from", | |
| "cinema", | |
| "where", | |
| "openning_year", | |
| "=", | |
| "value" | |
| ], | |
| "question": "2010年と2011年の両方で開かれたすべての映画館を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| 2010.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| 2011.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT count(*) FROM cinema", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "cinema" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cinema" | |
| ], | |
| "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": "cinema", | |
| "query": "SELECT count(*) FROM cinema", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "cinema" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cinema" | |
| ], | |
| "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": "cinema", | |
| "query": "SELECT name , openning_year , capacity FROM cinema", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| ",", | |
| "openning_year", | |
| ",", | |
| "capacity", | |
| "FROM", | |
| "cinema" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| ",", | |
| "openning_year", | |
| ",", | |
| "capacity", | |
| "from", | |
| "cinema" | |
| ], | |
| "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, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT name , LOCATION FROM cinema WHERE capacity > (SELECT avg(capacity) FROM cinema)", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| ",", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "capacity", | |
| ">", | |
| "(", | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "capacity", | |
| ")", | |
| "FROM", | |
| "cinema", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| ",", | |
| "location", | |
| "from", | |
| "cinema", | |
| "where", | |
| "capacity", | |
| ">", | |
| "(", | |
| "select", | |
| "avg", | |
| "(", | |
| "capacity", | |
| ")", | |
| "from", | |
| "cinema", | |
| ")" | |
| ], | |
| "question": "平均以上の容量を持つ映画館の映画館名と場所を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 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": "cinema", | |
| "query": "SELECT DISTINCT LOCATION FROM cinema", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "location", | |
| "from", | |
| "cinema" | |
| ], | |
| "question": "映画館があるすべての場所は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT DISTINCT LOCATION FROM cinema", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "location", | |
| "from", | |
| "cinema" | |
| ], | |
| "question": "映画館があるすべての場所は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT name , openning_year FROM cinema ORDER BY openning_year DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| ",", | |
| "openning_year", | |
| "FROM", | |
| "cinema", | |
| "ORDER", | |
| "BY", | |
| "openning_year", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| ",", | |
| "openning_year", | |
| "from", | |
| "cinema", | |
| "order", | |
| "by", | |
| "openning_year", | |
| "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, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT name , LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "name", | |
| ",", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "ORDER", | |
| "BY", | |
| "capacity", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| ",", | |
| "location", | |
| "from", | |
| "cinema", | |
| "order", | |
| "by", | |
| "capacity", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "最大容量の映画館の名前と場所は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT avg(capacity) , min(capacity) , max(capacity) FROM cinema WHERE openning_year >= 2011", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "capacity", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "capacity", | |
| ")", | |
| ",", | |
| "max", | |
| "(", | |
| "capacity", | |
| ")", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "openning_year", | |
| ">", | |
| "=", | |
| "2011" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "capacity", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "capacity", | |
| ")", | |
| ",", | |
| "max", | |
| "(", | |
| "capacity", | |
| ")", | |
| "from", | |
| "cinema", | |
| "where", | |
| "openning_year", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "2011年以降にオープンしたすべての映画館の平均、最小、最大容量を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| 2011.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT LOCATION , count(*) FROM cinema GROUP BY LOCATION", | |
| "query_toks": [ | |
| "SELECT", | |
| "LOCATION", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "cinema", | |
| "GROUP", | |
| "BY", | |
| "LOCATION" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "cinema", | |
| "group", | |
| "by", | |
| "location" | |
| ], | |
| "question": "それぞれの場所とそこにある映画館の数を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT LOCATION FROM cinema WHERE openning_year >= 2010 GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "openning_year", | |
| ">", | |
| "=", | |
| "2010", | |
| "GROUP", | |
| "BY", | |
| "LOCATION", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location", | |
| "from", | |
| "cinema", | |
| "where", | |
| "openning_year", | |
| ">", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "location", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "2010年以降にオープンした映画館が最も多い場所はどこですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| 2010.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) >= 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "capacity", | |
| ">", | |
| "300", | |
| "GROUP", | |
| "BY", | |
| "LOCATION", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location", | |
| "from", | |
| "cinema", | |
| "where", | |
| "capacity", | |
| ">", | |
| "value", | |
| "group", | |
| "by", | |
| "location", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "300を超える容量の映画館が少なくとも2つあるすべての場所を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| 300.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) >= 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "capacity", | |
| ">", | |
| "300", | |
| "GROUP", | |
| "BY", | |
| "LOCATION", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location", | |
| "from", | |
| "cinema", | |
| "where", | |
| "capacity", | |
| ">", | |
| "value", | |
| "group", | |
| "by", | |
| "location", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "300を超える容量の映画館が2つ以上ある場所はどれですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| 300.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT title , directed_by FROM film", | |
| "query_toks": [ | |
| "SELECT", | |
| "title", | |
| ",", | |
| "directed_by", | |
| "FROM", | |
| "film" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "title", | |
| ",", | |
| "directed_by", | |
| "from", | |
| "film" | |
| ], | |
| "question": "すべての映画のタイトルと監督を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "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": "cinema", | |
| "query": "SELECT title , directed_by FROM film", | |
| "query_toks": [ | |
| "SELECT", | |
| "title", | |
| ",", | |
| "directed_by", | |
| "FROM", | |
| "film" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "title", | |
| ",", | |
| "directed_by", | |
| "from", | |
| "film" | |
| ], | |
| "question": "各映画のタイトルと監督は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "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": "cinema", | |
| "query": "SELECT DISTINCT directed_by FROM film", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "directed_by", | |
| "FROM", | |
| "film" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "directed_by", | |
| "from", | |
| "film" | |
| ], | |
| "question": "すべての監督を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT DISTINCT directed_by FROM film", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "directed_by", | |
| "FROM", | |
| "film" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "directed_by", | |
| "from", | |
| "film" | |
| ], | |
| "question": "すべての監督は誰ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT directed_by , count(*) FROM film GROUP BY directed_by", | |
| "query_toks": [ | |
| "SELECT", | |
| "directed_by", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "film", | |
| "GROUP", | |
| "BY", | |
| "directed_by" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "directed_by", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "film", | |
| "group", | |
| "by", | |
| "directed_by" | |
| ], | |
| "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": "cinema", | |
| "query": "SELECT T2.name , sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.name", | |
| ",", | |
| "sum", | |
| "(", | |
| "T1.show_times_per_day", | |
| ")", | |
| "FROM", | |
| "schedule", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "cinema", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.cinema_id", | |
| "=", | |
| "T2.cinema_id", | |
| "GROUP", | |
| "BY", | |
| "T1.cinema_id" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| ",", | |
| "sum", | |
| "(", | |
| "t1", | |
| ".", | |
| "show_times_per_day", | |
| ")", | |
| "from", | |
| "schedule", | |
| "as", | |
| "t1", | |
| "join", | |
| "cinema", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "cinema_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "cinema_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "cinema_id" | |
| ], | |
| "question": "各映画館の1日あたりの上映時間の合計はいくつですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT T2.title , max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.title", | |
| ",", | |
| "max", | |
| "(", | |
| "T1.price", | |
| ")", | |
| "FROM", | |
| "schedule", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "film", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.film_id", | |
| "=", | |
| "T2.film_id", | |
| "GROUP", | |
| "BY", | |
| "T1.film_id" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "title", | |
| ",", | |
| "max", | |
| "(", | |
| "t1", | |
| ".", | |
| "price", | |
| ")", | |
| "from", | |
| "schedule", | |
| "as", | |
| "t1", | |
| "join", | |
| "film", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "film_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "film_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "film_id" | |
| ], | |
| "question": "各映画のタイトルと最高価格はいくらですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT T2.title , max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.title", | |
| ",", | |
| "max", | |
| "(", | |
| "T1.price", | |
| ")", | |
| "FROM", | |
| "schedule", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "film", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.film_id", | |
| "=", | |
| "T2.film_id", | |
| "GROUP", | |
| "BY", | |
| "T1.film_id" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "title", | |
| ",", | |
| "max", | |
| "(", | |
| "t1", | |
| ".", | |
| "price", | |
| ")", | |
| "from", | |
| "schedule", | |
| "as", | |
| "t1", | |
| "join", | |
| "film", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "film_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "film_id", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "film_id" | |
| ], | |
| "question": "各映画のタイトルと最高価格を教えてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT T3.name , T2.title , T1.date , T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.name", | |
| ",", | |
| "T2.title", | |
| ",", | |
| "T1.date", | |
| ",", | |
| "T1.price", | |
| "FROM", | |
| "schedule", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "film", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.film_id", | |
| "=", | |
| "T2.film_id", | |
| "JOIN", | |
| "cinema", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.cinema_id", | |
| "=", | |
| "T3.cinema_id" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "name", | |
| ",", | |
| "t2", | |
| ".", | |
| "title", | |
| ",", | |
| "t1", | |
| ".", | |
| "date", | |
| ",", | |
| "t1", | |
| ".", | |
| "price", | |
| "from", | |
| "schedule", | |
| "as", | |
| "t1", | |
| "join", | |
| "film", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "film_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "film_id", | |
| "join", | |
| "cinema", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "cinema_id", | |
| "=", | |
| "t3", | |
| ".", | |
| "cinema_id" | |
| ], | |
| "question": "スケジュール内の各レコードの映画名、映画のタイトル、日付、価格を示す。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT title , directed_by FROM film WHERE film_id NOT IN (SELECT film_id FROM schedule)", | |
| "query_toks": [ | |
| "SELECT", | |
| "title", | |
| ",", | |
| "directed_by", | |
| "FROM", | |
| "film", | |
| "WHERE", | |
| "film_id", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "film_id", | |
| "FROM", | |
| "schedule", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "title", | |
| ",", | |
| "directed_by", | |
| "from", | |
| "film", | |
| "where", | |
| "film_id", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "film_id", | |
| "from", | |
| "schedule", | |
| ")" | |
| ], | |
| "question": "スケジュールのない映画のタイトルと監督は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| 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": "cinema", | |
| "query": "SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.directed_by", | |
| "FROM", | |
| "schedule", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "film", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.film_id", | |
| "=", | |
| "T2.film_id", | |
| "GROUP", | |
| "BY", | |
| "T2.directed_by", | |
| "ORDER", | |
| "BY", | |
| "sum", | |
| "(", | |
| "T1.show_times_per_day", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "directed_by", | |
| "from", | |
| "schedule", | |
| "as", | |
| "t1", | |
| "join", | |
| "film", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "film_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "film_id", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "directed_by", | |
| "order", | |
| "by", | |
| "sum", | |
| "(", | |
| "t1", | |
| ".", | |
| "show_times_per_day", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "合計上映回数が最も多い監督。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 4, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) > 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "capacity", | |
| ">", | |
| "300", | |
| "GROUP", | |
| "BY", | |
| "LOCATION", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location", | |
| "from", | |
| "cinema", | |
| "where", | |
| "capacity", | |
| ">", | |
| "value", | |
| "group", | |
| "by", | |
| "location", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value" | |
| ], | |
| "question": "300を超える容量の映画館が複数ある場所を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| 300.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) > 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "LOCATION", | |
| "FROM", | |
| "cinema", | |
| "WHERE", | |
| "capacity", | |
| ">", | |
| "300", | |
| "GROUP", | |
| "BY", | |
| "LOCATION", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "location", | |
| "from", | |
| "cinema", | |
| "where", | |
| "capacity", | |
| ">", | |
| "value", | |
| "group", | |
| "by", | |
| "location", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "value" | |
| ], | |
| "question": "300を超える容量の映画館が複数ある場所はどこですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ], | |
| 300.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT count(*) FROM film WHERE title LIKE \"%Dummy%\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "film", | |
| "WHERE", | |
| "title", | |
| "LIKE", | |
| "``", | |
| "%", | |
| "Dummy", | |
| "%", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "film", | |
| "where", | |
| "title", | |
| "like", | |
| "value" | |
| ], | |
| "question": "タイトルに「Dummy」という言葉が含まれている映画はいくつありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%Dummy%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "cinema", | |
| "query": "SELECT count(*) FROM film WHERE title LIKE \"%Dummy%\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "film", | |
| "WHERE", | |
| "title", | |
| "LIKE", | |
| "``", | |
| "%", | |
| "Dummy", | |
| "%", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "film", | |
| "where", | |
| "title", | |
| "like", | |
| "value" | |
| ], | |
| "question": "タイトルに「Dummy」という単語が含まれている映画の数を数えます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%Dummy%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| ] |