[ { "db_id": "book_2", "query": "SELECT count(*) FROM book", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "book" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "book" ], "question": "Wieviele Bücher sind dort?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Writer FROM book ORDER BY Writer ASC", "query_toks": [ "SELECT", "Writer", "FROM", "book", "ORDER", "BY", "Writer", "ASC" ], "query_toks_no_value": [ "select", "writer", "from", "book", "order", "by", "writer", "asc" ], "question": "Listen Sie die Autoren der Bücher in aufsteigender alphabetischer Reihenfolge auf.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Title FROM book ORDER BY Issues ASC", "query_toks": [ "SELECT", "Title", "FROM", "book", "ORDER", "BY", "Issues", "ASC" ], "query_toks_no_value": [ "select", "title", "from", "book", "order", "by", "issues", "asc" ], "question": "Listen Sie die Titel der Bücher in aufsteigender Reihenfolge der Ausgaben auf.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Title FROM book WHERE Writer != \"Elaine Lee\"", "query_toks": [ "SELECT", "Title", "FROM", "book", "WHERE", "Writer", "!", "=", "``", "Elaine", "Lee", "''" ], "query_toks_no_value": [ "select", "title", "from", "book", "where", "writer", "!", "=", "value" ], "question": "Wie lauten die Titel der Bücher, deren Autorin nicht \"Elaine Lee\" ist?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ false, 7, [ 0, [ 0, 9, false ], null ], "\"Elaine Lee\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Title , Issues FROM book", "query_toks": [ "SELECT", "Title", ",", "Issues", "FROM", "book" ], "query_toks_no_value": [ "select", "title", ",", "issues", "from", "book" ], "question": "Was sind der Titel und die Ausgaben der Bücher?", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Publication_Date FROM publication ORDER BY Price DESC", "query_toks": [ "SELECT", "Publication_Date", "FROM", "publication", "ORDER", "BY", "Price", "DESC" ], "query_toks_no_value": [ "select", "publication_date", "from", "publication", "order", "by", "price", "desc" ], "question": "Was sind die Veröffentlichungsdaten in absteigender Reihenfolge des Preises?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT DISTINCT Publisher FROM publication WHERE Price > 5000000", "query_toks": [ "SELECT", "DISTINCT", "Publisher", "FROM", "publication", "WHERE", "Price", ">", "5000000" ], "query_toks_no_value": [ "select", "distinct", "publisher", "from", "publication", "where", "price", ">", "value" ], "question": "Was sind die verschiedenen Verleger von Veröffentlichungen mit einem Preis über 5000000?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 5000000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1", "query_toks": [ "SELECT", "Publisher", "FROM", "publication", "ORDER", "BY", "Price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "publisher", "from", "publication", "order", "by", "price", "desc", "limit", "value" ], "question": "Listen Sie den Herausgeber der Publikation mit dem höchsten Preis auf.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3", "query_toks": [ "SELECT", "Publication_Date", "FROM", "publication", "ORDER", "BY", "Price", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "publication_date", "from", "publication", "order", "by", "price", "asc", "limit", "value" ], "question": "Listen Sie die Veröffentlichungsdaten von Veröffentlichungen mit 3 niedrigsten Preisen auf.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT T1.Title , T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID", "query_toks": [ "SELECT", "T1.Title", ",", "T2.Publication_Date", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1.Book_ID", "=", "T2.Book_ID" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "publication_date", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id" ], "question": "Zeigen Sie den Titel und die Erscheinungsdaten von Büchern an.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000", "query_toks": [ "SELECT", "T1.Writer", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1.Book_ID", "=", "T2.Book_ID", "WHERE", "T2.Price", ">", "4000000" ], "query_toks_no_value": [ "select", "t1", ".", "writer", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id", "where", "t2", ".", "price", ">", "value" ], "question": "Zeigen Sie Autoren, die ein Buch mit einem Preis von mehr als 4000000 veröffentlicht haben.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 4000000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC", "query_toks": [ "SELECT", "T1.Title", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1.Book_ID", "=", "T2.Book_ID", "ORDER", "BY", "T2.Price", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id", "order", "by", "t2", ".", "price", "desc" ], "question": "Zeigen Sie die Titel der Bücher in absteigender Reihenfolge des Veröffentlichungspreises an.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ], "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 2, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Publisher", "FROM", "publication", "GROUP", "BY", "Publisher", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "publisher", "from", "publication", "group", "by", "publisher", "having", "count", "(", "*", ")", ">", "value" ], "question": "Zeigen Sie Verleger an, die mehr als eine Veröffentlichung haben.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Publisher , COUNT(*) FROM publication GROUP BY Publisher", "query_toks": [ "SELECT", "Publisher", ",", "COUNT", "(", "*", ")", "FROM", "publication", "GROUP", "BY", "Publisher" ], "query_toks_no_value": [ "select", "publisher", ",", "count", "(", "*", ")", "from", "publication", "group", "by", "publisher" ], "question": "Zeigen Sie verschiedene Verlage zusammen mit der Anzahl ihrer Veröffentlichungen an.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 3, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Publication_Date", "FROM", "publication", "GROUP", "BY", "Publication_Date", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "publication_date", "from", "publication", "group", "by", "publication_date", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Bitte geben Sie das häufigste Erscheinungsdaten an.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 4, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Writer", "FROM", "book", "GROUP", "BY", "Writer", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "writer", "from", "book", "group", "by", "writer", "having", "count", "(", "*", ")", ">", "value" ], "question": "Listen Sie die Autoren auf, die mehr als ein Buch geschrieben haben.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication)", "query_toks": [ "SELECT", "Title", "FROM", "book", "WHERE", "Book_ID", "NOT", "IN", "(", "SELECT", "Book_ID", "FROM", "publication", ")" ], "query_toks_no_value": [ "select", "title", "from", "book", "where", "book_id", "not", "in", "(", "select", "book_id", "from", "publication", ")" ], "question": "Listen Sie die Titel von Büchern auf, die nicht veröffentlicht wurden.", "sql": { "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000", "query_toks": [ "SELECT", "Publisher", "FROM", "publication", "WHERE", "Price", ">", "10000000", "INTERSECT", "SELECT", "Publisher", "FROM", "publication", "WHERE", "Price", "<", "5000000" ], "query_toks_no_value": [ "select", "publisher", "from", "publication", "where", "price", ">", "value", "intersect", "select", "publisher", "from", "publication", "where", "price", "<", "value" ], "question": "Zeigen Sie die Verlage mit Veröffentlichungen mit einem Preis über 10000000 und Veröffentlichungen mit einem Preis unter 5000000 an.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 10000000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 5000000.0, null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT COUNT (DISTINCT Publication_Date) FROM publication", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Publication_Date", ")", "FROM", "publication" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "publication_date", ")", "from", "publication" ], "question": "Wie viele unterschiedliche Erscheinungsdaten gibt es?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 4, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT COUNT (DISTINCT Publication_Date) FROM publication", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Publication_Date", ")", "FROM", "publication" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "publication_date", ")", "from", "publication" ], "question": "Wie viele unterschiedliche Erscheinungsdaten enthält unser Datensatz?", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 4, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "book_2", "query": "SELECT Price FROM publication WHERE Publisher = \"Person\" OR Publisher = \"Wiley\"", "query_toks": [ "SELECT", "Price", "FROM", "publication", "WHERE", "Publisher", "=", "``", "Person", "''", "OR", "Publisher", "=", "``", "Wiley", "''" ], "query_toks_no_value": [ "select", "price", "from", "publication", "where", "publisher", "=", "value", "or", "publisher", "=", "value" ], "question": "Zeigen Sie die Preise von Veröffentlichungen an, deren Verleger entweder \"Person\" oder \"Wiley\" ist.", "sql": { "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Person\"", null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Wiley\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } ]