| [ | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty" | |
| ], | |
| "question": "Wie viele Fakultäten haben wir?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty" | |
| ], | |
| "question": "Wie viele Fakultätsmitglieder gibt es insgesamt?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT rank FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "rank", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "rank", | |
| "from", | |
| "faculty" | |
| ], | |
| "question": "Welche Ränge haben wir für die Fakultät?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT rank FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "rank", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "rank", | |
| "from", | |
| "faculty" | |
| ], | |
| "question": "Finden Sie die Liste der verschiedenen Ränge für die Fakultät.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT building FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "building", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "building", | |
| "from", | |
| "faculty" | |
| ], | |
| "question": "Zeigen Sie alle unterschiedlichen Gebäude mit Fakultätszimmern.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT building FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "building", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "building", | |
| "from", | |
| "faculty" | |
| ], | |
| "question": "Welche Gebäude haben Fakultätsbüros?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , Fname , Lname FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty" | |
| ], | |
| "question": "Zeigen Sie den Rang, den Vor- und Nachnamen aller Fakultäten an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , Fname , Lname FROM Faculty", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| "FROM", | |
| "Faculty" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty" | |
| ], | |
| "question": "Wie lauten Rang, Vorname und Nachname der Fakultätsmitglieder?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| ",", | |
| "phone", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'F", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| ",", | |
| "phone", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zeigen Sie den Vor- und Nachnamen sowie die Telefonnummer aller \"female\" Fakultätsmitglieder an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| ",", | |
| "phone", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'F", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| ",", | |
| "phone", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lauten der Vorname, der Nachname und die Telefonnummer aller \"female\" Fakultätsmitglieder?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty WHERE Sex = 'M'", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'M", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question": "IDs für alle \"male\" Fakultäten anzeigen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty WHERE Sex = 'M'", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'M", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Was sind die Fakultäts-IDs aller \"male\" Fakultätsmitglieder?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = \"Professor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'F", | |
| "'", | |
| "AND", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "and", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie viele \"female\" Professorinnen haben wir?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = \"Professor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "'F", | |
| "'", | |
| "AND", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "and", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zählen Sie die Anzahl der \"female\" \"Professors\", die wir haben.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT phone , room , building FROM Faculty WHERE Fname = \"Jerry\" AND Lname = \"Prince\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "phone", | |
| ",", | |
| "room", | |
| ",", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Fname", | |
| "=", | |
| "``", | |
| "Jerry", | |
| "''", | |
| "AND", | |
| "Lname", | |
| "=", | |
| "``", | |
| "Prince", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "phone", | |
| ",", | |
| "room", | |
| ",", | |
| "building", | |
| "from", | |
| "faculty", | |
| "where", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zeigen Sie das Telefon, das Zimmer und das Gebäude für die Fakultät namens \"Jerry\" \"Prince\".", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Jerry\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Prince\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT phone , room , building FROM Faculty WHERE Fname = \"Jerry\" AND Lname = \"Prince\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "phone", | |
| ",", | |
| "room", | |
| ",", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Fname", | |
| "=", | |
| "``", | |
| "Jerry", | |
| "''", | |
| "AND", | |
| "Lname", | |
| "=", | |
| "``", | |
| "Prince", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "phone", | |
| ",", | |
| "room", | |
| ",", | |
| "building", | |
| "from", | |
| "faculty", | |
| "where", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Was sind das Telefon, das Zimmer und das Gebäude des Fakultätsmitglieds namens \"Jerry\" \"Prince\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Jerry\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Prince\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty WHERE Rank = \"Professor\" AND building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "AND", | |
| "building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie viele \"Professors\" befinden sich im Gebäude \"NEB\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty WHERE Rank = \"Professor\" AND building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "AND", | |
| "building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zählen Sie die Anzahl der \"Professors\", die ein Büro im Gebäude \"NEB\" haben.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT fname , lname FROM Faculty WHERE Rank = \"Instructor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "fname", | |
| ",", | |
| "lname", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Instructor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zeigen Sie den Vor- und Nachnamen von allen \"instructors\" an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Instructor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT fname , lname FROM Faculty WHERE Rank = \"Instructor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "fname", | |
| ",", | |
| "lname", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Instructor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lauten der Vor- und Nachname aller \"instructors\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Instructor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building , count(*) FROM Faculty GROUP BY building", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "building" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "building" | |
| ], | |
| "question": "Zeigen Sie alle Gebäude zusammen mit der Anzahl der Fakultätsmitglieder an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building , count(*) FROM Faculty GROUP BY building", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "building" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "building" | |
| ], | |
| "question": "Wie viele Fakultätsmitglieder hat jedes Gebäude? Listen Sie das Ergebnis mit dem Namen des Gebäudes auf.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "building", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "building", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Welches Gebäude hat die meisten Fakultätsmitglieder?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "building", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "building", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Finden Sie das Gebäude mit der größten Anzahl von Fakultätsmitgliedern.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building FROM Faculty WHERE rank = \"Professor\" GROUP BY building HAVING count(*) >= 10", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "GROUP", | |
| "BY", | |
| "building", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "10" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "building", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zeigen Sie alle Gebäude mit mindestens 10 \"professors\".", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 10.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT building FROM Faculty WHERE rank = \"Professor\" GROUP BY building HAVING count(*) >= 10", | |
| "query_toks": [ | |
| "SELECT", | |
| "building", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "GROUP", | |
| "BY", | |
| "building", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "10" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "building", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "building", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "In welchen Gebäuden gibt es mindestens zehn \"professors\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 10.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , count(*) FROM Faculty GROUP BY rank", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank" | |
| ], | |
| "question": "Zeigen Sie für jeden Fakultätsrang die Anzahl der Fakultätsmitglieder an, die ihn haben.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , count(*) FROM Faculty GROUP BY rank", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank" | |
| ], | |
| "question": "Wie viele Fakultätsmitglieder haben wir für jeden Fakultätsrang?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank", | |
| ",", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| ",", | |
| "sex" | |
| ], | |
| "question": "Zeigen Sie alle Ränge und die Anzahl der männlichen und weiblichen Fakultäten für jeden Rang an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| ",", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank", | |
| ",", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| ",", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| ",", | |
| "sex" | |
| ], | |
| "question": "Wie viele Fakultätsmitglieder haben wir für jeden Rang und jedes Geschlecht?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Welcher Rang hat die geringste Anzahl von Fakultätsmitgliedern?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "rank", | |
| "FROM", | |
| "Faculty", | |
| "GROUP", | |
| "BY", | |
| "rank", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "rank", | |
| "from", | |
| "faculty", | |
| "group", | |
| "by", | |
| "rank", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Finden Sie den Fakultätsrang mit den wenigsten Mitgliedern.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT sex , count(*) FROM Faculty WHERE rank = \"AsstProf\" GROUP BY sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "``", | |
| "AsstProf", | |
| "''", | |
| "GROUP", | |
| "BY", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "sex" | |
| ], | |
| "question": "Zeigen Sie die Anzahl der männlichen und weiblichen \"assistant professors\" an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AsstProf\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT sex , count(*) FROM Faculty WHERE rank = \"AsstProf\" GROUP BY sex", | |
| "query_toks": [ | |
| "SELECT", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "``", | |
| "AsstProf", | |
| "''", | |
| "GROUP", | |
| "BY", | |
| "sex" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "sex", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "group", | |
| "by", | |
| "sex" | |
| ], | |
| "question": "Wie viele männliche und weibliche \"assistant professors\" haben wir?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AsstProf\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = \"Linda\" AND T2.lname = \"Smith\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T2.fname", | |
| "=", | |
| "``", | |
| "Linda", | |
| "''", | |
| "AND", | |
| "T2.lname", | |
| "=", | |
| "``", | |
| "Smith", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t2", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lauten der Vor- und Nachname des Beraters von \"Linda\" \"Smith\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Linda\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Smith\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = \"Linda\" AND T2.lname = \"Smith\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T2.fname", | |
| "=", | |
| "``", | |
| "Linda", | |
| "''", | |
| "AND", | |
| "T2.lname", | |
| "=", | |
| "``", | |
| "Smith", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t2", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t2", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wer ist der Berater von \"Linda\" \"Smith\"? Gib mir den Vor- und Nachnamen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Linda\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Smith\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = \"Professor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.StuID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T1.rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t1", | |
| ".", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zeigen Sie die IDs von Studenten an, deren Berater \"professors\" sind.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = \"Professor\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.StuID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T1.rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t1", | |
| ".", | |
| "rank", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Welche Studenten haben \"professors\" als Berater? Finden Sie ihre Studenten-IDs.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = \"Michael\" AND T1.lname = \"Goodrich\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.fname", | |
| ",", | |
| "T2.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Michael", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Goodrich", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zeigen Sie Vor- und Nachnamen für alle von \"Michael\" \"Goodrich\" Beratenen Studenten an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Michael\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Goodrich\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = \"Michael\" AND T1.lname = \"Goodrich\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.fname", | |
| ",", | |
| "T2.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Michael", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Goodrich", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Welche Studierenden werden von \"Michael\" \"Goodrich\" beraten? Gib mir ihren Vor- und Nachnamen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Michael\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Goodrich\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FacID", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "facid", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid" | |
| ], | |
| "question": "Zeigen Sie die Fakultäts-ID jedes Fakultätsmitglieds sowie die Anzahl der von ihm beratenen Studenten an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FacID", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "facid", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid" | |
| ], | |
| "question": "Wie lautet die Fakultäts-ID und die Anzahl der Studenten, die jede Fakultät hat?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.rank" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "rank" | |
| ], | |
| "question": "Zeigen Sie alle Fakultätsränge und die Anzahl der von jedem Rang beratenen Studenten an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.rank" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "rank", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "rank" | |
| ], | |
| "question": "Wie viele Studierende werden von jedem Fakultätsrang beraten? Listen Sie den Rang und die Anzahl der Studenten auf.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Wie lautet der Vor- und Nachname der Fakultät mit den meisten Studierenden?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Geben Sie mir den Vor- und Nachnamen der Fakultät, die die meisten Studenten berät.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FacID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zeigen Sie die IDs für alle Fakultätsmitglieder mit mindestens 2 Studenten an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.FacID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Student", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.advisor", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "HAVING", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "advisor", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Welche Fakultätsmitglieder beraten zwei oder mehr Studierende? Gib mir ihre Fakultäts-IDs.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "EXCEPT", | |
| "SELECT", | |
| "advisor", | |
| "FROM", | |
| "Student" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "except", | |
| "select", | |
| "advisor", | |
| "from", | |
| "student" | |
| ], | |
| "question": "Zeigen Sie IDs für die Fakultätsmitglieder an, die keinen Studenten beraten.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "EXCEPT", | |
| "SELECT", | |
| "advisor", | |
| "FROM", | |
| "Student" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "except", | |
| "select", | |
| "advisor", | |
| "from", | |
| "student" | |
| ], | |
| "question": "Was sind die IDs der Fakultätsmitglieder, die keinen Studenten beraten?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT activity_name FROM Activity", | |
| "query_toks": [ | |
| "SELECT", | |
| "activity_name", | |
| "FROM", | |
| "Activity" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "activity_name", | |
| "from", | |
| "activity" | |
| ], | |
| "question": "Welche Aktivitäten haben wir?", | |
| "sql": { | |
| "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 | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT activity_name FROM Activity", | |
| "query_toks": [ | |
| "SELECT", | |
| "activity_name", | |
| "FROM", | |
| "Activity" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "activity_name", | |
| "from", | |
| "activity" | |
| ], | |
| "question": "Listen Sie alle Aktivitäten auf, die wir haben.", | |
| "sql": { | |
| "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 | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Activity", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Activity" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "activity" | |
| ], | |
| "question": "Wie viele Aktivitäten haben wir?", | |
| "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": "activity_1", | |
| "query": "SELECT count(*) FROM Activity", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Activity" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "activity" | |
| ], | |
| "question": "Finden Sie die Anzahl der verfügbaren Aktivitäten.", | |
| "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": "activity_1", | |
| "query": "SELECT count(DISTINCT FacID) FROM Faculty_participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "DISTINCT", | |
| "FacID", | |
| ")", | |
| "FROM", | |
| "Faculty_participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "facid", | |
| ")", | |
| "from", | |
| "faculty_participates_in" | |
| ], | |
| "question": "Wie viele Fakultätsmitglieder nehmen an einer Aktivität teil?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(DISTINCT FacID) FROM Faculty_participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "DISTINCT", | |
| "FacID", | |
| ")", | |
| "FROM", | |
| "Faculty_participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "facid", | |
| ")", | |
| "from", | |
| "faculty_participates_in" | |
| ], | |
| "question": "Geben Sie mir die Anzahl der Fakultätsmitglieder, die an einer Aktivität teilnehmen", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "EXCEPT", | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty_participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "except", | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty_participates_in" | |
| ], | |
| "question": "Zeigen Sie die IDs der Fakultät an, die an keiner Aktivität teilnehmen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty", | |
| "EXCEPT", | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty_participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "except", | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty_participates_in" | |
| ], | |
| "question": "Welche Fakultät nimmt an keiner Aktivität teil? Finden Sie ihre Fakultäts-IDs.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty_participates_in", | |
| "INTERSECT", | |
| "SELECT", | |
| "advisor", | |
| "FROM", | |
| "Student" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty_participates_in", | |
| "intersect", | |
| "select", | |
| "advisor", | |
| "from", | |
| "student" | |
| ], | |
| "question": "Zeigen Sie die IDs aller Fakultätsmitglieder an, die an einer Aktivität teilnehmen, und beraten Sie einen Studenten.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student", | |
| "query_toks": [ | |
| "SELECT", | |
| "FacID", | |
| "FROM", | |
| "Faculty_participates_in", | |
| "INTERSECT", | |
| "SELECT", | |
| "advisor", | |
| "FROM", | |
| "Student" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "facid", | |
| "from", | |
| "faculty_participates_in", | |
| "intersect", | |
| "select", | |
| "advisor", | |
| "from", | |
| "student" | |
| ], | |
| "question": "Was sind die IDs der Fakultätsmitglieder, die nicht nur an einer Aktivität teilnehmen, sondern auch einen Studenten beraten?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Mark", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Giuliano", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "An wie vielen Aktivitäten nimmt \"Mark\" \"Giuliano\" teil?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mark\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Giuliano\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Mark", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Giuliano", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die Anzahl der Aktivitäten, an denen \"Mark\" \"Giuliano\" beteiligt ist.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mark\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Giuliano\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.activity_name", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "Activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T3.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Mark", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Giuliano", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t3", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Zeigen Sie die Namen aller Aktivitäten an, an denen \"Mark\" \"Giuliano\" teilnimmt.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mark\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Giuliano\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.activity_name", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "Activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T3.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T1.fname", | |
| "=", | |
| "``", | |
| "Mark", | |
| "''", | |
| "AND", | |
| "T1.lname", | |
| "=", | |
| "``", | |
| "Giuliano", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t3", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t1", | |
| ".", | |
| "fname", | |
| "=", | |
| "value", | |
| "and", | |
| "t1", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie heißen die Aktivitäten, an denen \"Mark\" \"Giuliano\" beteiligt ist?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mark\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Giuliano\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "T1.FacID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "t1", | |
| ".", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid" | |
| ], | |
| "question": "Zeigen Sie den Vor- und Nachnamen aller Fakultätsmitglieder an, die an einer Aktivität teilgenommen haben, sowie die Anzahl der Aktivitäten, an denen sie teilgenommen haben.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "T1.FacID", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ",", | |
| "t1", | |
| ".", | |
| "facid", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid" | |
| ], | |
| "question": "Wie lautet der Vor- und Nachname der Fakultätsmitglieder, die an mindestens einer Aktivität teilgenommen haben? Zeigen Sie für jeden von ihnen auch die Anzahl der Aktivitäten an, an denen sie teilgenommen haben.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid" | |
| ], | |
| "question": "Zeigen Sie alle Aktivitätsnamen und die Anzahl der an jeder Aktivität beteiligten Fakultäten an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid" | |
| ], | |
| "question": "Wie viele Fakultätsmitglieder nehmen an jeder Aktivität teil? Geben Sie die Aktivitätsnamen und die Anzahl der Fakultätsmitglieder zurück.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Wie lautet der Vor- und Nachname der Fakultät, die an den meisten Aktivitäten teilnimmt?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "GROUP", | |
| "BY", | |
| "T1.FacID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "facid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Finden Sie den Vor- und Nachnamen der Fakultät, die an den meisten Aktivitäten beteiligt ist.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Wie heißt die Aktivität, an der die meisten Fakultätsmitglieder beteiligt sind?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "An welcher Aktivität nehmen die meisten Fakultätsmitglieder teil? Suchen Sie den Aktivitätsnamen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Student", | |
| "EXCEPT", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "stuid", | |
| "from", | |
| "student", | |
| "except", | |
| "select", | |
| "stuid", | |
| "from", | |
| "participates_in" | |
| ], | |
| "question": "Zeigen Sie die IDs der Studenten an, die an keiner Aktivität teilnehmen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in", | |
| "query_toks": [ | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Student", | |
| "EXCEPT", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Participates_in" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "stuid", | |
| "from", | |
| "student", | |
| "except", | |
| "select", | |
| "stuid", | |
| "from", | |
| "participates_in" | |
| ], | |
| "question": "Was sind die IDs der Studenten, die an keiner Aktivität beteiligt sind?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20", | |
| "query_toks": [ | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Participates_in", | |
| "INTERSECT", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Student", | |
| "WHERE", | |
| "age", | |
| "<", | |
| "20" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "intersect", | |
| "select", | |
| "stuid", | |
| "from", | |
| "student", | |
| "where", | |
| "age", | |
| "<", | |
| "value" | |
| ], | |
| "question": "Zeigen Sie die IDs aller Studenten an, die an einer Aktivität teilnehmen und jünger als 20 Jahre sind.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| 20.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20", | |
| "query_toks": [ | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Participates_in", | |
| "INTERSECT", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "Student", | |
| "WHERE", | |
| "age", | |
| "<", | |
| "20" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "intersect", | |
| "select", | |
| "stuid", | |
| "from", | |
| "student", | |
| "where", | |
| "age", | |
| "<", | |
| "value" | |
| ], | |
| "question": "Was sind die IDs der Studenten, die jünger als 20 Jahre sind und an mindestens einer Aktivität beteiligt sind?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| 20.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Student", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.StuID", | |
| "=", | |
| "T2.StuID", | |
| "GROUP", | |
| "BY", | |
| "T1.StuID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "student", | |
| "as", | |
| "t1", | |
| "join", | |
| "participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Wie lautet der Vor- und Nachname des Studenten, der an den meisten Aktivitäten teilnimmt?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.fname , T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.fname", | |
| ",", | |
| "T1.lname", | |
| "FROM", | |
| "Student", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.StuID", | |
| "=", | |
| "T2.StuID", | |
| "GROUP", | |
| "BY", | |
| "T1.StuID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "student", | |
| "as", | |
| "t1", | |
| "join", | |
| "participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Sagen Sie mir den Vor- und Nachnamen des Studenten, der die meisten Aktivitäten hat.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 3 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Wie heißt die Aktivität mit den meisten Studenten?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.activity_name", | |
| "FROM", | |
| "Activity", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.actID", | |
| "=", | |
| "T2.actID", | |
| "GROUP", | |
| "BY", | |
| "T1.actID", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "activity_name", | |
| "from", | |
| "activity", | |
| "as", | |
| "t1", | |
| "join", | |
| "participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "actid", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Suchen Sie den Namen der Aktivität mit der größten Anzahl von Beteiligten.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "OR", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die Vornamen der Fakultätsmitglieder, die \"Canoeing\" oder \"Kayaking\" spielen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "OR", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Welche Fakultätsmitglieder spielen entweder \"Canoeing\" oder \"Kayaking\"? Sag mir ihre Vornamen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "lname", | |
| "FROM", | |
| "faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "'Professor", | |
| "'", | |
| "EXCEPT", | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "OR", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "except", | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die Vornamen von \"professors\", die weder \"Canoeing\" fahren noch \"Kayaking\" fahren.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "lname", | |
| "FROM", | |
| "faculty", | |
| "WHERE", | |
| "rank", | |
| "=", | |
| "'Professor", | |
| "'", | |
| "EXCEPT", | |
| "SELECT", | |
| "DISTINCT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "OR", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "except", | |
| "select", | |
| "distinct", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "or", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Was sind die Vornamen der \"professors\", die nicht \"Canoeing\" oder \"Kayaking\" als Aktivitäten spielen?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die Vornamen der Fakultätsmitglieder, die am \"Canoeing\" und \"Kayaking\" teilnehmen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.lname", | |
| "FROM", | |
| "Faculty", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "Faculty_participates_in", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.facID", | |
| "=", | |
| "T2.facID", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T3.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty_participates_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "join", | |
| "activity", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t3", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lauten die Vornamen der Fakultätsmitglieder, die sowohl \"Canoeing\" als auch \"Kayaking\" fahren?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.stuid", | |
| "FROM", | |
| "participates_in", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T2.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.stuid", | |
| "FROM", | |
| "participates_in", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T2.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "activity", | |
| "as", | |
| "t2", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t2", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "activity", | |
| "as", | |
| "t2", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t2", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die IDs der Schüler, die am \"Canoeing\" und \"Kayaking\" teilnehmen.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "activity_1", | |
| "query": "SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.stuid", | |
| "FROM", | |
| "participates_in", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T2.activity_name", | |
| "=", | |
| "'Canoeing", | |
| "'", | |
| "INTERSECT", | |
| "SELECT", | |
| "T1.stuid", | |
| "FROM", | |
| "participates_in", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "activity", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T2.actid", | |
| "=", | |
| "T2.actid", | |
| "WHERE", | |
| "T2.activity_name", | |
| "=", | |
| "'Kayaking", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "activity", | |
| "as", | |
| "t2", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t2", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value", | |
| "intersect", | |
| "select", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "from", | |
| "participates_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "activity", | |
| "as", | |
| "t2", | |
| "on", | |
| "t2", | |
| ".", | |
| "actid", | |
| "=", | |
| "t2", | |
| ".", | |
| "actid", | |
| "where", | |
| "t2", | |
| ".", | |
| "activity_name", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Welche Schüler nehmen sowohl am \"Canoeing\" als auch am \"Kayaking\" teil? Sag mir ihre Studenten-IDs-.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Canoeing\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Kayaking\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| ] |