[ { "db_id": "behavior_monitoring", "query": "SELECT count(*) FROM ASSESSMENT_NOTES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ASSESSMENT_NOTES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "assessment_notes" ], "question": "Wie viele Bewertungsnotizen gibt es insgesamt?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT date_of_notes FROM Assessment_Notes", "query_toks": [ "SELECT", "date_of_notes", "FROM", "Assessment_Notes" ], "query_toks_no_value": [ "select", "date_of_notes", "from", "assessment_notes" ], "question": "Was sind die Daten der Bewertungsnotizen?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT count(*) FROM ADDRESSES WHERE zip_postcode = \"197\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ADDRESSES", "WHERE", "zip_postcode", "=", "``", "197", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "addresses", "where", "zip_postcode", "=", "value" ], "question": "Wie viele Adressen haben die Postleitzahl \"197\"?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"197\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT count(DISTINCT incident_type_code) FROM Behavior_Incident", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "incident_type_code", ")", "FROM", "Behavior_Incident" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "incident_type_code", ")", "from", "behavior_incident" ], "question": "Wie viele unterschiedliche Vorfallstypcodes gibt es?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 42, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT DISTINCT detention_type_code FROM Detention", "query_toks": [ "SELECT", "DISTINCT", "detention_type_code", "FROM", "Detention" ], "query_toks_no_value": [ "select", "distinct", "detention_type_code", "from", "detention" ], "question": "Geben Sie alle eindeutigen Hafttypcodes zurück.", "sql": { "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "select": [ true, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT date_incident_start , date_incident_end FROM Behavior_Incident WHERE incident_type_code = \"NOISE\"", "query_toks": [ "SELECT", "date_incident_start", ",", "date_incident_end", "FROM", "Behavior_Incident", "WHERE", "incident_type_code", "=", "``", "NOISE", "''" ], "query_toks_no_value": [ "select", "date_incident_start", ",", "date_incident_end", "from", "behavior_incident", "where", "incident_type_code", "=", "value" ], "question": "Was sind die Start- und Enddaten für Vorfälle mit dem Vorfalltypcode \"NOISE\"?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"NOISE\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT detention_summary FROM Detention", "query_toks": [ "SELECT", "detention_summary", "FROM", "Detention" ], "query_toks_no_value": [ "select", "detention_summary", "from", "detention" ], "question": "Geben Sie alle Haftzusammenfassungen zurück.", "sql": { "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 54, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT cell_mobile_number , email_address FROM STUDENTS", "query_toks": [ "SELECT", "cell_mobile_number", ",", "email_address", "FROM", "STUDENTS" ], "query_toks_no_value": [ "select", "cell_mobile_number", ",", "email_address", "from", "students" ], "question": "Geben Sie die Handynummer und die E-Mail-Adresse aller Studenten zurück.", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT email_address FROM Students WHERE first_name = \"Emma\" AND last_name = \"Rohan\"", "query_toks": [ "SELECT", "email_address", "FROM", "Students", "WHERE", "first_name", "=", "``", "Emma", "''", "AND", "last_name", "=", "``", "Rohan", "''" ], "query_toks_no_value": [ "select", "email_address", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "Wie lautet die E-Mail-Adresse des Studenten mit dem Vornamen \"Emma\" und dem Nachnamen \"Rohan\"?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Emma\"", null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Rohan\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT count(DISTINCT student_id) FROM Students_in_Detention", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "student_id", ")", "FROM", "Students_in_Detention" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "student_id", ")", "from", "students_in_detention" ], "question": "Wie viele verschiedene Studenten waren in Haft?", "sql": { "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 62, true ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT gender FROM TEACHERS WHERE last_name = \"Medhurst\"", "query_toks": [ "SELECT", "gender", "FROM", "TEACHERS", "WHERE", "last_name", "=", "``", "Medhurst", "''" ], "query_toks_no_value": [ "select", "gender", "from", "teachers", "where", "last_name", "=", "value" ], "question": "Was ist das Geschlecht des Lehrers mit dem Nachnamen \"Medhurst\"?", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], "\"Medhurst\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code = \"VIOLENCE\"", "query_toks": [ "SELECT", "incident_type_description", "FROM", "Ref_Incident_Type", "WHERE", "incident_type_code", "=", "``", "VIOLENCE", "''" ], "query_toks_no_value": [ "select", "incident_type_description", "from", "ref_incident_type", "where", "incident_type_code", "=", "value" ], "question": "Wie lautet die Beschreibung des Vorfalltyps für den Vorfalltyp mit dem Code \"VIOLENCE\"?", "sql": { "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "\"VIOLENCE\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT max(monthly_rental) , min(monthly_rental) FROM Student_Addresses", "query_toks": [ "SELECT", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "FROM", "Student_Addresses" ], "query_toks_no_value": [ "select", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "from", "student_addresses" ], "question": "Finden Sie die maximale und minimale monatliche Miete für alle Studentenadressen.", "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 1, [ 0, [ 0, 60, false ], null ] ], [ 2, [ 0, [ 0, 60, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT first_name FROM Teachers WHERE email_address LIKE '%man%'", "query_toks": [ "SELECT", "first_name", "FROM", "Teachers", "WHERE", "email_address", "LIKE", "'", "%", "man", "%", "'" ], "query_toks_no_value": [ "select", "first_name", "from", "teachers", "where", "email_address", "like", "value" ], "question": "Suchen Sie die Vornamen von Lehrern, deren E-Mail-Adresse das Wort \"man\" enthält.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [ [ false, 9, [ 0, [ 0, 33, false ], null ], "\"%man%\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT * FROM Assessment_Notes ORDER BY date_of_notes ASC", "query_toks": [ "SELECT", "*", "FROM", "Assessment_Notes", "ORDER", "BY", "date_of_notes", "ASC" ], "query_toks_no_value": [ "select", "*", "from", "assessment_notes", "order", "by", "date_of_notes", "asc" ], "question": "Listen Sie alle Informationen zu den Bewertungsnotizen sortiert nach Datum in aufsteigender Reihenfolge auf.", "sql": { "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 38, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT city FROM Addresses ORDER BY city", "query_toks": [ "SELECT", "city", "FROM", "Addresses", "ORDER", "BY", "city" ], "query_toks_no_value": [ "select", "city", "from", "addresses", "order", "by", "city" ], "question": "Listen Sie alle Adressenstädte in alphabetischer Reihenfolge auf.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT first_name , last_name FROM Teachers ORDER BY last_name", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "Teachers", "ORDER", "BY", "last_name" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "teachers", "order", "by", "last_name" ], "question": "Finden Sie die Vor- und Nachnamen der Lehrer in alphabetischer Reihenfolge des Nachnamens.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC", "query_toks": [ "SELECT", "*", "FROM", "Student_Addresses", "ORDER", "BY", "monthly_rental", "DESC" ], "query_toks_no_value": [ "select", "*", "from", "student_addresses", "order", "by", "monthly_rental", "desc" ], "question": "Hier finden Sie alle Informationen zu Studentenadressen und sortieren sie nach monatlicher Miete in absteigender Reihenfolge.", "sql": { "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 60, false ], null ] ] ], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.student_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.first_name", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "first_name", "from", "assessment_notes", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Finden Sie die ID und den Vornamen des Studenten, der die meisten Bewertungsnotizen hat?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 36, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.teacher_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "T1.teacher_id", ",", "T2.first_name", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "GROUP", "BY", "T1.teacher_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "teacher_id", ",", "t2", ".", "first_name", "from", "assessment_notes", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t1", ".", "teacher_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Finden Sie die IDs und Vornamen der 3 Lehrer, die die meisten Bewertungsnotizen haben?", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 26, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 37, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 3, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.student_id , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.last_name", "FROM", "Behavior_Incident", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "last_name", "from", "behavior_incident", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Finden Sie die ID und den Nachnamen des Schülers mit den meisten Verhaltensstörungen?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 43, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 43, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.teacher_id , T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = \"AFTER\" GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.teacher_id", ",", "T2.last_name", "FROM", "Detention", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "WHERE", "T1.detention_type_code", "=", "``", "AFTER", "''", "GROUP", "BY", "T1.teacher_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "teacher_id", ",", "t2", ".", "last_name", "from", "detention", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t1", ".", "detention_type_code", "=", "value", "group", "by", "t1", ".", "teacher_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Finden Sie die ID und den Nachnamen des Lehrers mit den meisten Inhaftierungen mit dem Hafttypcode \"AFTER\"?", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 51, false ], null ], [ 0, 26, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 51, false ], null ] ], [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"AFTER\"", null ] ], "groupBy": [ [ 0, 51, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.student_id , T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.first_name", "FROM", "Student_Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "AVG", "(", "monthly_rental", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "first_name", "from", "student_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "avg", "(", "monthly_rental", ")", "desc", "limit", "value" ], "question": "Wie lauten die ID und der Vorname des Studenten, dessen Adressen die höchste durchschnittliche monatliche Miete aufweisen?", "sql": { "from": { "table_units": [ [ "table_unit", 9 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 56, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 56, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 5, 60, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.address_id", ",", "T1.city", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "GROUP", "BY", "T2.address_id", "ORDER", "BY", "AVG", "(", "monthly_rental", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "address_id", ",", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "group", "by", "t2", ".", "address_id", "order", "by", "avg", "(", "monthly_rental", ")", "desc", "limit", "value" ], "question": "Finden Sie den Ausweis und die Stadt der Studentenadresse mit der höchsten durchschnittlichen monatlichen Miete.", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 57, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 57, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 5, 60, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.incident_type_code , T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.incident_type_code", ",", "T2.incident_type_description", "FROM", "Behavior_Incident", "AS", "T1", "JOIN", "Ref_Incident_Type", "AS", "T2", "ON", "T1.incident_type_code", "=", "T2.incident_type_code", "GROUP", "BY", "T1.incident_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "incident_type_code", ",", "t2", ".", "incident_type_description", "from", "behavior_incident", "as", "t1", "join", "ref_incident_type", "as", "t2", "on", "t1", ".", "incident_type_code", "=", "t2", ".", "incident_type_code", "group", "by", "t1", ".", "incident_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Was ist der Code und die Beschreibung des häufigsten Verhaltensvorfalltyps?", "sql": { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 2 ] ], "conds": [ [ false, 2, [ 0, [ 0, 42, false ], null ], [ 0, 5, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 42, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 42, false ] ], "having": [], "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.detention_type_code", ",", "T2.detention_type_description", "FROM", "Detention", "AS", "T1", "JOIN", "Ref_Detention_Type", "AS", "T2", "ON", "T1.detention_type_code", "=", "T2.detention_type_code", "GROUP", "BY", "T1.detention_type_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "detention_type_code", ",", "t2", ".", "detention_type_description", "from", "detention", "as", "t1", "join", "ref_detention_type", "as", "t2", "on", "t1", ".", "detention_type_code", "=", "t2", ".", "detention_type_code", "group", "by", "t1", ".", "detention_type_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Wie lautet der Code und die Beschreibung des am wenigsten häufigen Hafttyps?", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 1 ] ], "conds": [ [ false, 2, [ 0, [ 0, 50, false ], null ], [ 0, 3, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 50, false ] ], "having": [], "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = \"Fanny\"", "query_toks": [ "SELECT", "T1.date_of_notes", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "WHERE", "T2.first_name", "=", "``", "Fanny", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_notes", "from", "assessment_notes", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "where", "t2", ".", "first_name", "=", "value" ], "question": "Finden Sie die Daten der Bewertungsnotizen für Studenten mit dem Vornamen \"Fanny\".", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Fanny\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schuster\"", "query_toks": [ "SELECT", "T1.text_of_notes", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "WHERE", "T2.last_name", "=", "``", "Schuster", "''" ], "query_toks_no_value": [ "select", "t1", ".", "text_of_notes", "from", "assessment_notes", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t2", ".", "last_name", "=", "value" ], "question": "Hier finden Sie die Texte der Bewertungsnotizen für Lehrer mit dem Nachnamen \"Schuster\".", "sql": { "from": { "table_units": [ [ "table_unit", 6 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 26, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], "\"Schuster\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.date_incident_start , date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = \"Fahey\"", "query_toks": [ "SELECT", "T1.date_incident_start", ",", "date_incident_end", "FROM", "Behavior_Incident", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "WHERE", "T2.last_name", "=", "``", "Fahey", "''" ], "query_toks_no_value": [ "select", "t1", ".", "date_incident_start", ",", "date_incident_end", "from", "behavior_incident", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "where", "t2", ".", "last_name", "=", "value" ], "question": "Finden Sie das Start- und Enddatum von Verhaltensvorfällen von Studenten mit dem Nachnamen \"Fahey\".", "sql": { "from": { "table_units": [ [ "table_unit", 7 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 43, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "\"Fahey\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.datetime_detention_start , datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schultz\"", "query_toks": [ "SELECT", "T1.datetime_detention_start", ",", "datetime_detention_end", "FROM", "Detention", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "WHERE", "T2.last_name", "=", "``", "Schultz", "''" ], "query_toks_no_value": [ "select", "t1", ".", "datetime_detention_start", ",", "datetime_detention_end", "from", "detention", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t2", ".", "last_name", "=", "value" ], "question": "Finden Sie das Start- und Enddatum der Inhaftierung von Lehrern mit dem Nachnamen \"Schultz\".", "sql": { "from": { "table_units": [ [ "table_unit", 8 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 51, false ], null ], [ 0, 26, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 52, false ], null ] ], [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], "\"Schultz\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T2.address_id , T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1", "query_toks": [ "SELECT", "T2.address_id", ",", "T1.zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "ORDER", "BY", "monthly_rental", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "address_id", ",", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "order", "by", "monthly_rental", "desc", "limit", "value" ], "question": "Was ist die ID und Postleitzahl der Adresse mit der höchsten monatlichen Miete?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 57, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "desc", [ [ 0, [ 0, 60, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental ASC LIMIT 1", "query_toks": [ "SELECT", "T2.cell_mobile_number", "FROM", "Student_Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "ORDER", "BY", "T1.monthly_rental", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "cell_mobile_number", "from", "student_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "order", "by", "t1", ".", "monthly_rental", "asc", "limit", "value" ], "question": "Wie lautet die Handynummer des Studenten, dessen Adresse die niedrigste monatliche Miete hat?", "sql": { "from": { "table_units": [ [ "table_unit", 9 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 16, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [ "asc", [ [ 0, [ 0, 60, false ], null ] ] ], "limit": 1, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = \"Texas\"", "query_toks": [ "SELECT", "T2.monthly_rental", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T1.state_province_county", "=", "``", "Texas", "''" ], "query_toks_no_value": [ "select", "t2", ".", "monthly_rental", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "state_province_county", "=", "value" ], "question": "Was sind die monatlichen Mieten von Studentenadressen im Bundesstaat \"Texas\"?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 57, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 60, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Texas\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = \"Wisconsin\"", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T1.state_province_county", "=", "``", "Wisconsin", "''" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "state_province_county", "=", "value" ], "question": "Was sind die Vor- und Nachnamen von Studenten mit Adresse im Bundesstaat \"Wisconsin\"?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 17, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Wisconsin\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.line_1 , avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id", "query_toks": [ "SELECT", "T1.line_1", ",", "avg", "(", "T2.monthly_rental", ")", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "GROUP", "BY", "T2.address_id" ], "query_toks_no_value": [ "select", "t1", ".", "line_1", ",", "avg", "(", "t2", ".", "monthly_rental", ")", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "group", "by", "t2", ".", "address_id" ], "question": "Wie hoch sind die Linien 1 und die durchschnittlichen monatlichen Mieten aller Studentenadressen?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 9 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 57, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 5, [ 0, [ 0, 60, false ], null ] ] ] ], "where": [], "groupBy": [ [ 0, 57, false ] ], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = \"Lyla\"", "query_toks": [ "SELECT", "T1.zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T2.first_name", "=", "``", "Lyla", "''" ], "query_toks_no_value": [ "select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "first_name", "=", "value" ], "question": "Wie lautet die Postleitzahl der Adresse, an der der Lehrer mit dem Vornamen \"Lyla\" lebt?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 28, false ], null ], "\"Lyla\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = \"918\"", "query_toks": [ "SELECT", "T2.email_address", "FROM", "Addresses", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "WHERE", "T1.zip_postcode", "=", "``", "918", "''" ], "query_toks_no_value": [ "select", "t2", ".", "email_address", "from", "addresses", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "zip_postcode", "=", "value" ], "question": "Wie lauten die E-Mail-Adressen von Lehrern, deren Adresse die Postleitzahl \"918\" hat?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"918\"", null ] ], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } }, { "db_id": "behavior_monitoring", "query": "SELECT count(*) FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "STUDENTS", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Behavior_Incident", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "behavior_incident", ")" ], "question": "Wie viele Studenten sind an keinem Verhaltensvorfall beteiligt?", "sql": { "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "where": [ [ true, 8, [ 0, [ 0, 16, false ], null ], { "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 43, 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": "behavior_monitoring", "query": "SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id", "query_toks": [ "SELECT", "last_name", "FROM", "Teachers", "EXCEPT", "SELECT", "T1.last_name", "FROM", "Teachers", "AS", "T1", "JOIN", "Detention", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id" ], "query_toks_no_value": [ "select", "last_name", "from", "teachers", "except", "select", "t1", ".", "last_name", "from", "teachers", "as", "t1", "join", "detention", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id" ], "question": "Finden Sie die Nachnamen von Lehrern, die an keiner Haft beteiligt sind.", "sql": { "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": { "from": { "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ], "conds": [ [ false, 2, [ 0, [ 0, 26, false ], null ], [ 0, 51, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null } } }, { "db_id": "behavior_monitoring", "query": "SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id", "query_toks": [ "SELECT", "T1.line_1", "FROM", "Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "INTERSECT", "SELECT", "T1.line_1", "FROM", "Addresses", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id" ], "query_toks_no_value": [ "select", "t1", ".", "line_1", "from", "addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "intersect", "select", "t1", ".", "line_1", "from", "addresses", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id" ], "question": "Wie lauten die Adressen in Linie 1, die von einigen Studenten und Lehrern geteilt werden?", "sql": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": { "from": { "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ], "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 27, false ], null ] ] }, "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null }, "union": null, "except": null } } ]