| [ | |
| { | |
| "db_id": "chinook_1", | |
| "query": "SELECT count(*) FROM ALBUM", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "ALBUM" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "album" | |
| ], | |
| "question": "Wie viele Alben gibt es?", | |
| "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": "Finden Sie die Anzahl der Alben.", | |
| "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": "Listen Sie die Namen aller Musikgenres auf.", | |
| "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": "Wie heißen verschiedene Musikgenres?", | |
| "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": "Hier finden Sie alle Kundeninformationen im Bundesland \"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": "Was sind alle Kundeninformationen für Kunden im Bundesland \"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": "Was sind die Vor- und Nachnamen der Mitarbeiter, die in in der Stadt \"Calgary\" leben.", | |
| "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": "Hier finden Sie die vollständigen Namen der in der Stadt \"Calgary\" lebenden Mitarbeiter.", | |
| "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": "Was sind die unterschiedlichen Abrechnungsländer der Rechnungen?", | |
| "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": "Finden Sie die verschiedenen Abrechnungsländer für alle Rechnungen.", | |
| "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": "Suchen Sie die Namen aller Künstler, deren Namen \"a\" enthalten.", | |
| "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": "Wie heißen Künstler, deren Namen den Buchstaben \"a\" enthalten?", | |
| "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": "Finden Sie den Titel aller Alben des Künstlers \"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": "Wie lauten die Titel der Alben des Künstlers \"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": "Hom viele Alben hat der Künstler \"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": "Finden Sie die Anzahl der Alben des Künstlers \"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": "Zu welchem Künstler gehört das Album \"Balls to the Wall\"?", | |
| "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": "Finde den Namen des Künstlers, der das Album \"Balls to the Wall\" gemacht hat.", | |
| "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": "Welcher Künstler hat die meisten Alben?", | |
| "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": "Wie heißt der Künstler mit der größten Anzahl von Alben?", | |
| "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": "Suchen Sie die Namen aller Titel, die das Wort \"you\" enthalten.", | |
| "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": "Finden Sie die Namen aller Stücke, die das Wort \"you\" enthalten.", | |
| "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": "Wie hoch ist der durchschnittliche Stückpreis für alle Stücke?", | |
| "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": "Ermitteln Sie den durchschnittlichen Stückpreis für ein Stück. ", | |
| "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": "Wie lang sind die längste und das kürzeste Stück in Millisekunden?", | |
| "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": "Ermitteln Sie die maximale und minimale Dauer der Stücke in Millisekunden.", | |
| "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": "Zeigen Sie die Albumnamen, IDs und die Anzahl der Stücke für jedes Album an.", | |
| "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": "Wie lauten die Namen und IDs der verschiedenen Alben und wie viele Stücke befinden sich auf jedem Album?", | |
| "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": "Wie heißt das häufigste Genre in allen Stücken?", | |
| "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": "Suchen Sie den Namen des Genres, das in allen Stücken am häufigsten vorkommt.", | |
| "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": "Was ist der am wenigsten verbreitete Medientyp in allen Stücken?", | |
| "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": "Wie heißt der Medientyp, der in allen Stücken am wenigsten verbreitet ist?", | |
| "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": "Zeigen Sie die Albumnamen und IDs für Alben an, die Titel mit einem Stückpreis größer als 1 enthalten.", | |
| "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": "Was sind die Titel und IDs für Alben, die Titel mit einem Stückpreis von mehr als 1 enthalten?", | |
| "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": "Wie viele Stücke gehören zum Rock-Genre?", | |
| "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": "Zählen Sie die Anzahl der Stücke, die Teil des Rock-Genres sind.", | |
| "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": "Was ist der durchschnittliche Stückpreis von Stücken, die zum Jazz-Genre gehören?", | |
| "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": "Finden Sie den durchschnittlichen Stückpreis für Jazz-Stücke.", | |
| "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": "Wie lautet der Vor- und Nachname des Kunden mit der E-Mail-Adresse \"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": "Den vollständigen Namen des Kunden finden Sie mit der E-Mail \"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": "Wie viele Kunden haben E-Mails mit \"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": "Zählen Sie die Anzahl der Kunden, die eine E-Mail mit \"gmail.com\" haben.", | |
| "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": "Was ist der Vor- und Nachname Mitarbeiter hilft dem Kunden mit Vorname \"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": "Finden Sie die vollständigen Namen der Mitarbeiter, die Kunden mit dem Vornamen \"Leonie\" helfen.", | |
| "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": "In welcher Stadt lebt der Mitarbeiter, der dem Kunden mit der Postleitzahl \"70174\" hilft?", | |
| "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": "Finden Sie die Städte, die Mitarbeitern entsprechen, die Kunden mit der Postleitzahl \"70174\" helfen.", | |
| "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": "In wie vielen verschiedenen Städten leben die Mitarbeiter?", | |
| "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": "Finden Sie die Anzahl der verschiedenen Städte, in denen Mitarbeiter leben.", | |
| "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": "Hier finden Sie alle Rechnungsdaten für Kunden mit Vorname \"Astrid\" und Nachname \"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": "Was sind die Rechnungsdaten für Kunden mit dem Vornamen \"Astrid\" und dem Nachnamen \"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": "Finden Sie alle Nachnamen des Kunden, deren Rechnungssummen nicht größer als 20 sind.", | |
| "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": "Wie lauten die Nachnamen von Kunden ohne Rechnungssummen über 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": "Finden Sie die Vornamen aller Kunden, die in \"Brazil\" leben und eine Rechnung haben.", | |
| "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": "Was sind die verschiedenen Vornamen für Kunden aus \"Brazil\", die ebenfalls eine Rechnung hatten?", | |
| "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": "Finden Sie die Adresse aller Kunden, die in \"Germany\" leben und eine Rechnung haben.", | |
| "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": "Wie lauten die Adressen der in \"Germany\" lebenden Kunden, die eine Rechnung hatten?", | |
| "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": "Listen Sie die Telefonnummern aller Mitarbeiter auf.", | |
| "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": "Wie lauten die Telefonnummern für jeden Mitarbeiter?", | |
| "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": "Wie viele Titel enthält der Medientyp von \"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": "Zählen Sie die Anzahl der Titel des Medientyps \"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": "Was ist die durchschnittliche Dauer in Millisekunden von Tracks, die zum \"Latin\"- oder \"Pop\"-Genre gehören?", | |
| "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": "Finden Sie die durchschnittliche Millisekundenlänge von \"Latin\"- und \"Pop\"-Tracks.", | |
| "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": "Bitte zeigen Sie die Vornamen und IDs der Mitarbeiter an, die mindestens 10 Kunden bedienen.", | |
| "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": "Was sind die Vornamen und Support-Mitarbeiter-IDs für Mitarbeiter, die 10 oder mehr Kunden bedienen?", | |
| "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": "Bitte zeigen Sie den Nachnamen des Mitarbeiters an, der nicht mehr als 20 Kunden bedient.", | |
| "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": "Wie lauten die Nachnamen der Mitarbeiter, die höchstens 20 Kunden bedienen?", | |
| "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": "Bitte listen Sie alle Albumtitel in alphabetischer Reihenfolge auf.", | |
| "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": "Was sind alle Albumtitel in alphabetischer Reihenfolge?", | |
| "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": "Bitte geben Sie den Namen und die ID aller Künstler an, die mindestens 3 Alben in alphabetischer Reihenfolge haben.", | |
| "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": "Wie lauten die Namen und IDs von Künstlern mit 3 oder mehr Alben, die in alphabetischer Reihenfolge aufgeführt sind?", | |
| "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": "Suchen Sie die Namen von Künstlern, die keine Alben haben.", | |
| "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": "Wie heißen Künstler, die keine Alben veröffentlicht haben?", | |
| "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": "Was ist der durchschnittliche Stückpreis für Rock Stücke?", | |
| "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": "Finden Sie den durchschnittlichen Stückpreis von Stücken aus dem Rock-Genre.", | |
| "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": "Wie lange dauern die längsten und kürzesten Pop-Stücke in Millisekunden?", | |
| "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": "Finden Sie die maximale und minimale Millisekundenlänge von Pop-Stücke.", | |
| "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": "Was sind die Geburtsdaten der in \"Edmonton\" lebenden Mitarbeiter?", | |
| "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": "Finden Sie die Geburtsdaten der Mitarbeiter, die in der Stadt \"Edmonton\" leben.", | |
| "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": "Was sind die unterschiedlichen Stückpreise aller Stücke?", | |
| "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": "Finden Sie die unterschiedlichen Stückpreise für Tracks.", | |
| "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": "Wie viele Künstler haben kein Album?", | |
| "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": "Ermitteln Sie die Anzahl der Künstler, die kein Album veröffentlicht haben.", | |
| "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": "Was sind die Albumtitel für Alben, die sowohl \"Reggae\"- als auch \"Rock\"-Genre-Stücke enthalten?", | |
| "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": "Suchen Sie nach Titeln von Alben, die Titel des Genres \"Reggae\" und \"Rock\" enthalten.", | |
| "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 | |
| } | |
| } | |
| ] |