| [ | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM COURSE", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COURSE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "course" | |
| ], | |
| "question": "Wie viele Kurse 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": "college_3", | |
| "query": "SELECT count(*) FROM COURSE", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COURSE" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "course" | |
| ], | |
| "question": "Zählen Sie die Anzahl der Kurse.", | |
| "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": "college_3", | |
| "query": "SELECT count(*) FROM COURSE WHERE Credits > 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| ">", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Wie viele Kurse haben mehr als 2 Credits?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 2.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM COURSE WHERE Credits > 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| ">", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Zählen Sie die Anzahl der Kurse mit mehr als 2 Credits.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 2.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Credits = 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Alle Namen von Kursen mit 1 Credit auflisten?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Credits = 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie heißen Kurse mit 1 Credit?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Days = \"MTW\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Days", | |
| "=", | |
| "``", | |
| "MTW", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "days", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Welche Kurse werden an \"MTW\"-Tagen unterrichtet?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"MTW\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Days = \"MTW\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Days", | |
| "=", | |
| "``", | |
| "MTW", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "days", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lauten die Kursnamen für Kurse, die an dem \"MTW\" unterrichtet werden?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 30, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"MTW\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM DEPARTMENT WHERE Division = \"AS\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "AS", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie viele Abteilungen hat die Teilung \"AS\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AS\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT count(*) FROM DEPARTMENT WHERE Division = \"AS\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "AS", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie viele Abteilungen gibt es in der Teilung \"AS\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AS\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DPhone FROM DEPARTMENT WHERE Room = 268", | |
| "query_toks": [ | |
| "SELECT", | |
| "DPhone", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Room", | |
| "=", | |
| "268" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dphone", | |
| "from", | |
| "department", | |
| "where", | |
| "room", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Was sind die Telefone der Abteilungen im Zimmer 268?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| 268.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DPhone FROM DEPARTMENT WHERE Room = 268", | |
| "query_toks": [ | |
| "SELECT", | |
| "DPhone", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Room", | |
| "=", | |
| "268" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dphone", | |
| "from", | |
| "department", | |
| "where", | |
| "room", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Geben Sie die Telefone für Abteilungen im Zimmer 268.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 22, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ], | |
| 268.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = \"B\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "DISTINCT", | |
| "StuID", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "WHERE", | |
| "Grade", | |
| "=", | |
| "``", | |
| "B", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "stuid", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "where", | |
| "grade", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die Anzahl der Studenten mit mindestens einer Klasse \"B\".", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"B\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = \"B\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "COUNT", | |
| "(", | |
| "DISTINCT", | |
| "StuID", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "WHERE", | |
| "Grade", | |
| "=", | |
| "``", | |
| "B", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "stuid", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "where", | |
| "grade", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie viele Studenten hatten mindestens eine Klasse \"B\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"B\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| "FROM", | |
| "GRADECONVERSION" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "gradeconversion" | |
| ], | |
| "question": "Finden Sie den maximalen und minimalen Notenpunkt für alle Buchstabennoten.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| "FROM", | |
| "GRADECONVERSION" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "gradeconversion" | |
| ], | |
| "question": "Was sind die maximalen und minimalen Notenpunkte?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 7 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "Fname", | |
| "LIKE", | |
| "'", | |
| "%", | |
| "a", | |
| "%", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "fname", | |
| "from", | |
| "student", | |
| "where", | |
| "fname", | |
| "like", | |
| "value" | |
| ], | |
| "question": "Suchen Sie die Vornamen der Studenten, deren Vornamen den Buchstaben \"a\" enthalten.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%a%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "Fname", | |
| "LIKE", | |
| "'", | |
| "%", | |
| "a", | |
| "%", | |
| "'" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "fname", | |
| "from", | |
| "student", | |
| "where", | |
| "fname", | |
| "like", | |
| "value" | |
| ], | |
| "question": "Was sind die Vornamen für Studenten, deren Vorname ein \"a\" enthält?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%a%\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname , Lname FROM FACULTY WHERE sex = \"M\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "sex", | |
| "=", | |
| "``", | |
| "M", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die Vor- und Nachnamen der männlichen (Geschlecht ist \"M\") Fakultäten, die im Gebäude \"NEB\" leben.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname , Lname FROM FACULTY WHERE sex = \"M\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| ",", | |
| "Lname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "sex", | |
| "=", | |
| "``", | |
| "M", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| ",", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie heißen die Fakultäten mit Sex \"M\" und wer lebt im Gebäude der \"NEB\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 13, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"M\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Room FROM FACULTY WHERE Rank = \"Professor\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Room", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "room", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die Zimmer der Fakultäten mit dem Rang Professor, die im Gebäude \"NEB\" leben.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Room FROM FACULTY WHERE Rank = \"Professor\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "Room", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "room", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Was sind die Zimmer für Mitglieder von der Fakultät, die Professoren sind und im Gebäude der \"NEB\" leben?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 15, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT WHERE Building = \"Mergenthaler\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Building", | |
| "=", | |
| "``", | |
| "Mergenthaler", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie den Abteilungsnamen im Gebäude \"Mergenthaler\".", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mergenthaler\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT WHERE Building = \"Mergenthaler\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Building", | |
| "=", | |
| "``", | |
| "Mergenthaler", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie heißt die Abteilung im Gebäude \"Mergenthaler\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Mergenthaler\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT * FROM COURSE ORDER BY Credits", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "COURSE", | |
| "ORDER", | |
| "BY", | |
| "Credits" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "course", | |
| "order", | |
| "by", | |
| "credits" | |
| ], | |
| "question": "Listen Sie alle Informationen zu Kursen, die nach Credits sortiert sind, in aufsteigender Reihenfolge auf.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT * FROM COURSE ORDER BY Credits", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "COURSE", | |
| "ORDER", | |
| "BY", | |
| "Credits" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "course", | |
| "order", | |
| "by", | |
| "credits" | |
| ], | |
| "question": "Was sind alle Informationen zu Kursen, sortiert nach aufsteigenden Credits?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE ORDER BY Credits", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "ORDER", | |
| "BY", | |
| "Credits" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "order", | |
| "by", | |
| "credits" | |
| ], | |
| "question": "Listen Sie den Kursnamen der Kurse auf, sortiert nach Credits.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE ORDER BY Credits", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "ORDER", | |
| "BY", | |
| "Credits" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "order", | |
| "by", | |
| "credits" | |
| ], | |
| "question": "Wie lauten die Kursnamen, geordnet nach Credits?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM STUDENT ORDER BY Age DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "ORDER", | |
| "BY", | |
| "Age", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "student", | |
| "order", | |
| "by", | |
| "age", | |
| "desc" | |
| ], | |
| "question": "Finden Sie den Vornamen der Studenten in absteigender Reihenfolge des Alters.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM STUDENT ORDER BY Age DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "ORDER", | |
| "BY", | |
| "Age", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "student", | |
| "order", | |
| "by", | |
| "age", | |
| "desc" | |
| ], | |
| "question": "Was sind die Vornamen der Studenten, geordnet nach Alter vom größten zum kleinsten?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT LName FROM STUDENT WHERE Sex = \"F\" ORDER BY Age DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "LName", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "``", | |
| "F", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Age", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "student", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "age", | |
| "desc" | |
| ], | |
| "question": "Finden Sie den Nachnamen der Studentinnen (Geschlecht ist \"F\") in absteigender Reihenfolge des Alters.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT LName FROM STUDENT WHERE Sex = \"F\" ORDER BY Age DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "LName", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "Sex", | |
| "=", | |
| "``", | |
| "F", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Age", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "student", | |
| "where", | |
| "sex", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "age", | |
| "desc" | |
| ], | |
| "question": "Wie lauten die Nachnamen von \"female\" Studentinnen, sortiert nach absteigendem Alter?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"F\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Lname FROM FACULTY WHERE Building = \"Barton\" ORDER BY Lname", | |
| "query_toks": [ | |
| "SELECT", | |
| "Lname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Building", | |
| "=", | |
| "``", | |
| "Barton", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Lname" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "building", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "lname" | |
| ], | |
| "question": "Finden Sie die Nachnamen der Fakultäten im Gebäude \"Barton\" in alphabetischer Reihenfolge.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Barton\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Lname FROM FACULTY WHERE Building = \"Barton\" ORDER BY Lname", | |
| "query_toks": [ | |
| "SELECT", | |
| "Lname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Building", | |
| "=", | |
| "``", | |
| "Barton", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Lname" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "building", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "lname" | |
| ], | |
| "question": "Was sind die Nachnamen der Fakultät im Gebäude \"Barton\", sortiert nach Nachnamen?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Barton\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM FACULTY WHERE Rank = \"Professor\" ORDER BY Fname", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Fname" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "fname" | |
| ], | |
| "question": "Finden Sie die Vornamen der Fakultäten des Rangs \"Professor\" in alphabetischer Reihenfolge.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM FACULTY WHERE Rank = \"Professor\" ORDER BY Fname", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "FACULTY", | |
| "WHERE", | |
| "Rank", | |
| "=", | |
| "``", | |
| "Professor", | |
| "''", | |
| "ORDER", | |
| "BY", | |
| "Fname" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "faculty", | |
| "where", | |
| "rank", | |
| "=", | |
| "value", | |
| "order", | |
| "by", | |
| "fname" | |
| ], | |
| "question": "Wie lauten die Vornamen aller Fakultäten \"professors\", geordnet nach Vornamen?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Professor\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MINOR_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "GROUP", | |
| "BY", | |
| "T2.DNO", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "minor_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "dno", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Finden Sie den Namen der Abteilung, in der die meisten Studenten als Nebenfach studieren?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MINOR_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "GROUP", | |
| "BY", | |
| "T2.DNO", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "minor_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "dno", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Wie heißt die Abteilung mit den meisten Studenten, die in der Abteilung ihre Nabenfächer studieren?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MINOR_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "minor_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno" | |
| ], | |
| "question": "Finden Sie den Namen der Abteilung, die keine Studenten als Nabenfach studieren?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MINOR_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "minor_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno" | |
| ], | |
| "question": "Wie heißt die Abteilung, die sich keine Studenten als Nebanfach studieren?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 5 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "GROUP", | |
| "BY", | |
| "T2.DNO", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "dno", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Finden Sie den Namen der Abteilung mit den wenigsten Mitgliedern.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "GROUP", | |
| "BY", | |
| "T2.DNO", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "ASC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "dname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "dno", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "asc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Wie heißt die Abteilung mit den wenigsten Mitgliedern?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "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 Rang der Fakultät, zu der die wenigsten Fakultäten gehören.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "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": "Was ist der am wenigsten verbreitete Fakultätsrang?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 12, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "GROUP", | |
| "BY", | |
| "T1.Instructor", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Wie lauten die Vor- und Nachnamen der Lehrer, die die drei meisten Kurse unterrichten?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 3, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "GROUP", | |
| "BY", | |
| "T1.Instructor", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "3" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Wie heißen die 3 Lehrer, die die meisten Kurse unterrichten?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 3, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Building", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "GROUP", | |
| "BY", | |
| "T1.Instructor", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "building", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "In welchem Gebäude lebt der Lehrer, der die meisten Kurse unterrichtet?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Building", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "GROUP", | |
| "BY", | |
| "T1.Instructor", | |
| "ORDER", | |
| "BY", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "building", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "group", | |
| "by", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Geben Sie das Gebäude an, in dem der Lehrer lebt, der die meisten Kurse unterrichtet.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 16, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "limit": 1, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.CName", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CID", | |
| "=", | |
| "T2.CID", | |
| "GROUP", | |
| "BY", | |
| "T2.CID", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "5" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "cname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "enrolled_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "cid", | |
| "=", | |
| "t2", | |
| ".", | |
| "cid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "cid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie heißen Kurse mit mindestens fünf Immatrikulationen?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 5.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.CName", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.CID", | |
| "=", | |
| "T2.CID", | |
| "GROUP", | |
| "BY", | |
| "T2.CID", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "5" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "cname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "enrolled_in", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "cid", | |
| "=", | |
| "t2", | |
| ".", | |
| "cid", | |
| "group", | |
| "by", | |
| "t2", | |
| ".", | |
| "cid", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Geben Sie die Namen der Kurse mit mindestens fünf Immatrikulationen an.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 26, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 36, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 5.0, | |
| null | |
| ] | |
| ], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = \"COMPUTER LITERACY\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "WHERE", | |
| "T1.CName", | |
| "=", | |
| "``", | |
| "COMPUTER", | |
| "LITERACY", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "cname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie den Vor- und Nachnamen des Kurslehrers, der den Kursnamen \"COMPUTER LITERACY\" hat", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"COMPUTER LITERACY\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = \"COMPUTER LITERACY\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.Instructor", | |
| "=", | |
| "T2.FacID", | |
| "WHERE", | |
| "T1.CName", | |
| "=", | |
| "``", | |
| "COMPUTER", | |
| "LITERACY", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "instructor", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "cname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lautet der vollständige Name des Lehrers, der einen Kurs namens \"COMPUTER LITERACY\" hat?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 29, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"COMPUTER LITERACY\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Dname", | |
| ",", | |
| "T2.Room", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "DEPARTMENT", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "WHERE", | |
| "T1.CName", | |
| "=", | |
| "``", | |
| "INTRODUCTION", | |
| "TO", | |
| "COMPUTER", | |
| "SCIENCE", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "dname", | |
| ",", | |
| "t2", | |
| ".", | |
| "room", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "department", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "where", | |
| "t1", | |
| ".", | |
| "cname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie den Abteilungsnamen und das Zimmer des Kurses \"INTRODUCTION TO COMPUTER SCIENCE\".", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 32, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"INTRODUCTION TO COMPUTER SCIENCE\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Dname", | |
| ",", | |
| "T2.Room", | |
| "FROM", | |
| "COURSE", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "DEPARTMENT", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T2.DNO", | |
| "WHERE", | |
| "T1.CName", | |
| "=", | |
| "``", | |
| "INTRODUCTION", | |
| "TO", | |
| "COMPUTER", | |
| "SCIENCE", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "dname", | |
| ",", | |
| "t2", | |
| ".", | |
| "room", | |
| "from", | |
| "course", | |
| "as", | |
| "t1", | |
| "join", | |
| "department", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t2", | |
| ".", | |
| "dno", | |
| "where", | |
| "t1", | |
| ".", | |
| "cname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lauten der Abteilungsname und das Zimmer für den Kurs \"INTRODUCTION TO COMPUTER SCIENCE\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ], | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 32, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 20, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"INTRODUCTION TO COMPUTER SCIENCE\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.Fname", | |
| ",", | |
| "T3.LName", | |
| ",", | |
| "T2.gradepoint", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "fname", | |
| ",", | |
| "t3", | |
| ".", | |
| "lname", | |
| ",", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid" | |
| ], | |
| "question": "Finden Sie den Vor- und Nachnamen und die Notenpunkte aller immatrikulierten Studenten.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T3.Fname", | |
| ",", | |
| "T3.LName", | |
| ",", | |
| "T2.gradepoint", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t3", | |
| ".", | |
| "fname", | |
| ",", | |
| "t3", | |
| ".", | |
| "lname", | |
| ",", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid" | |
| ], | |
| "question": "Wie lauten die vollständigen Namen und Notenpunkte für alle Immatrikulationen?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T3.Fname", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T2.gradepoint", | |
| ">", | |
| "=", | |
| "3.8" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t3", | |
| ".", | |
| "fname", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die eindeutigen Vornamen aller Studenten, die in einem Kurs mindestens 3,8 Notenpunkte haben.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.8, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8", | |
| "query_toks": [ | |
| "SELECT", | |
| "DISTINCT", | |
| "T3.Fname", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T2.gradepoint", | |
| ">", | |
| "=", | |
| "3.8" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "distinct", | |
| "t3", | |
| ".", | |
| "fname", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Was sind die eindeutigen Vornamen für Studenten mit einem Notenpunkt von 3,8 oder höher in mindestens einem Kurs?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| true, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.8, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Fname", | |
| ",", | |
| "T1.Lname", | |
| "FROM", | |
| "FACULTY", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.FacID", | |
| "WHERE", | |
| "T2.DNO", | |
| "=", | |
| "520" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t2", | |
| ".", | |
| "dno", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Hier finden Sie die vollständigen Namen der Fakultäten, die Abteilungsmitglieder mit der Abteilungsnummer 520 sind.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| 520.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.Fname", | |
| ",", | |
| "T1.Lname", | |
| "FROM", | |
| "FACULTY", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.FacID", | |
| "=", | |
| "T2.FacID", | |
| "WHERE", | |
| "T2.DNO", | |
| "=", | |
| "520" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "fname", | |
| ",", | |
| "t1", | |
| ".", | |
| "lname", | |
| "from", | |
| "faculty", | |
| "as", | |
| "t1", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "facid", | |
| "=", | |
| "t2", | |
| ".", | |
| "facid", | |
| "where", | |
| "t2", | |
| ".", | |
| "dno", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lauten die vollständigen Namen der Fakultätsmitglieder, die Teil der Abteilung 520 sind?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| 520.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "MINOR_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.StuID", | |
| "=", | |
| "T2.StuID", | |
| "WHERE", | |
| "T1.DNO", | |
| "=", | |
| "140" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "minor_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Was sind die Vor- und Nachnamen der Studenten, die in der Abteilung mit DNO 140 ihre Nebenfach studieren?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 33, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| 140.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Fname", | |
| ",", | |
| "T2.Lname", | |
| "FROM", | |
| "MINOR_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.StuID", | |
| "=", | |
| "T2.StuID", | |
| "WHERE", | |
| "T1.DNO", | |
| "=", | |
| "140" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "fname", | |
| ",", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "minor_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "student", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t2", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lauten die vollständigen Namen der Studenten, die die Abteilung 140 als Nebenfach haben?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 5 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 33, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 34, | |
| false | |
| ], | |
| null | |
| ], | |
| 140.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = \"Computer Science\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Lname", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T3.DNO", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.FacID", | |
| "=", | |
| "T3.FacID", | |
| "WHERE", | |
| "T1.DName", | |
| "=", | |
| "``", | |
| "Computer", | |
| "Science", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t3", | |
| ".", | |
| "dno", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "facid", | |
| "=", | |
| "t3", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "dname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die Nachnamen der Fakultäten, die Mitglieder der Abteilung \"computer science\" sind.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Computer Science\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = \"Computer Science\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Lname", | |
| "FROM", | |
| "DEPARTMENT", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "FACULTY", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.DNO", | |
| "=", | |
| "T3.DNO", | |
| "JOIN", | |
| "MEMBER_OF", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T2.FacID", | |
| "=", | |
| "T3.FacID", | |
| "WHERE", | |
| "T1.DName", | |
| "=", | |
| "``", | |
| "Computer", | |
| "Science", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "lname", | |
| "from", | |
| "department", | |
| "as", | |
| "t1", | |
| "join", | |
| "faculty", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "dno", | |
| "=", | |
| "t3", | |
| ".", | |
| "dno", | |
| "join", | |
| "member_of", | |
| "as", | |
| "t3", | |
| "on", | |
| "t2", | |
| ".", | |
| "facid", | |
| "=", | |
| "t3", | |
| ".", | |
| "facid", | |
| "where", | |
| "t1", | |
| ".", | |
| "dname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie lauten die Nachnamen der Fakultäten, die Teil der Abteilung \"computer science\" sind?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 3 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 17, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 24, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 23, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Computer Science\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = \"Smith\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T3.LName", | |
| "=", | |
| "``", | |
| "Smith", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t3", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie den durchschnittlichen Notenpunkt eines Studenten, dessen Nachname \"Smith\" ist.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Smith\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = \"Smith\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T3.LName", | |
| "=", | |
| "``", | |
| "Smith", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t3", | |
| ".", | |
| "lname", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Was ist der durchschnittliche Notenpunkt für Studenten mit dem Nachnamen \"Smith\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"Smith\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = \"NYC\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T3.city_code", | |
| "=", | |
| "``", | |
| "NYC", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t3", | |
| ".", | |
| "city_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Was ist der maximale und minimale Notepunukt von Studenten, die in \"NYC\" leben?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NYC\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = \"NYC\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "max", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "T2.gradepoint", | |
| ")", | |
| "FROM", | |
| "ENROLLED_IN", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "GRADECONVERSION", | |
| "AS", | |
| "T2", | |
| "JOIN", | |
| "STUDENT", | |
| "AS", | |
| "T3", | |
| "ON", | |
| "T1.Grade", | |
| "=", | |
| "T2.lettergrade", | |
| "AND", | |
| "T1.StuID", | |
| "=", | |
| "T3.StuID", | |
| "WHERE", | |
| "T3.city_code", | |
| "=", | |
| "``", | |
| "NYC", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "max", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| ",", | |
| "min", | |
| "(", | |
| "t2", | |
| ".", | |
| "gradepoint", | |
| ")", | |
| "from", | |
| "enrolled_in", | |
| "as", | |
| "t1", | |
| "join", | |
| "gradeconversion", | |
| "as", | |
| "t2", | |
| "join", | |
| "student", | |
| "as", | |
| "t3", | |
| "on", | |
| "t1", | |
| ".", | |
| "grade", | |
| "=", | |
| "t2", | |
| ".", | |
| "lettergrade", | |
| "and", | |
| "t1", | |
| ".", | |
| "stuid", | |
| "=", | |
| "t3", | |
| ".", | |
| "stuid", | |
| "where", | |
| "t3", | |
| ".", | |
| "city_code", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Geben Sie die maximalen und minimalen Notenpunkte für Studenten an, die in \"NYC\" leben?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ], | |
| [ | |
| "table_unit", | |
| 7 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 37, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 38, | |
| false | |
| ], | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 1, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 39, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NYC\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "3", | |
| "UNION", | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "1", | |
| "AND", | |
| "Hours", | |
| "=", | |
| "4" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value", | |
| "and", | |
| "hours", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Finden Sie die Namen der Kurse, die entweder 3 Credits oder 1 Credit, aber 4 Stunden haben.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 31, | |
| false | |
| ], | |
| null | |
| ], | |
| 4.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4", | |
| "query_toks": [ | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "3", | |
| "UNION", | |
| "SELECT", | |
| "CName", | |
| "FROM", | |
| "COURSE", | |
| "WHERE", | |
| "Credits", | |
| "=", | |
| "1", | |
| "AND", | |
| "Hours", | |
| "=", | |
| "4" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "cname", | |
| "from", | |
| "course", | |
| "where", | |
| "credits", | |
| "=", | |
| "value", | |
| "and", | |
| "hours", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie heißen Kurse, die entweder 3 Credits oder 1 Credit und 4 Stunden vergeben?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 3.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 4 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 27, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 28, | |
| false | |
| ], | |
| null | |
| ], | |
| 1.0, | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 31, | |
| false | |
| ], | |
| null | |
| ], | |
| 4.0, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT WHERE Division = \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division = \"EN\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "AS", | |
| "''", | |
| "UNION", | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "EN", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Suchen Sie die Namen der Abteilungen, die sich entweder in der Abteilung \"AS\" oder in der Abteilung \"EN\" und im Gebäude \"NEB\" befinden.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AS\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"EN\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT DName FROM DEPARTMENT WHERE Division = \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division = \"EN\" AND Building = \"NEB\"", | |
| "query_toks": [ | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "AS", | |
| "''", | |
| "UNION", | |
| "SELECT", | |
| "DName", | |
| "FROM", | |
| "DEPARTMENT", | |
| "WHERE", | |
| "Division", | |
| "=", | |
| "``", | |
| "EN", | |
| "''", | |
| "AND", | |
| "Building", | |
| "=", | |
| "``", | |
| "NEB", | |
| "''" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value", | |
| "union", | |
| "select", | |
| "dname", | |
| "from", | |
| "department", | |
| "where", | |
| "division", | |
| "=", | |
| "value", | |
| "and", | |
| "building", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Wie heißen die Abteilungen entweder in der Abteilung \"AS\" oder in der Abteilung \"EN\" und im Gebäude \"NEB\"?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"AS\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 2 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 19, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 18, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"EN\"", | |
| null | |
| ], | |
| "and", | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 21, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"NEB\"", | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "StuID", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "ENROLLED_IN", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "student", | |
| "where", | |
| "stuid", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "stuid", | |
| "from", | |
| "enrolled_in", | |
| ")" | |
| ], | |
| "question": "Finden Sie den Vornamen der Studenten, die in keinem Kurs immatrikuliert sind.", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| }, | |
| { | |
| "db_id": "college_3", | |
| "query": "SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)", | |
| "query_toks": [ | |
| "SELECT", | |
| "Fname", | |
| "FROM", | |
| "STUDENT", | |
| "WHERE", | |
| "StuID", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "StuID", | |
| "FROM", | |
| "ENROLLED_IN", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "fname", | |
| "from", | |
| "student", | |
| "where", | |
| "stuid", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "stuid", | |
| "from", | |
| "enrolled_in", | |
| ")" | |
| ], | |
| "question": "Was sind die Vornamen aller Studenten, die nicht in Kursen immatrikuliert sind?", | |
| "sql": { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 1, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "from": { | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 6 | |
| ] | |
| ], | |
| "conds": [] | |
| }, | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 35, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "where": [], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| }, | |
| null | |
| ] | |
| ], | |
| "groupBy": [], | |
| "having": [], | |
| "orderBy": [], | |
| "limit": null, | |
| "intersect": null, | |
| "union": null, | |
| "except": null | |
| } | |
| } | |
| ] |