| [ | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT count(*) FROM ALBUM", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ALBUM" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "album" | |
| ], | |
| "question": "アルバムはいくつありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT count(*) FROM ALBUM", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ALBUM" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "album" | |
| ], | |
| "question": "アルバムの数。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Name FROM GENRE", | |
| "query_toks": [ | |
| "SELECT", | |
| "Name", | |
| "FROM", | |
| "GENRE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "genre" | |
| ], | |
| "question": "すべての音楽ジャンルの名前をリストします。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Name FROM GENRE", | |
| "query_toks": [ | |
| "SELECT", | |
| "Name", | |
| "FROM", | |
| "GENRE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "genre" | |
| ], | |
| "question": "さまざまな音楽ジャンルの名前は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT * FROM CUSTOMER WHERE State = \"NY\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "CUSTOMER", | |
| "WHERE", | |
| "State", | |
| "=", | |
| "``", | |
| "NY", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "customer", | |
| "where", | |
| "state", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「NY」のすべての顧客情報を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NY\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT * FROM CUSTOMER WHERE State = \"NY\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "CUSTOMER", | |
| "WHERE", | |
| "State", | |
| "=", | |
| "``", | |
| "NY", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "customer", | |
| "where", | |
| "state", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「NY」の顧客のすべての顧客情報は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NY\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT FirstName , LastName FROM EMPLOYEE WHERE City = \"Calgary\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "FirstName", | |
| ",", | |
| "LastName", | |
| "FROM", | |
| "EMPLOYEE", | |
| "WHERE", | |
| "City", | |
| "=", | |
| "``", | |
| "Calgary", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "firstname", | |
| ",", | |
| "lastname", | |
| "from", | |
| "employee", | |
| "where", | |
| "city", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Calgary」市に住む従業員の名前と苗字は何ですか。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Calgary\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT FirstName , LastName FROM EMPLOYEE WHERE City = \"Calgary\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "FirstName", | |
| ",", | |
| "LastName", | |
| "FROM", | |
| "EMPLOYEE", | |
| "WHERE", | |
| "City", | |
| "=", | |
| "``", | |
| "Calgary", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "firstname", | |
| ",", | |
| "lastname", | |
| "from", | |
| "employee", | |
| "where", | |
| "city", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Calgary」市に住む従業員のフルネームを検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Calgary\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT distinct(BillingCountry) FROM INVOICE", | |
| "query_toks": [ | |
| "SELECT", | |
| "distinct", | |
| "(", | |
| "BillingCountry", | |
| ")", | |
| "FROM", | |
| "INVOICE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "(", | |
| "billingcountry", | |
| ")", | |
| "from", | |
| "invoice" | |
| ], | |
| "question": "請求書の請求国は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 42, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT distinct(BillingCountry) FROM INVOICE", | |
| "query_toks": [ | |
| "SELECT", | |
| "distinct", | |
| "(", | |
| "BillingCountry", | |
| ")", | |
| "FROM", | |
| "INVOICE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "(", | |
| "billingcountry", | |
| ")", | |
| "from", | |
| "invoice" | |
| ], | |
| "question": "すべての請求書のさまざまな請求国を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 42, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Name FROM ARTIST WHERE Name LIKE \"%a%\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Name", | |
| "FROM", | |
| "ARTIST", | |
| "WHERE", | |
| "Name", | |
| "LIKE", | |
| "``", | |
| "%", | |
| "a", | |
| "%", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "artist", | |
| "where", | |
| "name", | |
| "like", | |
| "value" | |
| ], | |
| "question": "名前に「a」が含まれているすべてのアーティストの名前を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%a%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Name FROM ARTIST WHERE Name LIKE \"%a%\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Name", | |
| "FROM", | |
| "ARTIST", | |
| "WHERE", | |
| "Name", | |
| "LIKE", | |
| "``", | |
| "%", | |
| "a", | |
| "%", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "artist", | |
| "where", | |
| "name", | |
| "like", | |
| "value" | |
| ], | |
| "question": "名前に「a」の文字が含まれているアーティストの名前は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%a%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"AC/DC\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Title", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId", | |
| "WHERE", | |
| "T2.Name", | |
| "=", | |
| "``", | |
| "AC/DC", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "title", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "where", | |
| "t2", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "アーティスト「AC / DC」の全アルバムのタイトルを検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AC/DC\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"AC/DC\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Title", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId", | |
| "WHERE", | |
| "T2.Name", | |
| "=", | |
| "``", | |
| "AC/DC", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "title", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "where", | |
| "t2", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "アーティスト「AC / DC」のアルバムのタイトルは?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AC/DC\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"Metallica\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId", | |
| "WHERE", | |
| "T2.Name", | |
| "=", | |
| "``", | |
| "Metallica", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "where", | |
| "t2", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "アーティスト「Metallica」にはいくつのアルバムがありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Metallica\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"Metallica\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId", | |
| "WHERE", | |
| "T2.Name", | |
| "=", | |
| "``", | |
| "Metallica", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "where", | |
| "t2", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "アーティスト「Metallica」のアルバム数を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Metallica\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = \"Balls to the Wall\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId", | |
| "WHERE", | |
| "T1.Title", | |
| "=", | |
| "``", | |
| "Balls", | |
| "to", | |
| "the", | |
| "Wall", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "where", | |
| "t1", | |
| ".", | |
| "title", | |
| "=", | |
| "value" | |
| ], | |
| "question": "アルバム「BallstotheWall」はどのアーティストに所属していますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Balls to the Wall\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = \"Balls to the Wall\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId", | |
| "WHERE", | |
| "T1.Title", | |
| "=", | |
| "``", | |
| "Balls", | |
| "to", | |
| "the", | |
| "Wall", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "where", | |
| "t1", | |
| ".", | |
| "title", | |
| "=", | |
| "value" | |
| ], | |
| "question": "アルバム「BallstotheWall」を作ったアーティストの名前を見つけてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Balls to the Wall\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId", | |
| "GROUP", | |
| "BY", | |
| "T2.Name", | |
| "ORDER", | |
| "BY", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "name", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "アルバムが最も多いアーティストはどれですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId", | |
| "GROUP", | |
| "BY", | |
| "T2.Name", | |
| "ORDER", | |
| "BY", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "name", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "アルバム数が最も多いアーティストの名前は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Name FROM TRACK WHERE Name LIKE '%you%'", | |
| "query_toks": [ | |
| "SELECT", | |
| "Name", | |
| "FROM", | |
| "TRACK", | |
| "WHERE", | |
| "Name", | |
| "LIKE", | |
| "'", | |
| "%", | |
| "you", | |
| "%", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "track", | |
| "where", | |
| "name", | |
| "like", | |
| "value" | |
| ], | |
| "question": "「you」という単語を含むすべてのトラックの名前を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%you%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Name FROM TRACK WHERE Name LIKE '%you%'", | |
| "query_toks": [ | |
| "SELECT", | |
| "Name", | |
| "FROM", | |
| "TRACK", | |
| "WHERE", | |
| "Name", | |
| "LIKE", | |
| "'", | |
| "%", | |
| "you", | |
| "%", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "track", | |
| "where", | |
| "name", | |
| "like", | |
| "value" | |
| ], | |
| "question": "「you」という言葉が含まれているトラックの名前は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 57, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%you%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT AVG(UnitPrice) FROM TRACK", | |
| "query_toks": [ | |
| "SELECT", | |
| "AVG", | |
| "(", | |
| "UnitPrice", | |
| ")", | |
| "FROM", | |
| "TRACK" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "unitprice", | |
| ")", | |
| "from", | |
| "track" | |
| ], | |
| "question": "全トラックの平均単価はいくらですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT AVG(UnitPrice) FROM TRACK", | |
| "query_toks": [ | |
| "SELECT", | |
| "AVG", | |
| "(", | |
| "UnitPrice", | |
| ")", | |
| "FROM", | |
| "TRACK" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "unitprice", | |
| ")", | |
| "from", | |
| "track" | |
| ], | |
| "question": "トラックの平均単価。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| "FROM", | |
| "TRACK" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| "from", | |
| "track" | |
| ], | |
| "question": "ミリ秒単位の最長トラックと最短トラックの継続時間はどれくらいですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| "FROM", | |
| "TRACK" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| "from", | |
| "track" | |
| ], | |
| "question": "トラックの最大期間と最小期間をミリ秒単位で見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Title", | |
| ",", | |
| "T2.AlbumID", | |
| ",", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.AlbumId", | |
| "=", | |
| "T2.AlbumId", | |
| "GROUP", | |
| "BY", | |
| "T2.AlbumID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "title", | |
| ",", | |
| "t2", | |
| ".", | |
| "albumid", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "albumid", | |
| "=", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "albumid" | |
| ], | |
| "question": "各アルバムのアルバム名、ID、およびトラック数を表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Title", | |
| ",", | |
| "T2.AlbumID", | |
| ",", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.AlbumId", | |
| "=", | |
| "T2.AlbumId", | |
| "GROUP", | |
| "BY", | |
| "T2.AlbumID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "title", | |
| ",", | |
| "t2", | |
| ".", | |
| "albumid", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "albumid", | |
| "=", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "albumid" | |
| ], | |
| "question": "さまざまなアルバムの名前とIDは何ですか?また、それぞれにいくつのトラックがありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Name", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "GROUP", | |
| "BY", | |
| "T2.GenreId", | |
| "ORDER", | |
| "BY", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "すべてのトラックで最も多いジャンルの名前は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Name", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "GROUP", | |
| "BY", | |
| "T2.GenreId", | |
| "ORDER", | |
| "BY", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "すべてのトラックで最も頻繁に使用されるジャンルの名前。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Name", | |
| "FROM", | |
| "MEDIATYPE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MediaTypeId", | |
| "=", | |
| "T2.MediaTypeId", | |
| "GROUP", | |
| "BY", | |
| "T2.MediaTypeId", | |
| "ORDER", | |
| "BY", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| "from", | |
| "mediatype", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "mediatypeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "mediatypeid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "mediatypeid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "すべてのトラックで最も多いメディアタイプは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 50, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 59, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 51, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 59, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Name", | |
| "FROM", | |
| "MEDIATYPE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MediaTypeId", | |
| "=", | |
| "T2.MediaTypeId", | |
| "GROUP", | |
| "BY", | |
| "T2.MediaTypeId", | |
| "ORDER", | |
| "BY", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| "from", | |
| "mediatype", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "mediatypeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "mediatypeid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "mediatypeid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "すべてのトラックで最も少ないメディアタイプの名前は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 50, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 59, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 51, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 59, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Title", | |
| ",", | |
| "T2.AlbumID", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.AlbumId", | |
| "=", | |
| "T2.AlbumId", | |
| "WHERE", | |
| "T2.UnitPrice", | |
| ">", | |
| "1", | |
| "GROUP", | |
| "BY", | |
| "T2.AlbumID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "title", | |
| ",", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "albumid", | |
| "=", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "where", | |
| "t2", | |
| ".", | |
| "unitprice", | |
| ">", | |
| "value", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "albumid" | |
| ], | |
| "question": "単価が1より大きいトラックを含むアルバムのアルバム名とIDを表示します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Title", | |
| ",", | |
| "T2.AlbumID", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.AlbumId", | |
| "=", | |
| "T2.AlbumId", | |
| "WHERE", | |
| "T2.UnitPrice", | |
| ">", | |
| "1", | |
| "GROUP", | |
| "BY", | |
| "T2.AlbumID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "title", | |
| ",", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "albumid", | |
| "=", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "where", | |
| "t2", | |
| ".", | |
| "unitprice", | |
| ">", | |
| "value", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "albumid" | |
| ], | |
| "question": "単価が1より大きいトラックを含むアルバムのタイトルとIDは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Rock", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ロックのジャンルに属するトラックはいくつありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Rock\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Rock", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ロックジャンルのトラックの数を数えます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Rock\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Jazz\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "AVG", | |
| "(", | |
| "UnitPrice", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Jazz", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "unitprice", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ジャズのジャンルに属するトラックの平均単価はいくらですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Jazz\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Jazz\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "AVG", | |
| "(", | |
| "UnitPrice", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Jazz", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "unitprice", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ジャズトラックの平均単価を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Jazz\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT FirstName , LastName FROM CUSTOMER WHERE Email = \"luisg@embraer.com.br\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "FirstName", | |
| ",", | |
| "LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "WHERE", | |
| "Email", | |
| "=", | |
| "``", | |
| "luisg", | |
| "@", | |
| "embraer.com.br", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "firstname", | |
| ",", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "where", | |
| "email", | |
| "=", | |
| "value" | |
| ], | |
| "question": "メール「luisg@embraer.com.br」を持っている顧客の名前と苗字は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"luisg@embraer.com.br\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT FirstName , LastName FROM CUSTOMER WHERE Email = \"luisg@embraer.com.br\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "FirstName", | |
| ",", | |
| "LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "WHERE", | |
| "Email", | |
| "=", | |
| "``", | |
| "luisg", | |
| "@", | |
| "embraer.com.br", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "firstname", | |
| ",", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "where", | |
| "email", | |
| "=", | |
| "value" | |
| ], | |
| "question": "メール「luisg@embraer.com.br」で顧客のフルネームを見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"luisg@embraer.com.br\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE \"%gmail.com%\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CUSTOMER", | |
| "WHERE", | |
| "Email", | |
| "LIKE", | |
| "``", | |
| "%", | |
| "gmail.com", | |
| "%", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "customer", | |
| "where", | |
| "email", | |
| "like", | |
| "value" | |
| ], | |
| "question": "「gmail.com」を含むメールを持っている顧客は何人いますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%gmail.com%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE \"%gmail.com%\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "CUSTOMER", | |
| "WHERE", | |
| "Email", | |
| "LIKE", | |
| "``", | |
| "%", | |
| "gmail.com", | |
| "%", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "customer", | |
| "where", | |
| "email", | |
| "like", | |
| "value" | |
| ], | |
| "question": "「gmail.com」を含むメールを持っている顧客の数を数えます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%gmail.com%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = \"Leonie\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.FirstName", | |
| ",", | |
| "T2.LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "EMPLOYEE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.SupportRepId", | |
| "=", | |
| "T2.EmployeeId", | |
| "WHERE", | |
| "T1.FirstName", | |
| "=", | |
| "``", | |
| "Leonie", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "firstname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "employee", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "=", | |
| "t2", | |
| ".", | |
| "employeeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "firstname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ファーストネームは「Leonie」の顧客を支援しました従業員のファーストネームとラストネーム。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Leonie\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = \"Leonie\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.FirstName", | |
| ",", | |
| "T2.LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "EMPLOYEE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.SupportRepId", | |
| "=", | |
| "T2.EmployeeId", | |
| "WHERE", | |
| "T1.FirstName", | |
| "=", | |
| "``", | |
| "Leonie", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "firstname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "employee", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "=", | |
| "t2", | |
| ".", | |
| "employeeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "firstname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Leonie」という名の顧客を支援した従業員のフルネーム。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Leonie\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = \"70174\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.City", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "EMPLOYEE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.SupportRepId", | |
| "=", | |
| "T2.EmployeeId", | |
| "WHERE", | |
| "T1.PostalCode", | |
| "=", | |
| "``", | |
| "70174", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "city", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "employee", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "=", | |
| "t2", | |
| ".", | |
| "employeeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "postalcode", | |
| "=", | |
| "value" | |
| ], | |
| "question": "郵便番号「70174」で顧客を支援した従業員はどの都市に住んでいますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"70174\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = \"70174\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.City", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "EMPLOYEE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.SupportRepId", | |
| "=", | |
| "T2.EmployeeId", | |
| "WHERE", | |
| "T1.PostalCode", | |
| "=", | |
| "``", | |
| "70174", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "city", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "employee", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "=", | |
| "t2", | |
| ".", | |
| "employeeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "postalcode", | |
| "=", | |
| "value" | |
| ], | |
| "question": "郵便番号「70174」で顧客を支援した従業員の対応する都市。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 14, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"70174\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(DISTINCT city) FROM EMPLOYEE", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "DISTINCT", | |
| "city", | |
| ")", | |
| "FROM", | |
| "EMPLOYEE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "city", | |
| ")", | |
| "from", | |
| "employee" | |
| ], | |
| "question": "従業員はいくつの異なる都市に住んでいますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(DISTINCT city) FROM EMPLOYEE", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "DISTINCT", | |
| "city", | |
| ")", | |
| "FROM", | |
| "EMPLOYEE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "city", | |
| ")", | |
| "from", | |
| "employee" | |
| ], | |
| "question": "従業員が住んでいるさまざまな都市の数を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = \"Astrid\" AND LastName = \"Gruber\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.InvoiceDate", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "INVOICE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CustomerId", | |
| "=", | |
| "T2.CustomerId", | |
| "WHERE", | |
| "T1.FirstName", | |
| "=", | |
| "``", | |
| "Astrid", | |
| "''", | |
| "AND", | |
| "LastName", | |
| "=", | |
| "``", | |
| "Gruber", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "invoicedate", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "invoice", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "customerid", | |
| "=", | |
| "t2", | |
| ".", | |
| "customerid", | |
| "where", | |
| "t1", | |
| ".", | |
| "firstname", | |
| "=", | |
| "value", | |
| "and", | |
| "lastname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "名が「Astrid」、苗字が「Gruber」の顧客に対応するすべての請求日を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Astrid\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Gruber\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = \"Astrid\" AND LastName = \"Gruber\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.InvoiceDate", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "INVOICE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CustomerId", | |
| "=", | |
| "T2.CustomerId", | |
| "WHERE", | |
| "T1.FirstName", | |
| "=", | |
| "``", | |
| "Astrid", | |
| "''", | |
| "AND", | |
| "LastName", | |
| "=", | |
| "``", | |
| "Gruber", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "invoicedate", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "invoice", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "customerid", | |
| "=", | |
| "t2", | |
| ".", | |
| "customerid", | |
| "where", | |
| "t1", | |
| ".", | |
| "firstname", | |
| "=", | |
| "value", | |
| "and", | |
| "lastname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "名が「Astrid」、苗字が「Gruber」の顧客の請求日はいつですか。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Astrid\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Gruber\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20", | |
| "query_toks": [ | |
| "SELECT", | |
| "LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Invoice", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CustomerId", | |
| "=", | |
| "T2.CustomerId", | |
| "WHERE", | |
| "T2.total", | |
| ">", | |
| "20" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "invoice", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "customerid", | |
| "=", | |
| "t2", | |
| ".", | |
| "customerid", | |
| "where", | |
| "t2", | |
| ".", | |
| "total", | |
| ">", | |
| "value" | |
| ], | |
| "question": "請求書の合計が20を超えないすべての顧客の苗字を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 44, | |
| false | |
| ], | |
| null | |
| ], | |
| 20.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20", | |
| "query_toks": [ | |
| "SELECT", | |
| "LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Invoice", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CustomerId", | |
| "=", | |
| "T2.CustomerId", | |
| "WHERE", | |
| "T2.total", | |
| ">", | |
| "20" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "invoice", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "customerid", | |
| "=", | |
| "t2", | |
| ".", | |
| "customerid", | |
| "where", | |
| "t2", | |
| ".", | |
| "total", | |
| ">", | |
| "value" | |
| ], | |
| "question": "請求書の合計が20を超えていない顧客の苗字は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 44, | |
| false | |
| ], | |
| null | |
| ], | |
| 20.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Brazil\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.FirstName", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "INVOICE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CustomerId", | |
| "=", | |
| "T2.CustomerId", | |
| "WHERE", | |
| "T1.country", | |
| "=", | |
| "``", | |
| "Brazil", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "firstname", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "invoice", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "customerid", | |
| "=", | |
| "t2", | |
| ".", | |
| "customerid", | |
| "where", | |
| "t1", | |
| ".", | |
| "country", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Brazil」に住んでいて請求書を持っているすべての顧客の名。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Brazil\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Brazil\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.FirstName", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "INVOICE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CustomerId", | |
| "=", | |
| "T2.CustomerId", | |
| "WHERE", | |
| "T1.country", | |
| "=", | |
| "``", | |
| "Brazil", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "firstname", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "invoice", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "customerid", | |
| "=", | |
| "t2", | |
| ".", | |
| "customerid", | |
| "where", | |
| "t1", | |
| ".", | |
| "country", | |
| "=", | |
| "value" | |
| ], | |
| "question": "請求書も持っている「Brazil」の顧客の異なる名は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Brazil\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Germany\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.Address", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "INVOICE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CustomerId", | |
| "=", | |
| "T2.CustomerId", | |
| "WHERE", | |
| "T1.country", | |
| "=", | |
| "``", | |
| "Germany", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "address", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "invoice", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "customerid", | |
| "=", | |
| "t2", | |
| ".", | |
| "customerid", | |
| "where", | |
| "t1", | |
| ".", | |
| "country", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Germany」に住んでいて請求書を持っているすべての顧客の住所。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Germany\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Germany\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.Address", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "INVOICE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CustomerId", | |
| "=", | |
| "T2.CustomerId", | |
| "WHERE", | |
| "T1.country", | |
| "=", | |
| "``", | |
| "Germany", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "address", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "invoice", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "customerid", | |
| "=", | |
| "t2", | |
| ".", | |
| "customerid", | |
| "where", | |
| "t1", | |
| ".", | |
| "country", | |
| "=", | |
| "value" | |
| ], | |
| "question": "請求書を持っている「Germany」に住んでいる顧客の住所は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Germany\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Phone FROM EMPLOYEE", | |
| "query_toks": [ | |
| "SELECT", | |
| "Phone", | |
| "FROM", | |
| "EMPLOYEE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "phone", | |
| "from", | |
| "employee" | |
| ], | |
| "question": "すべての従業員の電話番号をリストします。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 31, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Phone FROM EMPLOYEE", | |
| "query_toks": [ | |
| "SELECT", | |
| "Phone", | |
| "FROM", | |
| "EMPLOYEE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "phone", | |
| "from", | |
| "employee" | |
| ], | |
| "question": "各従業員の電話番号は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 31, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = \"AAC audio file\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "MEDIATYPE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MediaTypeId", | |
| "=", | |
| "T2.MediaTypeId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "AAC", | |
| "audio", | |
| "file", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "mediatype", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "mediatypeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "mediatypeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「AAC audio file」メディアタイプにはいくつのトラックがありますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 50, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 59, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 51, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AAC audio file\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = \"AAC audio file\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "MEDIATYPE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.MediaTypeId", | |
| "=", | |
| "T2.MediaTypeId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "AAC", | |
| "audio", | |
| "file", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "mediatype", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "mediatypeid", | |
| "=", | |
| "t2", | |
| ".", | |
| "mediatypeid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "メディアタイプ「AAC audio file」のトラック数をカウントします。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 50, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 59, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 51, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AAC audio file\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Latin\" OR T1.Name = \"Pop\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "AVG", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Latin", | |
| "''", | |
| "OR", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Pop", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value", | |
| "or", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Latin」または「Pop」のジャンルに属するトラックの平均デュレーション(ミリ秒)はどれくらいですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Latin\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Pop\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Latin\" OR T1.Name = \"Pop\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "AVG", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Latin", | |
| "''", | |
| "OR", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Pop", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value", | |
| "or", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Latin」トラックと「Pop」トラックの平均ミリ秒の長さ。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Latin\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Pop\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FirstName", | |
| ",", | |
| "T1.SupportRepId", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "EMPLOYEE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.SupportRepId", | |
| "=", | |
| "T2.EmployeeId", | |
| "GROUP", | |
| "BY", | |
| "T1.SupportRepId", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "10" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "firstname", | |
| ",", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "employee", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "=", | |
| "t2", | |
| ".", | |
| "employeeid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "10人以上の顧客にサービスを提供している従業員の名前とIDを提示してください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 10.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FirstName", | |
| ",", | |
| "T1.SupportRepId", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "EMPLOYEE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.SupportRepId", | |
| "=", | |
| "T2.EmployeeId", | |
| "GROUP", | |
| "BY", | |
| "T1.SupportRepId", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "10" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "firstname", | |
| ",", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "employee", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "=", | |
| "t2", | |
| ".", | |
| "employeeid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "10人以上の顧客にサービスを提供する従業員の名とサポート担当者IDは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 10.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "EMPLOYEE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.SupportRepId", | |
| "=", | |
| "T2.EmployeeId", | |
| "GROUP", | |
| "BY", | |
| "T1.SupportRepId", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "<", | |
| "=", | |
| "20" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "employee", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "=", | |
| "t2", | |
| ".", | |
| "employeeid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "<", | |
| "=", | |
| "value" | |
| ], | |
| "question": "20人以下の顧客にサービスを提供する従業員の苗字を示すしてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 20.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.LastName", | |
| "FROM", | |
| "CUSTOMER", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "EMPLOYEE", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.SupportRepId", | |
| "=", | |
| "T2.EmployeeId", | |
| "GROUP", | |
| "BY", | |
| "T1.SupportRepId", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "<", | |
| "=", | |
| "20" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "lastname", | |
| "from", | |
| "customer", | |
| "as", | |
| "t1", | |
| "join", | |
| "employee", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "=", | |
| "t2", | |
| ".", | |
| "employeeid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "supportrepid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "<", | |
| "=", | |
| "value" | |
| ], | |
| "question": "最大20人の顧客にサービスを提供する従業員の苗字は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 6, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 20.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Title FROM ALBUM ORDER BY Title", | |
| "query_toks": [ | |
| "SELECT", | |
| "Title", | |
| "FROM", | |
| "ALBUM", | |
| "ORDER", | |
| "BY", | |
| "Title" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "title", | |
| "from", | |
| "album", | |
| "order", | |
| "by", | |
| "title" | |
| ], | |
| "question": "すべてのアルバムタイトルをアルファベット順にリストしてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Title FROM ALBUM ORDER BY Title", | |
| "query_toks": [ | |
| "SELECT", | |
| "Title", | |
| "FROM", | |
| "ALBUM", | |
| "ORDER", | |
| "BY", | |
| "Title" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "title", | |
| "from", | |
| "album", | |
| "order", | |
| "by", | |
| "title" | |
| ], | |
| "question": "アルファベット順のすべてのアルバムタイトルは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| ",", | |
| "T1.ArtistId", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistID", | |
| "GROUP", | |
| "BY", | |
| "T1.ArtistId", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "3", | |
| "ORDER", | |
| "BY", | |
| "T2.Name" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| ",", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "name" | |
| ], | |
| "question": "少なくとも3枚のアルバムを持っているすべてのアーティストの名前とIDをアルファベット順にリストしてください。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| ",", | |
| "T1.ArtistId", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistID", | |
| "GROUP", | |
| "BY", | |
| "T1.ArtistId", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "3", | |
| "ORDER", | |
| "BY", | |
| "T2.Name" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| ",", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "name" | |
| ], | |
| "question": "アルファベット順に3枚以上のアルバムを持っているアーティストの名前とIDは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId", | |
| "query_toks": [ | |
| "SELECT", | |
| "Name", | |
| "FROM", | |
| "ARTIST", | |
| "EXCEPT", | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "artist", | |
| "except", | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid" | |
| ], | |
| "question": "アルバムを持っていないアーティストの名前。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId", | |
| "query_toks": [ | |
| "SELECT", | |
| "Name", | |
| "FROM", | |
| "ARTIST", | |
| "EXCEPT", | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "ALBUM", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ARTIST", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.ArtistId", | |
| "=", | |
| "T2.ArtistId" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| "from", | |
| "artist", | |
| "except", | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "artist", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "artistid", | |
| "=", | |
| "t2", | |
| ".", | |
| "artistid" | |
| ], | |
| "question": "アルバムをリリースしていないアーティストの名前は何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "AVG", | |
| "(", | |
| "T2.UnitPrice", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Rock", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "unitprice", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ロックトラックの平均単価はいくらですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Rock\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "AVG", | |
| "(", | |
| "T2.UnitPrice", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Rock", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "unitprice", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "ロックジャンルのトラックの平均単価を検索します。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Rock\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Pop\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Pop", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "最長および最短のポップトラックのデュレーションはどれくらいですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Pop\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Pop\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "Milliseconds", | |
| ")", | |
| "FROM", | |
| "GENRE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "TRACK", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.GenreId", | |
| "=", | |
| "T2.GenreId", | |
| "WHERE", | |
| "T1.Name", | |
| "=", | |
| "``", | |
| "Pop", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "milliseconds", | |
| ")", | |
| "from", | |
| "genre", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t1", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "最長および最短のポップトラックのデュレーションはどれくらいですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 62, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Pop\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT BirthDate FROM EMPLOYEE WHERE City = \"Edmonton\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "BirthDate", | |
| "FROM", | |
| "EMPLOYEE", | |
| "WHERE", | |
| "City", | |
| "=", | |
| "``", | |
| "Edmonton", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "birthdate", | |
| "from", | |
| "employee", | |
| "where", | |
| "city", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「 Edmonton」に住む従業員の生年月日はいつですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Edmonton\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT BirthDate FROM EMPLOYEE WHERE City = \"Edmonton\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "BirthDate", | |
| "FROM", | |
| "EMPLOYEE", | |
| "WHERE", | |
| "City", | |
| "=", | |
| "``", | |
| "Edmonton", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "birthdate", | |
| "from", | |
| "employee", | |
| "where", | |
| "city", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「 Edmonton」に住む従業員に対応する生年月日を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Edmonton\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT distinct(UnitPrice) FROM TRACK", | |
| "query_toks": [ | |
| "SELECT", | |
| "distinct", | |
| "(", | |
| "UnitPrice", | |
| ")", | |
| "FROM", | |
| "TRACK" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "(", | |
| "unitprice", | |
| ")", | |
| "from", | |
| "track" | |
| ], | |
| "question": "すべてのトラックのの単価はいくらですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT distinct(UnitPrice) FROM TRACK", | |
| "query_toks": [ | |
| "SELECT", | |
| "distinct", | |
| "(", | |
| "UnitPrice", | |
| ")", | |
| "FROM", | |
| "TRACK" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "(", | |
| "unitprice", | |
| ")", | |
| "from", | |
| "track" | |
| ], | |
| "question": "トラックの単価を見つけます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 10 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 64, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ARTIST", | |
| "WHERE", | |
| "artistid", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "artistid", | |
| "FROM", | |
| "ALBUM", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "artist", | |
| "where", | |
| "artistid", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "artistid", | |
| "from", | |
| "album", | |
| ")" | |
| ], | |
| "question": "アルバムを持っていないアーティストは何人いますか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ARTIST", | |
| "WHERE", | |
| "artistid", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "artistid", | |
| "FROM", | |
| "ALBUM", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "artist", | |
| "where", | |
| "artistid", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "artistid", | |
| "from", | |
| "album", | |
| ")" | |
| ], | |
| "question": "アルバムをリリースしていないアーティストの数を数えます。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Title", | |
| "FROM", | |
| "Album", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Track", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.AlbumId", | |
| "=", | |
| "T2.AlbumId", | |
| "JOIN", | |
| "Genre", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.GenreID", | |
| "=", | |
| "T3.GenreID", | |
| "WHERE", | |
| "T3.Name", | |
| "=", | |
| "'Reggae", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.Title", | |
| "FROM", | |
| "Album", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Track", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.AlbumId", | |
| "=", | |
| "T2.AlbumId", | |
| "JOIN", | |
| "Genre", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.GenreID", | |
| "=", | |
| "T3.GenreID", | |
| "WHERE", | |
| "T3.Name", | |
| "=", | |
| "'Rock", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "title", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "albumid", | |
| "=", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "join", | |
| "genre", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t3", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t3", | |
| ".", | |
| "name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "title", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "albumid", | |
| "=", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "join", | |
| "genre", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t3", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t3", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Reggae」と「Rock」の両方のジャンルのトラックを含むアルバムのアルバムタイトルは何ですか?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Reggae\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Rock\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Title", | |
| "FROM", | |
| "Album", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Track", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.AlbumId", | |
| "=", | |
| "T2.AlbumId", | |
| "JOIN", | |
| "Genre", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.GenreID", | |
| "=", | |
| "T3.GenreID", | |
| "WHERE", | |
| "T3.Name", | |
| "=", | |
| "'Reggae", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.Title", | |
| "FROM", | |
| "Album", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Track", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.AlbumId", | |
| "=", | |
| "T2.AlbumId", | |
| "JOIN", | |
| "Genre", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.GenreID", | |
| "=", | |
| "T3.GenreID", | |
| "WHERE", | |
| "T3.Name", | |
| "=", | |
| "'Rock", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "title", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "albumid", | |
| "=", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "join", | |
| "genre", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t3", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t3", | |
| ".", | |
| "name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "title", | |
| "from", | |
| "album", | |
| "as", | |
| "t1", | |
| "join", | |
| "track", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "albumid", | |
| "=", | |
| "t2", | |
| ".", | |
| "albumid", | |
| "join", | |
| "genre", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "genreid", | |
| "=", | |
| "t3", | |
| ".", | |
| "genreid", | |
| "where", | |
| "t3", | |
| ".", | |
| "name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "「Reggae」と「Rock」の両方のジャンルのトラックを含むアルバムのタイトル。", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Reggae\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 10 | |
| ], | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 58, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 60, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Rock\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| ] |